PHP Class PHPML\Pipeline

Inheritance: implements phpml\Estimator
ファイルを表示 Open project: php-ai/php-ml Class Usage Examples

Public Methods

Method Description
__construct ( array $transformers, phpml\Estimator $estimator )
addTransformer ( phpml\Transformer $transformer )
getEstimator ( ) : phpml\Estimator
getTransformers ( ) : array | phpml\Transformer[]
predict ( array $samples ) : mixed
setEstimator ( phpml\Estimator $estimator )
train ( array $samples, array $targets )

Private Methods

Method Description
fitTransformers ( array &$samples )
transformSamples ( array &$samples )

Method Details

__construct() public method

public __construct ( array $transformers, phpml\Estimator $estimator )
$transformers array
$estimator phpml\Estimator

addTransformer() public method

public addTransformer ( phpml\Transformer $transformer )
$transformer phpml\Transformer

getEstimator() public method

public getEstimator ( ) : phpml\Estimator
return phpml\Estimator

getTransformers() public method

public getTransformers ( ) : array | phpml\Transformer[]
return array | phpml\Transformer[]

predict() public method

public predict ( array $samples ) : mixed
$samples array
return mixed

setEstimator() public method

public setEstimator ( phpml\Estimator $estimator )
$estimator phpml\Estimator

train() public method

public train ( array $samples, array $targets )
$samples array
$targets array