Comments (2)
Interesting use-case! This is definitely something I'd like to fix, but I'm not sure on what kind of time-line. With a bit of luck I'll manage a PR within a week or so.
In the meantime you can try something along the following lines: Model({y: sympy.Expr(0)})
. No idea if that works though.
from symfit.
Yes that would work. The PR for this should be really simple actually, because sympy already has a method sympify that does exactly this. So we should first check if the value is an Expr
, and if it isn't we call sympify
on it. We can probably not call sympify
on all our input without checking, because I'm not sure what that would do to e.g. Parameters.
from symfit.
Related Issues (20)
- sympy expression with arbitrary variables/parameters HOT 8
- Fitting custom model resulted using sympy HOT 15
- Unknown issue with super(type, obj) in fit.py HOT 3
- "Abnormal Termination in LNSRCH" Error HOT 2
- Model evaluation problems encountered after several derivations HOT 6
- Initial values used don't match those declared HOT 3
- Symfit errors - not fitting to data HOT 1
- Parameter and Variable shapes
- Models should be recursive
- Symbolic objectives
- Numba integration HOT 3
- No compatible with numpy 1.24.1 HOT 8
- Sensitivity of Fit's slope/max values to model parameters HOT 1
- Perform global sensitivity analysis of ODE system HOT 1
- Initial conditions for different values of independent variable HOT 2
- symfit special functions, exponential integral HOT 13
- Fitting multidimensional datasets - symfit HOT 1
- AttributeError: 'Model' object has no attribute '_cached_numerical_components'
- <lambdifygenerated-1>:2: RuntimeWarning: overflow encountered in exp
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 symfit.