Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
Phpml\Pipeline Class Reference
Inheritance diagram for Phpml\Pipeline:
Phpml\Estimator Phpml\Transformer

Public Member Functions

 __construct (array $transformers, ?Estimator $estimator=null)
 
 fit (array $samples, ?array $targets=null)
 
 getEstimator ()
 
 getTransformers ()
 
 predict (array $samples)
 
 train (array $samples, array $targets)
 
 transform (array &$samples, ?array &$targets=null)
 

Constructor & Destructor Documentation

◆ __construct()

Phpml\Pipeline::__construct ( array $transformers,
?Estimator $estimator = null )
Parameters
Transformer[]$transformers

Member Function Documentation

◆ fit()

Phpml\Pipeline::fit ( array $samples,
?array $targets = null )

Implements Phpml\Transformer.

◆ getTransformers()

Phpml\Pipeline::getTransformers ( )
Return values
Transformer[]

◆ predict()

Phpml\Pipeline::predict ( array $samples)
Return values
mixed

Implements Phpml\Estimator.

◆ train()

Phpml\Pipeline::train ( array $samples,
array $targets )

Implements Phpml\Estimator.

◆ transform()

Phpml\Pipeline::transform ( array & $samples,
?array & $targets = null )

Implements Phpml\Transformer.


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