Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
Phpml\Regression\LeastSquares Class Reference
Inheritance diagram for Phpml\Regression\LeastSquares:
Phpml\Regression\Regression Phpml\Estimator

Public Member Functions

 getCoefficients ()
 
 getIntercept ()
 
 predict (array $samples)
 
 predictSample (array $sample)
 
 train (array $samples, array $targets)
 

Member Function Documentation

◆ predict()

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

Implemented in Phpml\Pipeline.

◆ predictSample()

Phpml\Regression\LeastSquares::predictSample ( array $sample)
Return values
mixed

◆ train()

Phpml\Regression\LeastSquares::train ( array $samples,
array $targets )

Implements Phpml\Estimator.


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