Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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: