Skip to content

atul1503/Custom-Function-Regressor-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom-Function-Regressor


Custom Function Regressor using Stochastic Gradient in pure Python.

Usage:

At the time of writing,you have to hard code your function.Partial derivatives of your function will be calculated automatically.

Parameters are represented as w matrix where:

a=w[0], b=w[1], c=w[2], d=w[3], e=w[4], . . . etc.

You also have to give the no. of parameters in the coeff variable.

The function has to be written to the pred variable.

dw matrix is the weight update matrix for each w index.

Terms introduced in version 1.9:

Lookup Multiplier:

It is the step size at which the direction of the slope of the cost function wil be checked.This can be used when the algorithm is stuck inside a local minima.It will help the curve fitter algo to "see the bigger picture" such that even though it may be stuck in the local minima but it will be able to see the slope which is far from its current location and then decide where it wants to go.For normal behaviour, you can set this value to 1.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages