Algorithm class for training the 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, double or float |
method | Computation method, Method |
- Enumerations
- Method Training methods for the multinomial naive Bayes algorithm
- Aliases
Batch_Float64DefaultDense
is an alias of Batch(fptype=float64, method=daal.algorithms.multinomial_naive_bayes.training.defaultDense)
Batch_Float64FastCSR
is an alias of Batch(fptype=float64, method=daal.algorithms.multinomial_naive_bayes.training.fastCSR)
Batch_Float32DefaultDense
is an alias of Batch(fptype=float32, method=daal.algorithms.multinomial_naive_bayes.training.defaultDense)
Batch_Float32FastCSR
is an alias of Batch(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
Get input objects for the multinomial naive Bayes training algorithm
- Returns
- Input objects for the multinomial naive Bayes training algorithm
Returns method of the algorithm
- Returns
- Method of the algorithm
Returns the structure that contains results of Naive Bayes training
- Returns
- Structure that contains results of Naive Bayes training
Input objects of the algorithm
The documentation for this class was generated from the following file:
- multinomial_naive_bayes/training.py