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

Public Member Functions | List of all members
interface2_Model Class Reference

Model of the classifier trained by the logitboost.training.Batch algorithm. More...

Public Member Functions

def serializationTag
 
def getSerializationTag
 
def downCast
 
def __init__
 
def create
 
def getNumberOfWeakLearners
 
def getWeakLearnerModel
 
def addWeakLearnerModel
 
def clearWeakLearnerModels
 
def getNumberOfFeatures
 
def setIterations
 
def getIterations
 
- Public Member Functions inherited from Model
def getNFeatures
 
def getNumberOfFeatures
 
def setNFeatures
 
- Public Member Functions inherited from Model
def __init__
 
def getSerializationTag
 
- Public Member Functions inherited from SerializationIface
def serialize
 
def deserialize
 
def getSerializationTag
 
- Public Member Functions inherited from Base
def __init__
 

Detailed Description

References

Constructor & Destructor Documentation

def __init__ (   self,
  nFeatures = 0 
)

Empty constructor for deserialization

Deprecated:
This item will be removed in a future release.

Use Model.create instead.

Member Function Documentation

def addWeakLearnerModel (   self,
  model 
)

Add weak learner model into the LogitBoost model

Parameters
modelWeak learner model to add into collection
def clearWeakLearnerModels (   self)

Clears the collecion of weak learners

def create (   nFeatures,
  par,
  stat = None 
)

Constructs the LogitBoost model

Parameters
nFeaturesNumber of features in the dataset
parPointer to the parameter structure of the LogitBoost algorithm
statStatus of the model construction
def downCast (   r)

downCast(daal.services.SharedPtr< daal.algorithms.classifier.Model > const & r) -> daal.services.SharedPtr< daal.algorithms.logitboost.Model >

def getIterations (   self)

Returns the number of iterations done by the training algorithm

Returns
The number of iterations done by the training algorithm
def getNumberOfFeatures (   self)

Retrieves the number of features in the dataset was used on the training stage

Returns
Number of features in the dataset was used on the training stage
def getNumberOfWeakLearners (   self)

Returns the number of weak learners constructed during training of the LogitBoost algorithm

Returns
The number of weak learners
def getSerializationTag (   self)

getSerializationTag(interface2_Model self) -> int

def getWeakLearnerModel (   self,
  idx 
)

Returns weak learner model constructed during training of the LogitBoost algorithm

Parameters
idxIndex of the model in the collection
Returns
Weak Learner model corresponding to the index idx
def serializationTag ( )
def setIterations (   self,
  nIterations 
)

Sets the number of iterations for the algorithm

Parameters
nIterationsNumber of iterations

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

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