Skip to content
/ laplace Public

Linear regression for Laplace distributed targets

License

Notifications You must be signed in to change notification settings

Mottl/laplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

laplace

Linear regression for Laplace distributed targets

Usage

from LaplaceLinearRegressor import LaplaceLinearRegressor

x = np.linspace(0,10,20)
y = 2*x + 5
y[0] = 20
y[1] = 25
y[-1] = 10
y[-2] = 5

llr = LaplaceLinearRegressor()
llr.fit(x, y)
y_pred = llr.predict(x)
print("weights =",llr.w)

About

Linear regression for Laplace distributed targets

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages