Note
Scikit-learn patching functionality in daal4py was deprecated and moved to a separate package, Intel(R) Extension for Scikit-learn*. All future patches will be available only in Intel(R) Extension for Scikit-learn*. Use the scikit-learn-intelex package instead of daal4py for the scikit-learn acceleration.
See also Intel(R) oneAPI Data Analytics Library Classification.
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Classification Decision Forest.
Examples:
Single-Process Decision Forest Classification Default Dense method
Single-Process Decision Forest Classification Histogram method
nClasses (size_t) – Number of classes
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for Decision forest, double or float
method (str) – [optional, default: “defaultDense”] Decision forest computation method
resultsToEvaluate (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
nTrees (size_t) – [optional, default: -1] Number of trees in the forest. Default is 10
observationsPerTreeFraction (double) – [optional, default: get_nan64()] Fraction of observations used for a training of one tree, 0 to 1. Default is 1 (sampling with replacement)
featuresPerNode (size_t) – [optional, default: -1] Number of features tried as possible splits per node. If 0 then sqrt(p) for classification, p/3 for regression, where p is the total number of features.
maxTreeDepth (size_t) – [optional, default: -1] Maximal tree depth. Default is 0 (unlimited)
minObservationsInLeafNode (size_t) – [optional, default: -1] Minimal number of observations in a leaf node. Default is 1 for classification, 5 for regression.
engine (engines_batchbase__iface__) – [optional, default: None] Engine for the random numbers generator used by the algorithms
impurityThreshold (double) – [optional, default: get_nan64()] Threshold value used as stopping criteria: if the impurity value in the node is smaller than the threshold then the node is not split anymore.
varImportance (str) – [optional, default: “”] Variable importance computation mode
resultsToCompute (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
memorySavingMode (bool) – [optional, default: False] If true then use memory saving (but slower) mode
bootstrap (bool) – [optional, default: False] If true then training set for a tree is a bootstrap of the whole training set
minObservationsInSplitNode (size_t) – [optional, default: -1] Minimal number of observations in a split node. Default 2
minWeightFractionInLeafNode (double) – [optional, default: get_nan64()] The minimum weighted fraction of the sum total of weights (of all the input observations) required to be at a leaf node, 0.0 to 0.5. Default is 0.0
minImpurityDecreaseInSplitNode (double) – [optional, default: get_nan64()] A node will be split if this split induces a decrease of the impurity greater than or equal to the value, non-negative. Default is 0.0
maxLeafNodes (size_t) – [optional, default: -1] Maximum number of leaf node. Default is 0 (unlimited)
maxBins (size_t) – [optional, default: -1] Used with ‘hist’ split finding method only. Maximal number of discrete bins to bucket continuous features. Default is 256. Increasing the number results in higher computation costs
minBinSize (size_t) – [optional, default: -1] Used with ‘hist’ split finding method only. Minimal number of observations in a bin. Default is 5
splitter (str) – [optional, default: “”] Sets node splitting method. Default is best
binningStrategy (str) – [optional, default: “”] Used with ‘hist’ split finding method only. Selects the strategy to group data points into bins. Allowed values are ‘quantiles’ (default), ‘averages’
Do the actual computation on provided input data.
data (data_or_file) – Training data set
labels (data_or_file) – Labels of the training data set
weights (data_or_file) – [optional, default: None] Optional. Weights of the observations in the training data set
Properties:
Numpy array
Numpy array
Numpy array
Numpy array
Numpy array
nClasses (size_t) – Number of classes
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the decision_forest algorithm, double or float
method (str) – [optional, default: “defaultDense”] decision_forest computation method
votingMethod (str) – [optional, default: “”]
resultsToEvaluate (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
Do the actual computation on provided input data.
data (data_or_file) – Input data set
model (decision_forest_classification_modelptr) – Input model trained by the classification algorithm
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Classification Decision Tree.
Examples:
nClasses (size_t) – Number of classes
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for Decision tree model-based training, double or float
method (str) – [optional, default: “defaultDense”] Decision tree training method
pruning (str) – [optional, default: “”] Pruning method for Decision tree
maxTreeDepth (size_t) – [optional, default: -1] Maximum tree depth. 0 means unlimited depth.
minObservationsInLeafNodes (size_t) – [optional, default: -1] Minimum number of observations in the leaf node. Can be any positive number.
nBins (size_t) – [optional, default: -1] The number of bins used to compute probabilities of the observations belonging to the class. The only supported value for current version of the library is 1.
splitCriterion (str) – [optional, default: “”] Split criterion for Decision tree classification
resultsToEvaluate (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
Do the actual computation on provided input data.
data (data_or_file) – Training data set
labels (data_or_file) – Labels of the training data set
dataForPruning (data_or_file) – Pruning data set
labelsForPruning (data_or_file) – Labels of the pruning data set
weights (data_or_file) – [optional, default: None] Optional. Weights of the observations in the training data set
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for Decision tree model-based prediction
method (str) – [optional, default: “defaultDense”] Computation method in the batch processing mode
pruning (str) – [optional, default: “”] Pruning method for Decision tree
maxTreeDepth (size_t) – [optional, default: -1] Maximum tree depth. 0 means unlimited depth.
minObservationsInLeafNodes (size_t) – [optional, default: -1] Minimum number of observations in the leaf node. Can be any positive number.
nBins (size_t) – [optional, default: -1] The number of bins used to compute probabilities of the observations belonging to the class. The only supported value for current version of the library is 1.
splitCriterion (str) – [optional, default: “”] Split criterion for Decision tree classification
nClasses (size_t) – [optional, default: -1] Number of classes
resultsToEvaluate (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
Do the actual computation on provided input data.
data (data_or_file) – Input data set
model (decision_tree_classification_modelptr) – Input model trained by the classification algorithm
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Classification Gradient Boosted Tree.
Examples:
nClasses (size_t) – Number of classes
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for Gradient Boosted Trees, double or float
method (str) – [optional, default: “defaultDense”] Gradient Boosted Trees computation method
loss (str) – [optional, default: “”] Loss function type
varImportance (str) – [optional, default: “”] 64 bit integer flag VariableImportanceModes that indicates the variable importance computation modes
resultsToEvaluate (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
splitMethod (str) – [optional, default: “”] Split finding method. Default is exact
maxIterations (size_t) – [optional, default: -1] Maximal number of iterations of the gradient boosted trees training algorithm. Default is 50
maxTreeDepth (size_t) – [optional, default: -1] Maximal tree depth, 0 for unlimited. Default is 6
shrinkage (double) – [optional, default: get_nan64()] Learning rate of the boosting procedure. Scales the contribution of each tree by a factor (0, 1]. Default is 0.3
minSplitLoss (double) – [optional, default: get_nan64()] Loss regularization parameter. Min loss reduction required to make a further partition on a leaf node of the tree. Range: [0, inf). Default is 0
lambda (double) – [optional, default: get_nan64()] L2 regularization parameter on weights. Range: [0, inf). Default is 1
observationsPerTreeFraction (double) – [optional, default: get_nan64()] Fraction of observations used for a training of one tree, sampling without replacement. Range: (0, 1]. Default is 1 (no sampling, entire dataset is used)
featuresPerNode (size_t) – [optional, default: -1] Number of features tried as possible splits per node. Range : [0, p] where p is the total number of features. Default is 0 (use all features)
minObservationsInLeafNode (size_t) – [optional, default: -1] Minimal number of observations in a leaf node. Default is 5.
memorySavingMode (bool) – [optional, default: False] If true then use memory saving (but slower) mode. Default is false
engine (engines_batchbase__iface__) – [optional, default: None] Engine for the random numbers generator used by the algorithms
maxBins (size_t) – [optional, default: -1] Used with ‘inexact’ split finding method only. Maximal number of discrete bins to bucket continuous features. Default is 256. Increasing the number results in higher computation costs
minBinSize (size_t) – [optional, default: -1] Used with ‘inexact’ split finding method only. Minimal number of observations in a bin. Default is 5
internalOptions (int) – [optional, default: -1] Internal options
Do the actual computation on provided input data.
data (data_or_file) – Training data set
labels (data_or_file) – Labels of the training data set
weights (data_or_file) – [optional, default: None] Optional. Weights of the observations in the training data set
Properties:
Numpy array
Numpy array
Numpy array
Numpy array
Numpy array
nClasses (size_t) – Number of classes
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the gbt algorithm, double or float
method (str) – [optional, default: “defaultDense”] gradient boosted trees computation method
nIterations (size_t) – [optional, default: -1] Number of iterations of the trained model to be used for prediction
resultsToCompute (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
resultsToEvaluate (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
Do the actual computation on provided input data.
data (data_or_file) – Input data set
model (gbt_classification_modelptr) – Input model trained by the classification algorithm
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library k-Nearest Neighbors (kNN).
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for KD-tree based kNN model-based training, double or float
method (str) – [optional, default: “defaultDense”] KD-tree based kNN training method
k (size_t) – [optional, default: -1] Number of neighbors
dataUseInModel (str) – [optional, default: “”] The option to enable/disable an usage of the input dataset in kNN model
engine (engines_batchbase__iface__) – [optional, default: None] Engine for random choosing elements from training dataset
resultsToCompute (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
voteWeights (str) – [optional, default: “”] Weight function used in prediction
nClasses (size_t) – [optional, default: -1] Number of classes
resultsToEvaluate (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
Do the actual computation on provided input data.
data (data_or_file) – Training data set
labels (data_or_file) – [optional, default: None] Labels of the training data set
weights (data_or_file) – [optional, default: None] Optional. Weights of the observations in the training data set
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for KD-tree based kNN model-based prediction
method (str) – [optional, default: “defaultDense”] Computation method in the batch processing mode
k (size_t) – [optional, default: -1] Number of neighbors
dataUseInModel (str) – [optional, default: “”] The option to enable/disable an usage of the input dataset in kNN model
engine (engines_batchbase__iface__) – [optional, default: None] Engine for random choosing elements from training dataset
resultsToCompute (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
voteWeights (str) – [optional, default: “”] Weight function used in prediction
nClasses (size_t) – [optional, default: -1] Number of classes
resultsToEvaluate (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
Do the actual computation on provided input data.
data (data_or_file) – Input data set
model (kdtree_knn_classification_modelptr) – Input model trained by the classification algorithm
kdtree_knn_classification_prediction_result
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library k-Nearest Neighbors (kNN).
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for BF kNN model-based training, double or float
method (str) – [optional, default: “defaultDense”] BF kNN training method
k (size_t) – [optional, default: -1] Number of neighbors
dataUseInModel (str) – [optional, default: “”] The option to enable/disable an usage of the input dataset in kNN model
resultsToCompute (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
voteWeights (str) – [optional, default: “”] Weight function used in prediction
engine (engines_batchbase__iface__) – [optional, default: None] Engine for random choosing elements from training dataset
nClasses (size_t) – [optional, default: -1] Number of classes
resultsToEvaluate (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
Do the actual computation on provided input data.
data (data_or_file) – Training data set
labels (data_or_file) – [optional, default: None] Labels of the training data set
weights (data_or_file) – [optional, default: None] Optional. Weights of the observations in the training data set
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for BF kNN model-based prediction
method (str) – [optional, default: “defaultDense”] Computation method in the batch processing mode
k (size_t) – [optional, default: -1] Number of neighbors
dataUseInModel (str) – [optional, default: “”] The option to enable/disable an usage of the input dataset in kNN model
resultsToCompute (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
voteWeights (str) – [optional, default: “”] Weight function used in prediction
engine (engines_batchbase__iface__) – [optional, default: None] Engine for random choosing elements from training dataset
nClasses (size_t) – [optional, default: -1] Number of classes
resultsToEvaluate (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
Do the actual computation on provided input data.
data (data_or_file) – Input data set
model (bf_knn_classification_modelptr) – Input model trained by the classification algorithm
bf_knn_classification_prediction_result
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Classification AdaBoost.
Examples:
nClasses (size_t) – Number of classes
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the AdaBoost, double or float
method (str) – [optional, default: “defaultDense”] AdaBoost computation method
weakLearnerTraining (classifier_training_batch__iface__) – [optional, default: None] The algorithm for weak learner model training
weakLearnerPrediction (classifier_prediction_batch__iface__) – [optional, default: None] The algorithm for prediction based on a weak learner model
accuracyThreshold (double) – [optional, default: get_nan64()] Accuracy of the AdaBoost training algorithm
maxIterations (size_t) – [optional, default: -1] Maximal number of iterations of the AdaBoost training algorithm
learningRate (double) – [optional, default: get_nan64()] Multiplier for each classifier to shrink its contribution
resultsToCompute (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
resultsToEvaluate (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
Do the actual computation on provided input data.
data (data_or_file) – Training data set
labels (data_or_file) – Labels of the training data set
weights (data_or_file) – [optional, default: None] Optional. Weights of the observations in the training data set
Properties:
Numpy array
nClasses (size_t) – Number of classes
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the AdaBoost, double or float
method (str) – [optional, default: “defaultDense”] AdaBoost computation method
weakLearnerTraining (classifier_training_batch__iface__) – [optional, default: None] The algorithm for weak learner model training
weakLearnerPrediction (classifier_prediction_batch__iface__) – [optional, default: None] The algorithm for prediction based on a weak learner model
accuracyThreshold (double) – [optional, default: get_nan64()] Accuracy of the AdaBoost training algorithm
maxIterations (size_t) – [optional, default: -1] Maximal number of iterations of the AdaBoost training algorithm
learningRate (double) – [optional, default: get_nan64()] Multiplier for each classifier to shrink its contribution
resultsToCompute (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
resultsToEvaluate (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
Do the actual computation on provided input data.
data (data_or_file) – Input data set
model (adaboost_modelptr) – Input model trained by the classification algorithm
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Classification BrownBoost.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for BrownBoost, double or float
method (str) – [optional, default: “defaultDense”] BrownBoost computation method
weakLearnerTraining (classifier_training_batch__iface__) – [optional, default: None] The algorithm for weak learner model training
weakLearnerPrediction (classifier_prediction_batch__iface__) – [optional, default: None] The algorithm for prediction based on a weak learner model
accuracyThreshold (double) – [optional, default: get_nan64()] Accuracy of the BrownBoost training algorithm
maxIterations (size_t) – [optional, default: -1] Maximal number of iterations of the BrownBoost training algorithm
newtonRaphsonAccuracyThreshold (double) – [optional, default: get_nan64()] Accuracy threshold for Newton-Raphson iterations in the BrownBoost training algorithm
newtonRaphsonMaxIterations (size_t) – [optional, default: -1] Maximal number of Newton-Raphson iterations in the BrownBoost training algorithm
degenerateCasesThreshold (double) – [optional, default: get_nan64()] Threshold needed to avoid degenerate cases in the BrownBoost training algorithm
nClasses (size_t) – [optional, default: -1] Number of classes
resultsToEvaluate (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
Do the actual computation on provided input data.
data (data_or_file) – Training data set
labels (data_or_file) – Labels of the training data set
weights (data_or_file) – [optional, default: None] Optional. Weights of the observations in the training data set
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the BrownBoost algorithm, double or float
method (str) – [optional, default: “defaultDense”] BrownBoost computation method
weakLearnerTraining (classifier_training_batch__iface__) – [optional, default: None] The algorithm for weak learner model training
weakLearnerPrediction (classifier_prediction_batch__iface__) – [optional, default: None] The algorithm for prediction based on a weak learner model
accuracyThreshold (double) – [optional, default: get_nan64()] Accuracy of the BrownBoost training algorithm
maxIterations (size_t) – [optional, default: -1] Maximal number of iterations of the BrownBoost training algorithm
newtonRaphsonAccuracyThreshold (double) – [optional, default: get_nan64()] Accuracy threshold for Newton-Raphson iterations in the BrownBoost training algorithm
newtonRaphsonMaxIterations (size_t) – [optional, default: -1] Maximal number of Newton-Raphson iterations in the BrownBoost training algorithm
degenerateCasesThreshold (double) – [optional, default: get_nan64()] Threshold needed to avoid degenerate cases in the BrownBoost training algorithm
nClasses (size_t) – [optional, default: -1] Number of classes
resultsToEvaluate (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
Do the actual computation on provided input data.
data (data_or_file) – Input data set
model (brownboost_modelptr) – Input model trained by the classification algorithm
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Classification LogitBoost.
Examples:
nClasses (size_t) – Number of classes
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for LogitBoost, double or float
method (str) – [optional, default: “friedman”] LogitBoost computation method
weakLearnerTraining (regression_training_batch__iface__) – [optional, default: None] The algorithm for weak learner model training
weakLearnerPrediction (regression_prediction_batch__iface__) – [optional, default: None] The algorithm for prediction based on a weak learner model
accuracyThreshold (double) – [optional, default: get_nan64()] Accuracy of the LogitBoost training algorithm
maxIterations (size_t) – [optional, default: -1] Maximal number of terms in additive regression
weightsDegenerateCasesThreshold (double) – [optional, default: get_nan64()] Threshold to avoid degenerate cases when calculating weights W
responsesDegenerateCasesThreshold (double) – [optional, default: get_nan64()] Threshold to avoid degenerate cases when calculating responses Z
resultsToEvaluate (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
Do the actual computation on provided input data.
data (data_or_file) – Training data set
labels (data_or_file) – Labels of the training data set
weights (data_or_file) – [optional, default: None] Optional. Weights of the observations in the training data set
nClasses (size_t) – Number of classes
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the LogitBoost algorithm, double or float
method (str) – [optional, default: “defaultDense”] LogitBoost computation method
weakLearnerTraining (regression_training_batch__iface__) – [optional, default: None] The algorithm for weak learner model training
weakLearnerPrediction (regression_prediction_batch__iface__) – [optional, default: None] The algorithm for prediction based on a weak learner model
accuracyThreshold (double) – [optional, default: get_nan64()] Accuracy of the LogitBoost training algorithm
maxIterations (size_t) – [optional, default: -1] Maximal number of terms in additive regression
weightsDegenerateCasesThreshold (double) – [optional, default: get_nan64()] Threshold to avoid degenerate cases when calculating weights W
responsesDegenerateCasesThreshold (double) – [optional, default: get_nan64()] Threshold to avoid degenerate cases when calculating responses Z
resultsToEvaluate (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
Do the actual computation on provided input data.
data (data_or_file) – Input data set
model (logitboost_modelptr) – Input model trained by the classification algorithm
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Classification Weak Learner Stump.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the the decision stump training method, double or float
method (str) – [optional, default: “defaultDense”] Decision stump training method
splitCriterion (str) – [optional, default: “”] Split criterion for stump classification
varImportance (str) – [optional, default: “”] Variable importance computation mode
nClasses (size_t) – [optional, default: -1] Number of classes
resultsToEvaluate (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
Do the actual computation on provided input data.
data (data_or_file) – Training data set
labels (data_or_file) – Labels of the training data set
weights (data_or_file) – [optional, default: None] Optional. Weights of the observations in the training data set
Properties:
Numpy array
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the decision stump prediction algorithm, double or float
method (str) – [optional, default: “defaultDense”] Decision stump model-based prediction method
nClasses (size_t) – [optional, default: -1] Number of classes
resultsToEvaluate (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
Do the actual computation on provided input data.
data (data_or_file) – Input data set
model (stump_classification_modelptr) – Input model trained by the classification algorithm
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Naive Bayes.
Examples:
nClasses (size_t) – Number of classes
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for multinomial naive Bayes training, double or float
method (str) – [optional, default: “defaultDense”] Computation method
priorClassEstimates (array) – [optional, default: None] Prior class estimates
alpha (array) – [optional, default: None] Imagined occurrences of the each word
resultsToEvaluate (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
distributed (bool) – [optional, default: False] enable distributed computation (SPMD)
streaming (bool) – [optional, default: False] enable streaming
Do the actual computation on provided input data.
data (data_or_file) – Training data set
labels (data_or_file) – Labels of the training data set
weights (data_or_file) – [optional, default: None] Optional. Weights of the observations in the training data set
nClasses (size_t) – Number of classes
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for prediction based on the multinomial naive Bayes model, double or float
method (str) – [optional, default: “defaultDense”] Multinomial naive Bayes prediction method
priorClassEstimates (array) – [optional, default: None] Prior class estimates
alpha (array) – [optional, default: None] Imagined occurrences of the each word
resultsToEvaluate (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
Do the actual computation on provided input data.
data (data_or_file) – Input data set
model (multinomial_naive_bayes_modelptr) – Input model trained by the classification algorithm
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library SVM.
Note: For the labels parameter, data is formatted as -1s and 1s
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the SVM training algorithm, double or float
method (str) – [optional, default: “boser”] SVM training method
C (double) – [optional, default: get_nan64()] Upper bound in constraints of the quadratic optimization problem
accuracyThreshold (double) – [optional, default: get_nan64()] Training accuracy
tau (double) – [optional, default: get_nan64()] Tau parameter of the working set selection scheme
maxIterations (size_t) – [optional, default: -1] Maximal number of iterations for the algorithm
cacheSize (size_t) – [optional, default: -1] Size of cache in bytes to store values of the kernel matrix. A non-zero value enables use of a cache optimization technique
doShrinking (bool) – [optional, default: False] Flag that enables use of the shrinking optimization technique
shrinkingStep (size_t) – [optional, default: -1] Number of iterations between the steps of shrinking optimization technique
kernel (kernel_function_kerneliface__iface__) – [optional, default: None] Kernel function
nClasses (size_t) – [optional, default: -1] Number of classes
resultsToEvaluate (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
Do the actual computation on provided input data.
data (data_or_file) – Training data set
labels (data_or_file) – Labels of the training data set
weights (data_or_file) – [optional, default: None] Optional. Weights of the observations in the training data set
fptype (str) – [optional, default: “double”]
method (str) – [optional, default: “defaultDense”]
C (double) – [optional, default: get_nan64()] Upper bound in constraints of the quadratic optimization problem
accuracyThreshold (double) – [optional, default: get_nan64()] Training accuracy
tau (double) – [optional, default: get_nan64()] Tau parameter of the working set selection scheme
maxIterations (size_t) – [optional, default: -1] Maximal number of iterations for the algorithm
cacheSize (size_t) – [optional, default: -1] Size of cache in bytes to store values of the kernel matrix. A non-zero value enables use of a cache optimization technique
doShrinking (bool) – [optional, default: False] Flag that enables use of the shrinking optimization technique
shrinkingStep (size_t) – [optional, default: -1] Number of iterations between the steps of shrinking optimization technique
kernel (kernel_function_kerneliface__iface__) – [optional, default: None] Kernel function
nClasses (size_t) – [optional, default: -1] Number of classes
resultsToEvaluate (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
Do the actual computation on provided input data.
data (data_or_file) – Input data set
model (svm_modelptr) – Input model trained by the classification algorithm
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Logistic Regression.
Examples:
nClasses (size_t) – Number of classes
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for logistic regression, double or float
method (str) – [optional, default: “defaultDense”] logistic regression computation method
interceptFlag (bool) – [optional, default: False] Whether the intercept needs to be computed
penaltyL1 (float) – [optional, default: get_nan32()] L1 regularization coefficient. Default is 0 (not applied)
penaltyL2 (float) – [optional, default: get_nan32()] L2 regularization coefficient. Default is 0 (not applied)
optimizationSolver (optimization_solver_iterative_solver_batch__iface__) – [optional, default: None] Default is sgd momentum solver
resultsToEvaluate (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
Do the actual computation on provided input data.
data (data_or_file) – Training data set
labels (data_or_file) – Labels of the training data set
weights (data_or_file) – [optional, default: None] Optional. Weights of the observations in the training data set
nClasses (size_t) – Number of classes
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the logistic regression algorithm, double or float
method (str) – [optional, default: “defaultDense”] logistic regression computation method
resultsToEvaluate (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
Do the actual computation on provided input data.
data (data_or_file) – Input data set
model (logistic_regression_modelptr) – Input model trained by the classification algorithm
See also Intel(R) oneAPI Data Analytics Library Regression.
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Regression Decision Forest.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for decision forest model-based training, double or float
method (str) – [optional, default: “defaultDense”] decision forest training method
nTrees (size_t) – [optional, default: -1] Number of trees in the forest. Default is 10
observationsPerTreeFraction (double) – [optional, default: get_nan64()] Fraction of observations used for a training of one tree, 0 to 1. Default is 1 (sampling with replacement)
featuresPerNode (size_t) – [optional, default: -1] Number of features tried as possible splits per node. If 0 then sqrt(p) for classification, p/3 for regression, where p is the total number of features.
maxTreeDepth (size_t) – [optional, default: -1] Maximal tree depth. Default is 0 (unlimited)
minObservationsInLeafNode (size_t) – [optional, default: -1] Minimal number of observations in a leaf node. Default is 1 for classification, 5 for regression.
engine (engines_batchbase__iface__) – [optional, default: None] Engine for the random numbers generator used by the algorithms
impurityThreshold (double) – [optional, default: get_nan64()] Threshold value used as stopping criteria: if the impurity value in the node is smaller than the threshold then the node is not split anymore.
varImportance (str) – [optional, default: “”] Variable importance computation mode
resultsToCompute (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
memorySavingMode (bool) – [optional, default: False] If true then use memory saving (but slower) mode
bootstrap (bool) – [optional, default: False] If true then training set for a tree is a bootstrap of the whole training set
minObservationsInSplitNode (size_t) – [optional, default: -1] Minimal number of observations in a split node. Default 2
minWeightFractionInLeafNode (double) – [optional, default: get_nan64()] The minimum weighted fraction of the sum total of weights (of all the input observations) required to be at a leaf node, 0.0 to 0.5. Default is 0.0
minImpurityDecreaseInSplitNode (double) – [optional, default: get_nan64()] A node will be split if this split induces a decrease of the impurity greater than or equal to the value, non-negative. Default is 0.0
maxLeafNodes (size_t) – [optional, default: -1] Maximum number of leaf node. Default is 0 (unlimited)
maxBins (size_t) – [optional, default: -1] Used with ‘hist’ split finding method only. Maximal number of discrete bins to bucket continuous features. Default is 256. Increasing the number results in higher computation costs
minBinSize (size_t) – [optional, default: -1] Used with ‘hist’ split finding method only. Minimal number of observations in a bin. Default is 5
splitter (str) – [optional, default: “”] Sets node splitting method. Default is best
binningStrategy (str) – [optional, default: “”] Used with ‘hist’ split finding method only. Selects the strategy to group data points into bins. Allowed values are ‘quantiles’ (default), ‘averages’
Do the actual computation on provided input data.
data (data_or_file) – Input data table
dependentVariable (data_or_file) – Values of the dependent variable for the input data
weights (data_or_file) – [optional, default: None] Optional. Weights of the observations in the training data set
Properties:
Numpy array
Numpy array
Numpy array
Numpy array
Numpy array
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for decision forest model-based prediction
method (str) – [optional, default: “defaultDense”] Computation method in the batch processing mode
Do the actual computation on provided input data.
data (data_or_file) – Input data table
model (decision_forest_regression_modelptr) – Trained decision tree model
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Regression Decision Tree.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for Decision tree model-based training, double or float
method (str) – [optional, default: “defaultDense”] Decision tree training method
pruning (str) – [optional, default: “”] Pruning method for Decision tree
maxTreeDepth (size_t) – [optional, default: -1] Maximum tree depth. 0 means unlimited depth.
minObservationsInLeafNodes (size_t) – [optional, default: -1] Minimum number of observations in the leaf node. Can be any positive number.
Do the actual computation on provided input data.
data (data_or_file) – Input data table
dependentVariables (data_or_file) – Values of the dependent variable for the input data
dataForPruning (data_or_file) – Pruning data set
dependentVariablesForPruning (data_or_file) – Labels of the pruning data set
weights (data_or_file) – [optional, default: None] Optional. Weights of the observations in the training data set
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for Decision tree model-based prediction
method (str) – [optional, default: “defaultDense”] Computation method in the batch processing mode
pruning (str) – [optional, default: “”] Pruning method for Decision tree
maxTreeDepth (size_t) – [optional, default: -1] Maximum tree depth. 0 means unlimited depth.
minObservationsInLeafNodes (size_t) – [optional, default: -1] Minimum number of observations in the leaf node. Can be any positive number.
Do the actual computation on provided input data.
data (data_or_file) – Input data table
model (decision_tree_regression_modelptr) – Trained decision tree model
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Regression Gradient Boosted Tree.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for model-based training, double or float
method (str) – [optional, default: “defaultDense”] gradient boosted trees training method
loss (str) – [optional, default: “”] Loss function type
varImportance (str) – [optional, default: “”] 64 bit integer flag VariableImportanceModes that indicates the variable importance computation modes
splitMethod (str) – [optional, default: “”] Split finding method. Default is exact
maxIterations (size_t) – [optional, default: -1] Maximal number of iterations of the gradient boosted trees training algorithm. Default is 50
maxTreeDepth (size_t) – [optional, default: -1] Maximal tree depth, 0 for unlimited. Default is 6
shrinkage (double) – [optional, default: get_nan64()] Learning rate of the boosting procedure. Scales the contribution of each tree by a factor (0, 1]. Default is 0.3
minSplitLoss (double) – [optional, default: get_nan64()] Loss regularization parameter. Min loss reduction required to make a further partition on a leaf node of the tree. Range: [0, inf). Default is 0
lambda (double) – [optional, default: get_nan64()] L2 regularization parameter on weights. Range: [0, inf). Default is 1
observationsPerTreeFraction (double) – [optional, default: get_nan64()] Fraction of observations used for a training of one tree, sampling without replacement. Range: (0, 1]. Default is 1 (no sampling, entire dataset is used)
featuresPerNode (size_t) – [optional, default: -1] Number of features tried as possible splits per node. Range : [0, p] where p is the total number of features. Default is 0 (use all features)
minObservationsInLeafNode (size_t) – [optional, default: -1] Minimal number of observations in a leaf node. Default is 5.
memorySavingMode (bool) – [optional, default: False] If true then use memory saving (but slower) mode. Default is false
engine (engines_batchbase__iface__) – [optional, default: None] Engine for the random numbers generator used by the algorithms
maxBins (size_t) – [optional, default: -1] Used with ‘inexact’ split finding method only. Maximal number of discrete bins to bucket continuous features. Default is 256. Increasing the number results in higher computation costs
minBinSize (size_t) – [optional, default: -1] Used with ‘inexact’ split finding method only. Minimal number of observations in a bin. Default is 5
internalOptions (int) – [optional, default: -1] Internal options
Do the actual computation on provided input data.
data (data_or_file) – Input data table
dependentVariable (data_or_file) – Values of the dependent variable for the input data
Properties:
Numpy array
Numpy array
Numpy array
Numpy array
Numpy array
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for model-based prediction
method (str) – [optional, default: “defaultDense”] Computation method in the batch processing mode
nIterations (size_t) – [optional, default: -1] Number of iterations of the trained model to be uses for prediction
resultsToCompute (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
Do the actual computation on provided input data.
data (data_or_file) – Input data table
model (gbt_regression_modelptr) – Trained gradient boosted trees model
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Linear Regression.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for linear regression model-based training, double or float
method (str) – [optional, default: “normEqDense”] Linear regression training method
interceptFlag (bool) – [optional, default: False] Flag that indicates whether the intercept needs to be computed
distributed (bool) – [optional, default: False] enable distributed computation (SPMD)
streaming (bool) – [optional, default: False] enable streaming
Do the actual computation on provided input data.
data (data_or_file) – Input data table
dependentVariables (data_or_file) – Values of the dependent variable for the input data
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for linear regression model-based prediction
method (str) – [optional, default: “defaultDense”] Computation method in the batch processing mode
Do the actual computation on provided input data.
data (data_or_file) – Input data table
model (linear_regression_modelptr) – Trained linear regression model
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Least Absolute Shrinkage and Selection Operator.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for lasso regression model-based training, double or float
method (str) – [optional, default: “defaultDense”] LASSO regression training method
lassoParameters (array) – [optional, default: None] Numeric table that contains values of lasso parameters
optimizationSolver (optimization_solver_iterative_solver_batch__iface__) – [optional, default: None] Default is coordinate descent solver
dataUseInComputation (str) – [optional, default: “”] The flag allows to corrupt input data
optResultToCompute (str) – [optional, default: “”] 64 bit integer flag that indicates the optional results to compute
interceptFlag (bool) – [optional, default: False] Flag that indicates whether the intercept needs to be computed
Do the actual computation on provided input data.
data (data_or_file) – Input data table
dependentVariables (data_or_file) – Values of the dependent variable for the input data
weights (data_or_file) – [optional, default: None] NumericTable of size 1 x n with weights of samples. Applied for all method
gramMatrix (data_or_file) – [optional, default: None] NumericTable of size p x p with last iteration number. Applied for all method
Properties:
Numpy array
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for lasso regression model-based prediction
method (str) – [optional, default: “defaultDense”]
Do the actual computation on provided input data.
data (data_or_file) – Input data table
model (lasso_regression_modelptr) – Trained lasso regression model
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Ridge Regression.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for ridge regression model-based training, double or float
method (str) – [optional, default: “normEqDense”] Ridge regression training method
ridgeParameters (array) – [optional, default: None] Numeric table that contains values of ridge parameters
interceptFlag (bool) – [optional, default: False] Flag that indicates whether the intercept needs to be computed
distributed (bool) – [optional, default: False] enable distributed computation (SPMD)
streaming (bool) – [optional, default: False] enable streaming
Do the actual computation on provided input data.
data (data_or_file) – Input data table
dependentVariables (data_or_file) – Values of the dependent variable for the input data
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for ridge regression model-based prediction
method (str) – [optional, default: “defaultDense”] Computation method in the batch processing mode
Do the actual computation on provided input data.
data (data_or_file) – Input data table
model (ridge_regression_modelptr) – Trained ridge regression model
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Regression Stump.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the the decision stump training method, double or float
method (str) – [optional, default: “defaultDense”] Decision stump training method
varImportance (str) – [optional, default: “”] Variable importance mode. Variable importance computation is not supported for current version of the library
Do the actual computation on provided input data.
data (data_or_file) – Input data table
dependentVariables (data_or_file) – Values of the dependent variable for the input data
weights (data_or_file) – [optional, default: None] Optional. Weights of the observations in the training data set. Some values are skipped for backward compatibility.
Properties:
Numpy array
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the decision stump prediction algorithm, double or float
method (str) – [optional, default: “defaultDense”] Decision stump model-based prediction method
varImportance (str) – [optional, default: “”] Variable importance mode. Variable importance computation is not supported for current version of the library
Do the actual computation on provided input data.
data (data_or_file) – Input data table
model (stump_regression_modelptr) – Trained regression model
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library PCA.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for PCA, double or float
method (str) – [optional, default: “correlationDense”] PCA computation method
resultsToCompute (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
nComponents (size_t) – [optional, default: -1] number of components for reduced implementation
isDeterministic (bool) – [optional, default: False] sign flip if required
doScale (bool) – [optional, default: False] scaling if required
isCorrelation (bool) – [optional, default: False] correlation is provided
normalization (normalization_zscore_batchimpl__iface__) – [optional, default: None] Pointer to batch covariance
distributed (bool) – [optional, default: False] enable distributed computation (SPMD)
Do the actual computation on provided input data.
data (data_or_file) – Input data table
correlation (data_or_file) – [optional, default: None] Input correlation table
Properties:
Numpy array
Numpy array
Numpy array
Numpy array
Numpy array
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library PCA Transform.
Examples:
fptype (str) – [optional, default: “double”]
method (str) – [optional, default: “defaultDense”]
nComponents (size_t) – [optional, default: -1]
Do the actual computation on provided input data.
data (data_or_file) – Input data table
eigenvectors (data_or_file) – Transformation matrix of eigenvectors
dataForTransform (dict_numerictableptr) – Data for transform
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library K-Means Clustering.
Examples:
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library K-Means Initialization.
nClusters (size_t) – Number of clusters
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations of initial clusters for K-Means algorithm, double or float
method (str) – [optional, default: “defaultDense”] Method of computing initial clusters for the algorithm
nTrials (size_t) – [optional, default: -1] Kmeans++ only. The number of trials to generate all clusters but the first initial cluster.
oversamplingFactor (double) – [optional, default: get_nan64()] Kmeans|| only. A fraction of nClusters being chosen in each of nRounds of kmeans||.L = nClusters* oversamplingFactor points are sampled in a round.
nRounds (size_t) – [optional, default: -1] Kmeans|| only. Number of rounds for k-means||. (oversamplingFactor*nRounds) > 1 is a requirement.
engine (engines_batchbase__iface__) – [optional, default: None] Engine to be used for generating random numbers for the initialization
distributed (bool) – [optional, default: False] enable distributed computation (SPMD)
Do the actual computation on provided input data.
data (data_or_file) – Input data table
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library K-Means Computation.
nClusters (size_t) – Number of clusters
maxIterations (size_t) – Number of iterations
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations of K-Means, double or float
method (str) – [optional, default: “lloydDense”] Computation method of the algorithm
accuracyThreshold (double) – [optional, default: get_nan64()] Threshold for the termination of the algorithm
gamma (double) – [optional, default: get_nan64()] Weight used in distance computation for categorical features
distanceType (str) – [optional, default: “”] Distance used in the algorithm
resultsToEvaluate (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
assignFlag (bool) – [optional, default: False] Do data points assignment :param bool distributed: [optional, default: False] enable distributed computation (SPMD)
Do the actual computation on provided input data.
data (data_or_file) – Input data table
inputCentroids (data_or_file) – Initial centroids for the algorithm
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Density-Based Spatial Clustering of Applications with Noise.
Examples:
epsilon (double) – Radius of neighborhood
minObservations (size_t) – Minimal total weight of observations in neighborhood of core observation
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations of DBSCAN, double or float
method (str) – [optional, default: “defaultDense”] Computation method of the algorithm
memorySavingMode (bool) – [optional, default: False] If true then use memory saving (but slower) mode
resultsToCompute (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
blockIndex (size_t) – [optional, default: -1] Unique identifier of block initially passed for computation on the local node
nBlocks (size_t) – [optional, default: -1] Number of blocks initially passed for computation on all nodes
leftBlocks (size_t) – [optional, default: -1] Number of blocks that will process observations with value of selected split feature lesser than selected split value
rightBlocks (size_t) – [optional, default: -1] Number of blocks that will process observations with value of selected split feature greater than selected split value
distributed (bool) – [optional, default: False] enable distributed computation (SPMD)
Do the actual computation on provided input data.
data (data_or_file) – Input data table
weights (data_or_file) – [optional, default: None] Input weights of observations
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Multivariate Outlier Detection.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the multivariate outlier detection, double or float
method (str) – [optional, default: “defaultDense”] Multivariate outlier detection computation method
Do the actual computation on provided input data.
data (data_or_file) – Input data table
location (data_or_file) – [optional, default: None] Vector of mean estimates of size 1 x p
scatter (data_or_file) – [optional, default: None] Measure of spread, the variance-covariance matrix of size p x p
threshold (data_or_file) – [optional, default: None] Limit that defines the outlier region, the array of size 1 x 1 containing a non-negative number
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Univariate Outlier Detection.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the univariate outlier detection algorithm, double or float
method (str) – [optional, default: “defaultDense”] univariate outlier detection computation method
Do the actual computation on provided input data.
data (data_or_file) – Input data table
location (data_or_file) – [optional, default: None] Vector of mean estimates of size 1 x p
scatter (data_or_file) – [optional, default: None] Measure of spread, the array of standard deviations of size 1 x p
threshold (data_or_file) – [optional, default: None] Limit that defines the outlier region, the array of non-negative numbers of size 1 x p
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Multivariate Bacon Outlier Detection.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the BACON outlier detection, double or float
method (str) – [optional, default: “defaultDense”] BACON outlier detection computation method
initMethod (str) – [optional, default: “”] Initialization method
alpha (double) – [optional, default: get_nan64()] One-tailed probability that defines the (1 - lpha) quantile of the chi^2 distribution with p degrees of freedom. Recommended value: lpha / n, where n is the number of observations.
toleranceToConverge (double) – [optional, default: get_nan64()] Stopping criterion: the algorithm is terminated if the size of the basic subset is changed by less than the threshold
Do the actual computation on provided input data.
data (data_or_file) – Input data table
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library MSE.
Examples:
numberOfTerms (size_t) – The number of terms in the function
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the Mean squared error objective function, double or float
method (str) – [optional, default: “defaultDense”] The Mean squared error objective function computation method
interceptFlag (bool) – [optional, default: False] Whether the intercept needs to be computed. Default is true
penaltyL1 (array) – [optional, default: None] L1 regularization coefficients. Default is 0 (not applied)
penaltyL2 (array) – [optional, default: None] L2 regularization coefficients. Default is 0 (not applied)
batchIndices (array) – [optional, default: None] Numeric table of size 1 x m where m is batch size that represent a batch of indices used to compute the function results, e.g., value of the sum of the functions. If no indices are provided, all terms will be used in the computations.
featureId (size_t) – [optional, default: -1] The feature index to compute part of gradient/hessian/proximal projection
resultsToCompute (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
Do the actual computation on provided input data.
data (data_or_file) – Numeric table of size n x p with data
dependentVariables (data_or_file) – Numeric table of size n x 1 with dependent variables
argument (data_or_file) – Numeric table of size 1 x p with input argument of the objective function
weights (data_or_file) – NumericTable of size 1 x n with samples weights. Applied for all method
gramMatrix (data_or_file) – NumericTable of size p x p with last iteration number. Applied for all method
optimization_solver_objective_function_result
Setup (partial) input data for using algorithm object in other algorithms.
data (data_or_file) – Numeric table of size n x p with data
dependentVariables (data_or_file) – Numeric table of size n x 1 with dependent variables
argument (data_or_file) – Numeric table of size 1 x p with input argument of the objective function
weights (data_or_file) – NumericTable of size 1 x n with samples weights. Applied for all method
gramMatrix (data_or_file) – NumericTable of size p x p with last iteration number. Applied for all method
None
alias of optimization_solver_objective_function_result
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Logistic Loss.
Examples:
numberOfTerms (size_t) – The number of terms in the function
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the Logistic loss objective function, double or float
method (str) – [optional, default: “defaultDense”] The Logistic loss objective function computation method
interceptFlag (bool) – [optional, default: False] Whether the intercept needs to be computed. Default is true
penaltyL1 (float) – [optional, default: get_nan32()] L1 regularization coefficient. Default is 0 (not applied)
penaltyL2 (float) – [optional, default: get_nan32()] L2 regularization coefficient. Default is 0 (not applied)
batchIndices (array) – [optional, default: None] Numeric table of size 1 x m where m is batch size that represent a batch of indices used to compute the function results, e.g., value of the sum of the functions. If no indices are provided, all terms will be used in the computations.
featureId (size_t) – [optional, default: -1] The feature index to compute part of gradient/hessian/proximal projection
resultsToCompute (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
Do the actual computation on provided input data.
data (data_or_file) – Numeric table of size n x p with data
dependentVariables (data_or_file) – Numeric table of size n x 1 with dependent variables
argument (data_or_file) – Numeric table of size 1 x p with input argument of the objective function
optimization_solver_objective_function_result
Setup (partial) input data for using algorithm object in other algorithms.
data (data_or_file) – Numeric table of size n x p with data
dependentVariables (data_or_file) – Numeric table of size n x 1 with dependent variables
argument (data_or_file) – Numeric table of size 1 x p with input argument of the objective function
None
alias of optimization_solver_objective_function_result
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Cross Entropy Loss.
Examples:
nClasses (size_t) – Number of classes (different values of dependent variable)
numberOfTerms (size_t) – The number of terms in the function
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the Cross-entropy loss objective function, double or float
method (str) – [optional, default: “defaultDense”] The Cross-entropy loss objective function computation method
interceptFlag (bool) – [optional, default: False] Whether the intercept needs to be computed. Default is true
penaltyL1 (float) – [optional, default: get_nan32()] L1 regularization coefficient. Default is 0 (not applied)
penaltyL2 (float) – [optional, default: get_nan32()] L2 regularization coefficient. Default is 0 (not applied)
batchIndices (array) – [optional, default: None] Numeric table of size 1 x m where m is batch size that represent a batch of indices used to compute the function results, e.g., value of the sum of the functions. If no indices are provided, all terms will be used in the computations.
featureId (size_t) – [optional, default: -1] The feature index to compute part of gradient/hessian/proximal projection
resultsToCompute (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
Do the actual computation on provided input data.
data (data_or_file) – Numeric table of size n x p with data
dependentVariables (data_or_file) – Numeric table of size n x 1 with dependent variables
argument (data_or_file) – Numeric table of size 1 x p with input argument of the objective function
optimization_solver_objective_function_result
Setup (partial) input data for using algorithm object in other algorithms.
data (data_or_file) – Numeric table of size n x p with data
dependentVariables (data_or_file) – Numeric table of size n x 1 with dependent variables
argument (data_or_file) – Numeric table of size 1 x p with input argument of the objective function
None
alias of optimization_solver_objective_function_result
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library SGD.
Examples:
function (optimization_solver_sum_of_functions_batch__iface__) – Objective function represented as sum of functions
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the Stochastic gradient descent algorithm,
method (str) – [optional, default: “defaultDense”] Stochastic gradient descent computation method
batchIndices (array) – [optional, default: None] Numeric table that represents 32 bit integer indices of terms in the objective function. If no indices are provided, the implementation will generate random indices.
learningRateSequence (array) – [optional, default: None] Numeric table that contains values of the learning rate sequence
engine (engines_batchbase__iface__) – [optional, default: None] Engine for random generation of 32 bit integer indices of terms in the objective function.
nIterations (size_t) – [optional, default: -1] Maximal number of iterations of the algorithm
accuracyThreshold (double) – [optional, default: get_nan64()] Accuracy of the algorithm. The algorithm terminates when this accuracy is achieved
optionalResultRequired (bool) – [optional, default: False] Indicates whether optional result is required
batchSize (size_t) – [optional, default: -1] Number of batch indices to compute the stochastic gradient. If batchSize is equal to the number of terms in objective function then no random sampling is performed, and all terms are used to calculate the gradient. This parameter is ignored if batchIndices is provided.
conservativeSequence (array) – [optional, default: None] Numeric table of values of the conservative coefficient sequence
innerNIterations (size_t) – [optional, default: -1]
momentum (double) – [optional, default: get_nan64()] Momentum value
Do the actual computation on provided input data.
inputArgument (data_or_file) – Initial value to start optimization
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library LBFGS.
Examples:
function (optimization_solver_sum_of_functions_batch__iface__) – Objective function represented as sum of functions
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the LBFGS algorithm,
method (str) – [optional, default: “defaultDense”] LBFGS computation method
m (size_t) – [optional, default: -1] Memory parameter of LBFGS. The maximum number of correction pairs that define the approximation of inverse Hessian matrix.
L (size_t) – [optional, default: -1] The number of iterations between the curvature estimates calculations
engine (engines_batchbase__iface__) – [optional, default: None] Engine for random choosing terms from objective function.
batchIndices (array) – [optional, default: None]
correctionPairBatchSize (size_t) – [optional, default: -1] Number of observations to compute the sub-sampled Hessian for correction pairs computation
correctionPairBatchIndices (array) – [optional, default: None]
stepLengthSequence (array) – [optional, default: None]
nIterations (size_t) – [optional, default: -1] Maximal number of iterations of the algorithm
accuracyThreshold (double) – [optional, default: get_nan64()] Accuracy of the algorithm. The algorithm terminates when this accuracy is achieved
optionalResultRequired (bool) – [optional, default: False] Indicates whether optional result is required
batchSize (size_t) – [optional, default: -1] Number of batch indices to compute the stochastic gradient. If batchSize is equal to the number of terms in objective function then no random sampling is performed, and all terms are used to calculate the gradient. This parameter is ignored if batchIndices is provided.
Do the actual computation on provided input data.
inputArgument (data_or_file) – Initial value to start optimization
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library AdaGrad.
Examples:
function (optimization_solver_sum_of_functions_batch__iface__) – Objective function represented as sum of functions
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the Adaptive gradient descent algorithm,
method (str) – [optional, default: “defaultDense”] Adaptive gradient descent computation method
batchIndices (array) – [optional, default: None] Numeric table that represents 32 bit integer indices of terms in the objective function. If no indices are provided, the implementation will generate random indices.
learningRate (array) – [optional, default: None] Numeric table that contains value of the learning rate
degenerateCasesThreshold (double) – [optional, default: get_nan64()] Value needed to avoid degenerate cases in square root computing.
engine (engines_batchbase__iface__) – [optional, default: None] Engine for random generation of 32 bit integer indices of terms in the objective function.
nIterations (size_t) – [optional, default: -1] Maximal number of iterations of the algorithm
accuracyThreshold (double) – [optional, default: get_nan64()] Accuracy of the algorithm. The algorithm terminates when this accuracy is achieved
optionalResultRequired (bool) – [optional, default: False] Indicates whether optional result is required
batchSize (size_t) – [optional, default: -1] Number of batch indices to compute the stochastic gradient. If batchSize is equal to the number of terms in objective function then no random sampling is performed, and all terms are used to calculate the gradient. This parameter is ignored if batchIndices is provided.
Do the actual computation on provided input data.
inputArgument (data_or_file) – Initial value to start optimization
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Stochastic Average Gradient Descent SAGA.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the Stochastic average gradient descent algorithm,
method (str) – [optional, default: “defaultDense”] Stochastic average gradient descent computation method
batchIndices (array) – [optional, default: None] Numeric table that represents 32 bit integer indices of terms in the objective function. If no indices are provided, the implementation will generate random indices.
learningRateSequence (array) – [optional, default: None] Numeric table that contains value of the learning rate
engine (engines_batchbase__iface__) – [optional, default: None] Engine for random generation of 32 bit integer indices of terms in the objective function.
function (optimization_solver_sum_of_functions_batch__iface__) – [optional, default: None] Objective function represented as sum of functions
nIterations (size_t) – [optional, default: -1] Maximal number of iterations of the algorithm
accuracyThreshold (double) – [optional, default: get_nan64()] Accuracy of the algorithm. The algorithm terminates when this accuracy is achieved
optionalResultRequired (bool) – [optional, default: False] Indicates whether optional result is required
batchSize (size_t) – [optional, default: -1] Number of batch indices to compute the stochastic gradient. If batchSize is equal to the number of terms in objective function then no random sampling is performed, and all terms are used to calculate the gradient. This parameter is ignored if batchIndices is provided.
Do the actual computation on provided input data.
inputArgument (data_or_file) – Initial value to start optimization
gradientsTable (data_or_file) – Numeric table of size p x 1 with the values of G, where each value is an accumulated sum of squares of corresponding gradient’s coordinate values.
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Cosine Distance.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the cosine distance, double or float
method (str) – [optional, default: “defaultDense”] Cosine distance computation method
Do the actual computation on provided input data.
data (data_or_file) – Input data table
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Correlation Distance.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the correlation distance algorithm, double or float
method (str) – [optional, default: “defaultDense”] Correlation distance computation method
Do the actual computation on provided input data.
data (data_or_file) – Input data table
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Expectation-Maximization.
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Expectation-Maximization Initialization.
Examples:
nComponents (size_t) – Number of components in the Gaussian mixture model
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations of initial values for the EM for GMM algorithm, double or float
method (str) – [optional, default: “defaultDense”]
nTrials (size_t) – [optional, default: -1] Number of trials of short EM runs
nIterations (size_t) – [optional, default: -1] Number of iterations in every short EM run
accuracyThreshold (double) – [optional, default: get_nan64()] Threshold for the termination of the algorithm
covarianceStorage (str) – [optional, default: “”] Type of covariance in the Gaussian mixture model.
engine (engines_batchbase__iface__) – [optional, default: None] Engine to be used for randomly generating data points to start the initialization of short EM
Do the actual computation on provided input data.
data (data_or_file) – Input data table
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Expectation-Maximization for the Gaussian Mixture Model.
Examples:
nComponents (size_t) – Number of components in the Gaussian mixture model
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the EM for GMM algorithm, double or float
method (str) – [optional, default: “defaultDense”] EM for GMM computation method
maxIterations (size_t) – [optional, default: -1] Maximal number of iterations of the algorithm.
accuracyThreshold (double) – [optional, default: get_nan64()] Threshold for the termination of the algorithm.
regularizationFactor (double) – [optional, default: get_nan64()] Factor for covariance regularization in case of ill-conditional data
covarianceStorage (str) – [optional, default: “”] Type of covariance in the Gaussian mixture model.
Do the actual computation on provided input data.
data (data_or_file) – Input data table
inputWeights (data_or_file) – Input weights
inputMeans (data_or_file) – Input means
inputCovariances (list_numerictableptr) – Collection of input covariances
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library QR Decomposition.
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library QR Decomposition without pivoting.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the QR decomposition algorithm, double or float
method (str) – [optional, default: “defaultDense”] Computation method of the algorithm
distributed (bool) – [optional, default: False] enable distributed computation (SPMD)
streaming (bool) – [optional, default: False] enable streaming
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Pivoted QR Decomposition.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations of the pivoted QR algorithm, double or float
method (str) – [optional, default: “defaultDense”] Computation method
permutedColumns (array) – [optional, default: None] On entry, if i-th element of permutedColumns != 0, * the i-th column of input matrix is moved to the beginning of Data * P before * the computation, and fixed in place during the computation. * If i-th element of permutedColumns = 0, the i-th column of input data * is a free column (that is, it may be interchanged during the * computation with any other free column).
Do the actual computation on provided input data.
data (data_or_file) – Input data table
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Normalization.
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Z-Score.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the z-score normalization, double or float
method (str) – [optional, default: “defaultDense”] Z-score normalization computation method
resultsToCompute (str) – [optional, default: “”] 64 bit integer flag that indicates the results to compute
doScale (bool) – [optional, default: False] boolean flag that indicates the mode of computation. If true both centering and scaling, otherwise only centering.
Do the actual computation on provided input data.
data (data_or_file) – Input data table
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Min-Max.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the min-max normalization, double or float
method (str) – [optional, default: “defaultDense”] Min-max normalization computation method
lowerBound (double) – [optional, default: get_nan64()] The lower bound of the features value will be obtained during normalization.
upperBound (double) – [optional, default: get_nan64()] The upper bound of the features value will be obtained during normalization.
Do the actual computation on provided input data.
data (data_or_file) – Input data table
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Engines.
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library mt19937.
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations of mt19937 engine, double or float
method (str) – [optional, default: “defaultDense”] Computation method of the engine
seed (size_t) – [optional, default: -1] seed
Do the actual computation on provided input data.
tableToFill (data_or_file) – Input table to fill with random numbers
alias of engines_result
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library mt2203.
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations of mt2203 engine, double or float
method (str) – [optional, default: “defaultDense”] Computation method of the engine
seed (size_t) – [optional, default: -1] seed
Do the actual computation on provided input data.
tableToFill (data_or_file) – Input table to fill with random numbers
alias of engines_result
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library mcg59.
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations of mcg59 engine, double or float
method (str) – [optional, default: “defaultDense”] Computation method of the engine
seed (size_t) – [optional, default: -1] seed
Do the actual computation on provided input data.
tableToFill (data_or_file) – Input table to fill with random numbers
alias of engines_result
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Distributions.
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Bernoulli Distribution.
Examples:
p (double) – Success probability of a trial, value from [0.0; 1.0]
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations of bernoulli distribution, double or float
method (str) – [optional, default: “defaultDense”] Computation method of the distribution
engine (engines_batchbase__iface__) – [optional, default: None] Pointer to the engine
Do the actual computation on provided input data.
tableToFill (data_or_file) – Input table to fill with random numbers
distributions_result
alias of distributions_result
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Normal Distribution.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations of normal distribution, double or float
method (str) – [optional, default: “defaultDense”] Computation method of the distribution
a (double) – [optional, default: get_nan64()] Mean
sigma (double) – [optional, default: get_nan64()] Standard deviation
engine (engines_batchbase__iface__) – [optional, default: None] Pointer to the engine
Do the actual computation on provided input data.
tableToFill (data_or_file) – Input table to fill with random numbers
distributions_result
alias of distributions_result
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Uniform Distribution.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations of uniform distribution, double or float
method (str) – [optional, default: “defaultDense”] Computation method of the distribution
a (double) – [optional, default: get_nan64()] Left bound a
b (double) – [optional, default: get_nan64()] Right bound b
engine (engines_batchbase__iface__) – [optional, default: None] Pointer to the engine
Do the actual computation on provided input data.
tableToFill (data_or_file) – Input table to fill with random numbers
distributions_result
alias of distributions_result
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Association Rules.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the association rules algorithm, double or float
method (str) – [optional, default: “apriori”] Association rules algorithm computation method
minSupport (double) – [optional, default: get_nan64()] Minimum support 0.0 <= minSupport < 1.0
minConfidence (double) – [optional, default: get_nan64()] Minimum confidence 0.0 <= minConfidence < 1.0
nUniqueItems (size_t) – [optional, default: -1] Number of unique items
nTransactions (size_t) – [optional, default: -1] Number of transactions
discoverRules (bool) – [optional, default: False] Flag. If true, association rules are built from large itemsets
itemsetsOrder (str) – [optional, default: “”] Format of the resulting itemsets
rulesOrder (str) – [optional, default: “”] Format of the resulting association rules
minItemsetSize (size_t) – [optional, default: -1] Minimum number of items in a large itemset
maxItemsetSize (size_t) – [optional, default: -1] Maximum number of items in a large itemset. Set to zero to not limit the upper boundary for the size of large itemsets
Do the actual computation on provided input data.
data (data_or_file) – Input data table
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Cholesky Decomposition.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the Cholesky decomposition algorithm,
method (str) – [optional, default: “defaultDense”] Cholesky decomposition computation method
Do the actual computation on provided input data.
data (data_or_file) – Input data table
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Correlation and Variance-Covariance Matrices.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations of the correlation or variance-covariance matrix, double or float
method (str) – [optional, default: “defaultDense”] Computation method
outputMatrixType (str) – [optional, default: “”] Type of the computed matrix
distributed (bool) – [optional, default: False] enable distributed computation (SPMD)
streaming (bool) – [optional, default: False] enable streaming
Do the actual computation on provided input data.
data (data_or_file) – Input data table
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Implicit Alternating Least Squares.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for implicit ALS model training, double or float
method (str) – [optional, default: “defaultDense”] Implicit ALS training method
nFactors (size_t) – [optional, default: -1] Number of factors
maxIterations (size_t) – [optional, default: -1] Maximum number of iterations of the implicit ALS training algorithm
alpha (double) – [optional, default: get_nan64()] Confidence parameter of the implicit ALS training algorithm
lambda (double) – [optional, default: get_nan64()] Regularization parameter
preferenceThreshold (double) – [optional, default: get_nan64()] Threshold used to define preference values
Do the actual computation on provided input data.
data (data_or_file) – Input data table that contains ratings
inputModel (implicit_als_modelptr) – Initial model that contains initialized factors
Properties:
Numpy array
Numpy array
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for implicit ALS model-based prediction, double or float
method (str) – [optional, default: “defaultDense”] Implicit ALS prediction method
nFactors (size_t) – [optional, default: -1] Number of factors
maxIterations (size_t) – [optional, default: -1] Maximum number of iterations of the implicit ALS training algorithm
alpha (double) – [optional, default: get_nan64()] Confidence parameter of the implicit ALS training algorithm
lambda (double) – [optional, default: get_nan64()] Regularization parameter
preferenceThreshold (double) – [optional, default: get_nan64()] Threshold used to define preference values
Do the actual computation on provided input data.
model (implicit_als_modelptr) – Input model trained by the ALS algorithm
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Moments of Low Order.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations of the low order moments, double or float
method (str) – [optional, default: “defaultDense”] Computation method of the algorithm
estimatesToCompute (str) – [optional, default: “”] Estimates to be computed by the algorithm
distributed (bool) – [optional, default: False] enable distributed computation (SPMD)
streaming (bool) – [optional, default: False] enable streaming
Do the actual computation on provided input data.
data (data_or_file) – Input data table
Properties:
Numpy array
Numpy array
Numpy array
Numpy array
Numpy array
Numpy array
Numpy array
Numpy array
Numpy array
Numpy array
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Quantiles.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the quantile algorithms, double or float
method (str) – [optional, default: “defaultDense”] Quantiles computation method
quantileOrders (array) – [optional, default: None] Numeric table with quantile orders. Default value is 0.5 (median)
Do the actual computation on provided input data.
data (data_or_file) – Input data table
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library SVD.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the SVD algorithm, double or float
method (str) – [optional, default: “defaultDense”] SVD computation method
leftSingularMatrix (str) – [optional, default: “”] Format of the matrix of left singular vectors >
rightSingularMatrix (str) – [optional, default: “”] Format of the matrix of right singular vectors >
distributed (bool) – [optional, default: False] enable distributed computation (SPMD)
streaming (bool) – [optional, default: False] enable streaming
Do the actual computation on provided input data.
data (data_or_file) – Input data table
Parameters and semantics are described in Intel(R) oneAPI Data Analytics Library Sorting.
Examples:
fptype (str) – [optional, default: “double”] Data type to use in intermediate computations for the sorting, double or float
method (str) – [optional, default: “defaultDense”] Sorting computation method
Do the actual computation on provided input data.
data (data_or_file) – Input data table
Examples: