This documentation is for astroML version 0.2

This page

Links

astroML Mailing List

GitHub Issue Tracker

Videos

Scipy 2012 (15 minute talk)

Scipy 2013 (20 minute talk)

Citing

If you use the software, please consider citing astroML.

11.3.1.1. astroML.linear_model.LinearRegression

class astroML.linear_model.LinearRegression(fit_intercept=True)

Simple Linear Regression with errors in y

This is a stripped-down version of sklearn.linear_model.LinearRegression which can correctly accounts for errors in the y variable

Parameters :

fit_intercept : bool (optional)

if True (default) then fit the intercept of the data

Notes

This implementation may be compared to that in sklearn.linear_model.LinearRegression. The difference is that here errors are

Methods

fit(X, y[, dy])
predict(X)
__init__(fit_intercept=True)