Comments (5)
See this section of the documentation. The following factors contribute to the issue:
- The default numerical integrator used by
SINDy.simulate
isscipy.integrate.odeint
, an adaptive time-stepping routine. Sinceodeint
is adaptive, it needs to be able to evaluate functions at various points in time, meaning control inputs need to be given as a callable function. - Sometimes you don't have a function for u, but you do have a time series. In that case, SINDy will form a spline interpolation of the time series and use that instead. However, since it's an interpolating function, if you try to evaluate it at a time outside of the original time series, it will complain.
The issue is either that you're trying to simulate for times when the control inputs aren't known or that the numerical integrator, odeint
, is attempting to evaluate the interpolating function for u outside the domain where it's defined. You could either decrease the span of time over which you simulate or use a different integrator (scipy.integrate has some other options). If you decide to do the latter, you will probably need to adjust the call signature of the integrator to match that which SINDy.simulate
expects: integrator(rhs, x0, t, **kwargs)
.
from pysindy.
This is what I used to get too, see #94 .
I think it's related to the t
you are passing, not the u
.
from pysindy.
This is what I used to get too, see #94 .
I think it's related to the t you are passing, not the u.
That could also be the problem. I will create a new release including the fix this afternoon.
from pysindy.
thank you for all you replies.
I tried to shift the time to start at 0 and also tried different time spans smaller than the actual time span of my time serie but the error keeps showing up
from pysindy.
@moujrid, I just created a new release with the bug fix I alluded to earlier. See if you still encounter the error after updating to the latest version.
from pysindy.
Related Issues (20)
- LinearRegression unknown keyword normalize HOT 5
- Implementation of graph data HOT 7
- Issue in plotting the graph using model.simulate HOT 1
- Total freedom in library functions with CustomLibrary HOT 1
- SINDy-PI for a system of ODEs
- simulating error(overflow) when expanded to the third order HOT 3
- [BUG] A lot of issues with the bayesian implementation (UQ-SINDy) HOT 3
- [BUG] No consistency in model.fit() HOT 8
- SINDy-PI/ one state derivative per model HOT 3
- Modeling Issues with Using Ensemble Methods HOT 1
- differentiation for cylindrical coordinate HOT 1
- There is a significant divergence between the model based on experimental data and the analytical solution HOT 1
- Can not import pysindy after installation HOT 8
- [BUG] SmoothedFiniteDifference does not have 'save_smooth' HOT 1
- [BUG] SSR optimizer always picks the first model it generates HOT 1
- [BUG] bad shape of model.coefficients() when using Lasso sklearn optimizer HOT 1
- Extracting dynamics and faster simulation HOT 2
- [BUG] 'PolynomialLibrary' object has no attribute 'calc_trajectory' HOT 1
- Feature library does not obey the set inputs_per_library [BUG] HOT 1
- Optimizer parameters validation improvement HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pysindy.