Algorithm class for training naive Bayes model.
More...
- Deprecated:
- This item will be removed in a future release.
- Parameters
-
fptype | Data type to use in intermediate computations for multinomial naive Bayes training in the online processing mode, double or float |
method | Computation method, Method |
- Enumerations
- Method Training methods for the multinomial naive Bayes algorithm
- Aliases
Online_Float64DefaultDense
is an alias of Online(fptype=float64, method=daal.algorithms.multinomial_naive_bayes.training.defaultDense)
Online_Float64FastCSR
is an alias of Online(fptype=float64, method=daal.algorithms.multinomial_naive_bayes.training.fastCSR)
Online_Float32DefaultDense
is an alias of Online(fptype=float32, method=daal.algorithms.multinomial_naive_bayes.training.defaultDense)
Online_Float32FastCSR
is an alias of Online(fptype=float32, method=daal.algorithms.multinomial_naive_bayes.training.fastCSR)
def __init__ |
( |
|
self, |
|
|
|
args |
|
) |
| |
- Variant 1
Default constructor
- Parameters
-
nClasses | Number of classes |
- Variant 2
Constructs multinomial naive Bayes training algorithm by copying input objects and parameters of another multinomial naive Bayes training algorithm
- Parameters
-
other | An algorithm to be used as the source to initialize the input objects and parameters of the algorithm |
Returns a pointer to the newly allocated multinomial naive Bayes training algorithm with a copy of input objects and parameters of this multinomial naive Bayes training algorithm
- Returns
- Pointer to the newly allocated algorithm
Invokes computations and returns partial result
def finalizeCompute |
( |
|
self | ) |
|
Finalizes computations and returns (final) result
Returns method of the algorithm
- Returns
- Method of the algorithm
def getPartialResult |
( |
|
self | ) |
|
Returns the structure that contains computed partial results
- Returns
- Structure that contains computed partial results
Returns the structure that contains results of Naive Bayes training
- Returns
- Structure that contains results of Naive Bayes training
Resets the training results of the classification algorithm
def setResult |
( |
|
self, |
|
|
|
result |
|
) |
| |
Registers user-allocated memory to store results of Naive Bayes training
- Parameters
-
result | Structure to store results of Naive Bayes training |
- Returns
- Status of computations
The documentation for this class was generated from the following file:
- multinomial_naive_bayes/training.py