I would like to create an algorithm in javascript that can be regressed with any graph, such as scipy.optimize.curve_fit.The library I found is at the following URL:
https://www.npmjs.com/package/regression
However, this can only be a specific graph regression, such as a simple linear regression or logarithmic regression.
The reference graph (the code part is written in python) that I want to go back to is
sigmoid function
http://ailaby.com/sigmoid_coef/
def pf(x, alpha, beta):
return 1/(1+np.exp (-alpha-beta*x))
will be .
So what I want to do is
1, I would like you to tell me an algorithm that can be regressed with any graph, such as scipy.optimize.curve_fit.
If 2, 1 is difficult, please tell me an algorithm for regression that is specific to sigmoid functions only.
That's all.Thank you for your cooperation.
python javascript deep-learning scipy
The algorithm used by scipy.optimize.curve_fit
is described in the document: https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.curve_fit.html
method {'lm', 'trf', 'dogbox'}
Each method is as follows:
© 2024 OneMinuteCode. All rights reserved.