Package org.neo4j.gds.ml.models.mlp
Class MLPClassifierObjective
java.lang.Object
org.neo4j.gds.ml.models.mlp.MLPClassifierObjective
- All Implemented Interfaces:
Objective<MLPClassifierData>
-
Constructor Summary
ConstructorsConstructorDescriptionMLPClassifierObjective(MLPClassifier classifier, Features features, org.neo4j.gds.collections.ha.HugeIntArray labels, double penalty, double focusWeight, double[] classWeights) -
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()
-
Constructor Details
-
MLPClassifierObjective
public MLPClassifierObjective(MLPClassifier classifier, Features features, org.neo4j.gds.collections.ha.HugeIntArray labels, double penalty, double focusWeight, double[] classWeights)
-
-
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<MLPClassifierData>
-
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<MLPClassifierData>
-
modelData
Description copied from interface:ObjectiveReturns the data, such as weights, needed to store or load the model- Specified by:
modelDatain interfaceObjective<MLPClassifierData>- Returns:
- the data
-