-
Notifications
You must be signed in to change notification settings - Fork 327
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
Add concatenation support for multiple feature libraries #72
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Thanks for your contribution. I was about to suggest a similar feature. What I would like to see is a more intuitive api, such as from pysindy.feature_library import IdentityLibrary
from pysindy.feature_library import PolynomialLibrary
from pysindy.feature_library import ConcatLibrary
ident_lib = IdentityLibrary()
poly_lib = PolynomialLibrary()
my_lib = ident_lib + poly_lib
assert isinstance(my_lib, ConcatLibrary) You'd need to implement |
Thanks for you review! The only drawback of the The reason for that is, that it is impossible to do circular imports in Python (i.e. implementing However, the desired workflow with |
Codecov Report
@@ Coverage Diff @@
## master #72 +/- ##
==========================================
+ Coverage 95.51% 95.67% +0.16%
==========================================
Files 18 18
Lines 780 810 +30
==========================================
+ Hits 745 775 +30
Misses 35 35
Continue to review full report at Codecov.
|
Thanks. Having the |
Add concatenation support for multiple feature libraries
fixed rtd requirements
Auto upload to PyPI, minor bugfixes, doc updates
Currently, there is no straightforward way to combine multiple feature libraries into a single feature mapper.
I implemented this workflow:
What do you think?