Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
Phpml\Classification\WeightedClassifier Class Reference
Inheritance diagram for Phpml\Classification\WeightedClassifier:
Phpml\Classification\Classifier Phpml\Estimator Phpml\Classification\Linear\DecisionStump

Public Member Functions

 predict (array $samples)
 
 setSampleWeights (array $weights)
 Sets the array including a weight for each sample.
 
 train (array $samples, array $targets)
 

Protected Attributes

array $weights = []
 

Member Function Documentation

◆ predict()

Phpml\Estimator::predict ( array $samples)
inherited

Implemented in Phpml\Pipeline.

◆ train()

Phpml\Estimator::train ( array $samples,
array $targets )
inherited

The documentation for this class was generated from the following file: