Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
Phpml\Classification\NaiveBayes Class Reference
Inheritance diagram for Phpml\Classification\NaiveBayes:
Phpml\Classification\Classifier Phpml\Estimator

Public Member Functions

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

Public Attributes

const CONTINUOS = 1
 
const EPSILON = 1e-10
 
const NOMINAL = 2
 

Protected Member Functions

 predictSample (array $sample)
 

Member Function Documentation

◆ predict()

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

Implemented in Phpml\Pipeline.

◆ predictSample()

Phpml\Classification\NaiveBayes::predictSample ( array $sample)
protected
Return values
mixed

◆ train()

Phpml\Classification\NaiveBayes::train ( array $samples,
array $targets )

Implements Phpml\Estimator.


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