nlp
1.2.0
nlp
/
com.londogard.nlp.meachinelearning.predictors.regression
/
SimpleLinearRegression
Simple
Linear
Regression
public
final
class
SimpleLinearRegression
implements
Regressor
Content copied to clipboard
Constructors
Functions
Properties
Constructors
Simple
Linear
Regression
Link copied to clipboard
public
SimpleLinearRegression
SimpleLinearRegression
(
)
Content copied to clipboard
Functions
fit
Link copied to clipboard
public
Unit
fit
(
MultiArray
<
Float
,
D2
>
X
,
NDArray
<
Float
,
D2
>
y
)
Content copied to clipboard
get
Slope
Link copied to clipboard
public
final
Float
getSlope
(
)
Content copied to clipboard
get
YIntercept
Link copied to clipboard
public
final
Float
getYIntercept
(
)
Content copied to clipboard
predict
Link copied to clipboard
public
NDArray
<
Float
,
D2
>
predict
(
MultiArray
<
Float
,
D2
>
X
)
Content copied to clipboard
set
Slope
Link copied to clipboard
public
final
Unit
setSlope
(
Float
slope
)
Content copied to clipboard
set
YIntercept
Link copied to clipboard
public
final
Unit
setYIntercept
(
Float
yIntercept
)
Content copied to clipboard
Properties
slope
Link copied to clipboard
private
Float
slope
Content copied to clipboard
y
Intercept
Link copied to clipboard
private
Float
yIntercept
Content copied to clipboard