Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new glm_predictive_distribution and corresponding changes in LaplaceRedux.predict #99

Merged
merged 13 commits into from
Jul 18, 2024

Conversation

pasq-cat
Copy link
Contributor

@pasq-cat pasq-cat commented Jul 4, 2024

this pull request add the following things:

  • add a function that check if a finaliser layer has already been added to the model
  • change the glm_predictive_distribution so that it also return a distribution object
  • change predict so that it can also return distributions
  • add unit tests for the new functions
    -part of the gsoc (2024)

@JuliaTrustworthyAI JuliaTrustworthyAI deleted a comment from github-actions bot Jul 6, 2024
@JuliaTrustworthyAI JuliaTrustworthyAI deleted a comment from github-actions bot Jul 6, 2024
Copy link
Member

@pat-alt pat-alt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor changes (see individual comments)

src/baselaplace/predicting.jl Outdated Show resolved Hide resolved
src/baselaplace/predicting.jl Show resolved Hide resolved
src/baselaplace/predicting.jl Show resolved Hide resolved
Copy link
Member

@pat-alt pat-alt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To get this merged and directly registered (for use in TaijaPlotting), please:

  • bumb the package version to 1.0.0 (major 0 leading version causes compat headaches when managing multiple packages that depend on each other).
  • Update the CHANGELOG

@pasq-cat pasq-cat requested a review from pat-alt July 16, 2024 09:26
CHANGELOG.md Outdated
@@ -6,6 +6,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),

*Note*: We try to adhere to these practices as of version [v0.2.1].


## Version [0.3.0] - 2024-07-16
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just set this to [1.0.0] also then it's good to go

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just set this to [1.0.0] also then it's good to go

the version in the changelog must correspond tot he number in the project.toml?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, exactly, there are supposed to be linked to each other to make it easy for people to understand what's been changed/added/deleted in specific releases.

@pasq-cat
Copy link
Contributor Author

@pat-alt brah! what happened? i only changed a number!

Copy link

codecov bot commented Jul 17, 2024

Codecov Report

Attention: Patch coverage is 96.87500% with 1 line in your changes missing coverage. Please review.

Project coverage is 95.27%. Comparing base (3e1531d) to head (b59fc14).

Files Patch % Lines
src/baselaplace/predicting.jl 96.87% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #99      +/-   ##
==========================================
+ Coverage   94.95%   95.27%   +0.32%     
==========================================
  Files          21       21              
  Lines         575      593      +18     
==========================================
+ Hits          546      565      +19     
+ Misses         29       28       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

pat-alt and others added 5 commits July 17, 2024 11:42
…had a vector of normal distributions, while for classifications we had a matrix of distributions. now it's matrices for both.

added unit tests
@pasq-cat pasq-cat requested a review from pat-alt July 18, 2024 05:14
@pasq-cat
Copy link
Contributor Author

@pat-alt @MojiFarmanbar i tried to cover all the new cases but since there are a lot of ifs i had to add multiple tests.

Copy link
Member

@pat-alt pat-alt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for the changes. LGTM now!

@pat-alt
Copy link
Member

pat-alt commented Jul 18, 2024

@MojiFarmanbar do you want to have a quick look as well or should we merge this?

@MojiFarmanbar
Copy link
Member

@pat-alt i had a quick look, if you approve it then i would say let's merge it.

@pat-alt pat-alt merged commit 7d70d2c into main Jul 18, 2024
11 checks passed
pat-alt referenced this pull request Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants