Class LinearRegressionObjective
java.lang.Object
org.neo4j.gds.ml.models.linearregression.LinearRegressionObjective
- All Implemented Interfaces:
Objective<LinearRegressionData>
-
Method Summary
Modifier and TypeMethodDescriptionorg.neo4j.gds.ml.core.Variable<org.neo4j.gds.ml.core.tensor.Scalar>loss(org.neo4j.gds.ml.core.batch.Batch batch, long trainSize) Returns the data, such as weights, needed to store or load the modelList<org.neo4j.gds.ml.core.functions.Weights<? extends org.neo4j.gds.ml.core.tensor.Tensor<?>>>weights()
-
Method Details
-
weights
public List<org.neo4j.gds.ml.core.functions.Weights<? extends org.neo4j.gds.ml.core.tensor.Tensor<?>>> weights()- Specified by:
weightsin interfaceObjective<LinearRegressionData>
-
loss
public org.neo4j.gds.ml.core.Variable<org.neo4j.gds.ml.core.tensor.Scalar> loss(org.neo4j.gds.ml.core.batch.Batch batch, long trainSize) - Specified by:
lossin interfaceObjective<LinearRegressionData>
-
modelData
Description copied from interface:ObjectiveReturns the data, such as weights, needed to store or load the model- Specified by:
modelDatain interfaceObjective<LinearRegressionData>- Returns:
- the data
-