Questions tagged [symfit]

41 questions
0
votes
0 answers

ODE fitting with Symfit - ValueError: operands could not be broadcast together with remapped shapes

I'm trying to solve and fit these coupled Differential equations with Symfit. I've tried following the documentation for ODE fitting, looked at this answer to a similar question and searched the error in other contexts, but without any luck. My code…
0
votes
0 answers

Fitting a big (and variable) number of datasets with shared and individual parameters in Python

I have N (approx. 1000) datasets that I want to fit with the same polynomial model, where the second and higher order should be shared parameters and the first order will be individual to each set. The number of datasets will not always be same, but…
aaron
  • 1
  • 1
0
votes
0 answers

Python Symfit : bound issue in chained minimization

I am tackling an optimization problem, and to do so I chain 3 optimizers. Symfit is imported as sft, and sympy as sy: [EDIT] The code below is a Minimal example of my situation, producing the same error message. k, a = sft.parameters('k, a') #…
0
votes
0 answers

Evaluate parameter in symfit model

I am using symfit for fitting of two NMR data set simultaneously.I defined a cut-off gaussian distribution on one of the parameter. I summerized my explanation in the following simplified example: import symfit as sf from symfit import parameters,…
farhad
  • 11
  • 1
0
votes
1 answer

Fitting multiple datasets with shared paramaters

I am trying to fit different data set with different non-linear function that shared some parameters and it look something like this: import matplotlib from matplotlib import pyplot as plt from scipy import optimize import numpy as np #some…
Zack_Az
  • 36
  • 6
0
votes
1 answer

Simultaneous optimization of two different functions to provide a universal solution for both

I asked a similar question in January that @Miłosz Wieczór was kind enough to answer. Now, I am faced with a similar but different challenge since I need to fit two parameters (fc and alpha) simultaneously on two datasets (e_exp and iq_exp). I…
naughty_waves
  • 265
  • 1
  • 13
0
votes
1 answer

Fourier Series calculated in symfit

I am using the example code provided on https://symfit.readthedocs.io/en/master/examples/ex_fourier_series.html to calculate the Fourier Series of a given function. However, after I successfully installed the package symfit and begain to run the…
Ralf
  • 19
  • 2
0
votes
0 answers

what's wrong with this Symfit example?

I'm trying to understand how to use symfit for fitting some data and I run the next example: from symfit import Parameter, Variable, exp from symfit.core.objectives import LogLikelihood import numpy as np # Define the model for an exponential…
0
votes
0 answers

Symfit runs into singularity while fitting vector function - any alternatives?

I am attempting to fit 2 graphs to 2 different functions that share parameters. The functions are quite complicated, involve atan, ln and fractions. Symfit seemed to provide functionality for this kind of fitting but the fit runns into…
Shudras
  • 117
  • 2
  • 8
0
votes
2 answers

How do I resolve an error installing symfit - `Cannot uninstall sympy`

I installed Anaconda3 and need to install symfit. Using pip install symfit, the program returns the error: Cannot uninstall sympy. It is a distutils...." It seems symfit requires sympy 1.1.1, but my Anaconda installation already installed sympy 1.3…
0
votes
0 answers

Where is symfit?

I pip'ed symfit, (https://pythonhosted.org/symfit/) and it appears to have been installed, to wit: C:\>pip install symfit Collecting symfit Using cached…
user1067305
  • 3,233
  • 7
  • 24
  • 29
1 2
3