Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
Phpml\Regression\SVR Class Reference
Inheritance diagram for Phpml\Regression\SVR:
Phpml\SupportVectorMachine\SupportVectorMachine Phpml\Regression\Regression Phpml\Estimator

Public Member Functions

 __construct (int $kernel=Kernel::RBF, int $degree=3, float $epsilon=0.1, float $cost=1.0, ?float $gamma=null, float $coef0=0.0, float $tolerance=0.001, int $cacheSize=100, bool $shrinking=true)
 
 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: