Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
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: