Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
Phpml\Classification\SVC Class Reference
Inheritance diagram for Phpml\Classification\SVC:
Phpml\SupportVectorMachine\SupportVectorMachine Phpml\Classification\Classifier Phpml\Estimator

Public Member Functions

 __construct (int $kernel=Kernel::RBF, float $cost=1.0, int $degree=3, ?float $gamma=null, float $coef0=0.0, float $tolerance=0.001, int $cacheSize=100, bool $shrinking=true, bool $probabilityEstimates=false)
 
 getModel ()
 
 predict (array $samples)
 
 predict (array $samples)
 
 predictProbability (array $samples)
 
 setBinPath (string $binPath)
 
 setVarPath (string $varPath)
 
 train (array $samples, array $targets)
 
 train (array $samples, array $targets)
 

Member Function Documentation

◆ predict() [1/2]

Phpml\Estimator::predict ( array $samples)
inherited

Implemented in Phpml\Pipeline.

◆ predict() [2/2]

Phpml\SupportVectorMachine\SupportVectorMachine::predict ( array $samples)
inherited
Return values
array|string
Exceptions
LibsvmCommandException

◆ predictProbability()

Phpml\SupportVectorMachine\SupportVectorMachine::predictProbability ( array $samples)
inherited
Return values
array|string
Exceptions
LibsvmCommandException

◆ train()

Phpml\Estimator::train ( array $samples,
array $targets )
inherited

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