Python* API Reference for Intel® Data Analytics Acceleration Library 2020 Update 1

Public Member Functions | Static Public Attributes | List of all members
Online Class Reference

Algorithm class for training naive Bayes model. More...

Public Member Functions

def __init__
 
def getMethod
 
def getResult
 
def setResult
 
def resetResult
 
def getPartialResult
 
def clone
 
def compute
 
def finalizeCompute
 
- Public Member Functions inherited from Online
def setPartialResult
 
def setResult
 
def getPartialResult
 
def getResult
 
def clone
 
def compute
 
def finalizeCompute
 

Static Public Attributes

 parameter = ...
 
- Static Public Attributes inherited from Online
 input = ...
 

Detailed Description

Deprecated:
This item will be removed in a future release.
Parameters
fptypeData type to use in intermediate computations for multinomial naive Bayes training in the online processing mode, double or float
methodComputation 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)

Constructor & Destructor Documentation

def __init__ (   self,
  args 
)

Variant 1

Default constructor

Parameters
nClassesNumber of classes

Variant 2

Constructs multinomial naive Bayes training algorithm by copying input objects and parameters of another multinomial naive Bayes training algorithm

Parameters
otherAn algorithm to be used as the source to initialize the input objects and parameters of the algorithm

Member Function Documentation

def clone (   self)

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
def compute (   self)

Invokes computations and returns partial result

def finalizeCompute (   self)

Finalizes computations and returns (final) result

def getMethod (   self)

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
def getResult (   self)

Returns the structure that contains results of Naive Bayes training

Returns
Structure that contains results of Naive Bayes training
def resetResult (   self)

Resets the training results of the classification algorithm

def setResult (   self,
  result 
)

Registers user-allocated memory to store results of Naive Bayes training

Parameters
resultStructure to store results of Naive Bayes training
Returns
Status of computations

Member Data Documentation

parameter = ...
static

Parameters of the training


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

For more complete information about compiler optimizations, see our Optimization Notice.