Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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: