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

Started basis examples #253

Merged
merged 9 commits into from
Oct 31, 2024
Merged

Started basis examples #253

merged 9 commits into from
Oct 31, 2024

Conversation

pranmod01
Copy link
Collaborator

@pranmod01 pranmod01 commented Oct 22, 2024

I deleted the old glm redundant branch and created a new one. I included the comments Edoardo made on the previous basis PR. But I need to add more examples for the subclasses and inherited methods and double check that all docstring results are correct. Hope everything is clean now!

Old basis branch PR: #251

@pranmod01
Copy link
Collaborator Author

Some tests are failing and I will fix them tomorrow.

@codecov-commenter
Copy link

codecov-commenter commented Oct 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.09%. Comparing base (6b3a1e8) to head (e901856).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #253   +/-   ##
=======================================
  Coverage   97.09%   97.09%           
=======================================
  Files          20       20           
  Lines        1857     1857           
=======================================
  Hits         1803     1803           
  Misses         54       54           

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

@pranmod01
Copy link
Collaborator Author

pranmod01 commented Oct 24, 2024

Fixed comments from PR: #251

Added examples to call functions and evaluate_on_grid. They are redundant from the abstract class so let me know if I should make any specifications.

Copy link
Collaborator

@BalzaniEdoardo BalzaniEdoardo left a comment

Choose a reason for hiding this comment

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

A few small changes and this is also good to go. Thanks!

src/nemos/basis.py Outdated Show resolved Hide resolved
src/nemos/basis.py Outdated Show resolved Hide resolved
src/nemos/basis.py Outdated Show resolved Hide resolved
src/nemos/basis.py Outdated Show resolved Hide resolved
src/nemos/basis.py Outdated Show resolved Hide resolved
src/nemos/basis.py Show resolved Hide resolved
src/nemos/basis.py Show resolved Hide resolved
src/nemos/basis.py Show resolved Hide resolved
src/nemos/basis.py Outdated Show resolved Hide resolved
src/nemos/basis.py Show resolved Hide resolved
Copy link
Member

@billbrod billbrod left a comment

Choose a reason for hiding this comment

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

Variety of changes requested, but the same themes repeated.

In particular, I think we shouldn't show the to_transformer method in the example of the basis init method. It's not the "standard use case" for the basis object, which is what those should be showing

src/nemos/basis.py Outdated Show resolved Hide resolved
src/nemos/basis.py Outdated Show resolved Hide resolved
src/nemos/basis.py Outdated Show resolved Hide resolved
src/nemos/basis.py Outdated Show resolved Hide resolved
src/nemos/basis.py Outdated Show resolved Hide resolved
src/nemos/basis.py Outdated Show resolved Hide resolved
src/nemos/basis.py Outdated Show resolved Hide resolved
src/nemos/basis.py Outdated Show resolved Hide resolved
src/nemos/basis.py Outdated Show resolved Hide resolved
src/nemos/basis.py Show resolved Hide resolved
Copy link
Collaborator

@BalzaniEdoardo BalzaniEdoardo left a comment

Choose a reason for hiding this comment

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

Remove the init of additive basis from the example, and this is ready to merge too.
I merge development also, I have merged the GLM example PR and I am going to merge another PR as well before this one (the SVRG auto-stepsize)

src/nemos/basis.py Outdated Show resolved Hide resolved
Copy link
Member

@billbrod billbrod left a comment

Choose a reason for hiding this comment

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

Once you make the change Edoardo mentioned, this is good with me!

@BalzaniEdoardo BalzaniEdoardo merged commit d4f6524 into main Oct 31, 2024
13 checks passed
@billbrod billbrod deleted the basis_examples_section branch October 31, 2024 14:25
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.

4 participants