Class LogisticRegressionTrainer
java.lang.Object
org.neo4j.gds.ml.models.logisticregression.LogisticRegressionTrainer
- All Implemented Interfaces:
ClassifierTrainer
-
Constructor Summary
ConstructorsConstructorDescriptionLogisticRegressionTrainer(int concurrency, LogisticRegressionTrainConfig trainConfig, int numberOfClasses, boolean reduceClassCount, org.neo4j.gds.termination.TerminationFlag terminationFlag, org.neo4j.gds.core.utils.progress.tasks.ProgressTracker progressTracker, org.neo4j.gds.core.utils.progress.tasks.LogLevel messageLogLevel) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.neo4j.gds.core.utils.mem.MemoryEstimationmemoryEstimation(boolean isReduced, int numberOfClasses, org.neo4j.gds.core.utils.mem.MemoryRange featureDimension, int batchSize, LongUnaryOperator numberOfTrainingExamples) train(Features features, org.neo4j.gds.collections.ha.HugeIntArray labels, org.neo4j.gds.core.utils.paged.ReadOnlyHugeLongArray trainSet)
-
Constructor Details
-
LogisticRegressionTrainer
public LogisticRegressionTrainer(int concurrency, LogisticRegressionTrainConfig trainConfig, int numberOfClasses, boolean reduceClassCount, org.neo4j.gds.termination.TerminationFlag terminationFlag, org.neo4j.gds.core.utils.progress.tasks.ProgressTracker progressTracker, org.neo4j.gds.core.utils.progress.tasks.LogLevel messageLogLevel)
-
-
Method Details
-
memoryEstimation
public static org.neo4j.gds.core.utils.mem.MemoryEstimation memoryEstimation(boolean isReduced, int numberOfClasses, org.neo4j.gds.core.utils.mem.MemoryRange featureDimension, int batchSize, LongUnaryOperator numberOfTrainingExamples) -
train
public LogisticRegressionClassifier train(Features features, org.neo4j.gds.collections.ha.HugeIntArray labels, org.neo4j.gds.core.utils.paged.ReadOnlyHugeLongArray trainSet) - Specified by:
trainin interfaceClassifierTrainer
-