Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
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: