Python Forum
Error in running the Elliott Fitting function
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error in running the Elliott Fitting function
#6
I think, you missed arithmetical symbol in (( fitting-abs_exp_fit )**2).sum()((len( abs_exp_fit )-len(p0))).

( fitting-abs_exp_fit )**2).sum() -- This is a numpy array. Further, you've used parenthesis: ( fitting-abs_exp_fit )**2).sum()(...).
That means you tried to call a numpy array.

You need to change your code to
s_sq = (( fitting-abs_exp_fit )**2).sum()<some symbol here>((len( abs_exp_fit )-len(p0)))
where <some symbol here> is either "/", "*", etc (or something else).
Reply


Messages In This Thread
RE: Error in running the Elliott Fitting function - by scidam - Jan-16-2020, 11:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Sine fitting - extra modulation Pikano 2 1,047 Jan-04-2023, 07:41 AM
Last Post: Pikano
  Fitting transfer function model to FRF data ymohammadi 0 1,723 Feb-10-2022, 10:02 AM
Last Post: ymohammadi
  curve fitting matlotlib scipy Cjstarling 2 2,504 Sep-15-2020, 02:56 PM
Last Post: Cjstarling
  Fitting experimental data with differential equations : Optimization madoko 6 6,938 Jan-17-2019, 11:30 AM
Last Post: scidam
  panda, excel - script pauses and doesn't continue running, no error message william 1 2,698 Nov-24-2018, 01:24 AM
Last Post: ichabod801
  Newbie at using python and tensorflow getting error when running simple code FeatherineAu 0 4,014 Sep-28-2018, 02:09 PM
Last Post: FeatherineAu
  Fitting Lognormal Data Carolyn 3 16,156 May-21-2018, 12:10 AM
Last Post: scidam
  Error while running python script to get pixel points from google static map image python_newbee 3 4,871 Sep-15-2017, 06:25 AM
Last Post: python_newbee

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020