Skip to content

What's the reasoning behind MinimizerResult's ndata determination? #995

Answered by newville
JulianoGianlupi asked this question in Q&A
Discussion options

You must be logged in to vote

@JulianoGianlupi

Well, ndata is the length of the residual. That is the number of observations that are used in the minimization.

e.g., in my case I am passing the data as part of args,
How could we know that?
Exactly! I am glad you understood

I do not understand.

The number of parameters is most definitely a well-known value
Right, my mistake, I meant ndata. I do think that it's clear from the rest of the post what I meant though.

Um, it was not clear to me. That was exactly my comment. When someone says they do not understand what you are saying, you need to believe them.

I am always skeptical to see people using a scalar minimizer with a custom cost function for data fittin…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@JulianoGianlupi
Comment options

Comment options

You must be logged in to vote
1 reply
@JulianoGianlupi
Comment options

Answer selected by JulianoGianlupi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants