Replies: 2 comments 3 replies
-
you wrote custom_functions = [[
lambda x, v, F, u: u,
lambda x: 1,
],
...
] This is a list of list of functions. You want a list of functions. It would probably help if we included type annotations. Secondly, you said:
I think what you're looking for is the GeneralizedLibrary, which includes an argument As a third note, it looks like you're trying to add multiple constant functions. This means you will have multiple identical functions, which can mess up the optimizer. |
Beta Was this translation helpful? Give feedback.
-
Hello, Let say that I want to use SINDy on : I would rather not include functions It seems that whenever if I use the GeneralizedLibrary or the CustomLibrary, I would be in the case : |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I am using a custom library and trying to use the feature where every variable has an associated library.
The documentation for this feature says that I should provide the library functions in the following shape:
python (n_input_features, num_library_functions)
What I am providing is the following (these are just basic functions I wanted to test this feature with. That's why they are mostly the same):
My setup is the following:
My code is the following
While trying to fit the model always runs into the following Problem:
I do not understand what I am am missing and where exactly my mistake lies.
Does anyone have experience with custom feature libraries ans supplying feature libraries for each variable individually?
How should the individual feature libraries (for x, v and F) be supplied to the custom feature library?
Are there any obvious mistakes I am making?
Id be very grateful for any tipps/help.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions