PHP 클래스 Phpml\SupportVectorMachine\SupportVectorMachine

파일 보기 프로젝트 열기: php-ai/php-ml 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( integer $type, integer $kernel, float $cost = 1, float $nu = 0.5, integer $degree = 3, float $gamma = null, float $coef0, float $epsilon = 0.1, float $tolerance = 0.001, integer $cacheSize = 100, boolean $shrinking = true, boolean $probabilityEstimates = false )
getModel ( ) : string
predict ( array $samples ) : array
train ( array $samples, array $labels )

비공개 메소드들

메소드 설명
buildTrainCommand ( string $trainingSetFileName, string $modelFileName ) : string
getOSExtension ( ) : string

메소드 상세

__construct() 공개 메소드

public __construct ( integer $type, integer $kernel, float $cost = 1, float $nu = 0.5, integer $degree = 3, float $gamma = null, float $coef0, float $epsilon = 0.1, float $tolerance = 0.001, integer $cacheSize = 100, boolean $shrinking = true, boolean $probabilityEstimates = false )
$type integer
$kernel integer
$cost float
$nu float
$degree integer
$gamma float
$coef0 float
$epsilon float
$tolerance float
$cacheSize integer
$shrinking boolean
$probabilityEstimates boolean

getModel() 공개 메소드

public getModel ( ) : string
리턴 string

predict() 공개 메소드

public predict ( array $samples ) : array
$samples array
리턴 array

train() 공개 메소드

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