PHP Class Phpml\SupportVectorMachine\DataTransformer

Datei anzeigen Open project: php-ai/php-ml Class Usage Examples

Public Methods

Method Description
numericLabels ( array $labels ) : array
predictions ( string $rawPredictions, array $labels ) : array
testSet ( array $samples ) : string
trainingSet ( array $samples, array $labels, boolean $targets = false ) : string

Private Methods

Method Description
sampleRow ( array $sample ) : string

Method Details

numericLabels() public static method

public static numericLabels ( array $labels ) : array
$labels array
return array

predictions() public static method

public static predictions ( string $rawPredictions, array $labels ) : array
$rawPredictions string
$labels array
return array

testSet() public static method

public static testSet ( array $samples ) : string
$samples array
return string

trainingSet() public static method

public static trainingSet ( array $samples, array $labels, boolean $targets = false ) : string
$samples array
$labels array
$targets boolean
return string