public class GlmMojoModel extends MojoModel
_balanceClasses, _category, _defaultThreshold, _modelClassDistrib, _nclasses, _nfeatures, _priorClassDistrib, _supervised, _uuid
_domains, _names, _offsetColumn
Modifier and Type | Method and Description |
---|---|
double[] |
applyCoefficients(double[] data,
double[] output,
int destPos)
Applies GLM coefficients to a given row of data to calculate
feature contributions.
|
double |
getIntercept() |
double[] |
score0(double[] data,
double[] preds)
Subclasses implement the scoring logic.
|
getModelCategory, getUUID, isSupervised, load, load, nclasses, nfeatures
bitSetContains, bitSetIsInRange, calibrateClassProbabilities, correctProbabilities, createAuxKey, GBM_rescale, getColIdx, getDomainValues, getDomainValues, getDomainValues, getHeader, getModelCategories, getNames, getNumClasses, getNumCols, getNumResponseClasses, getPrediction, getPredsSize, getPredsSize, getResponseIdx, getResponseName, GLM_identityInv, GLM_inverseInv, GLM_logInv, GLM_logitInv, GLM_tweedieInv, img2pixels, isAutoEncoder, isClassifier, KMeans_closest, KMeans_distance, KMeans_distance, Kmeans_preprocessData, Kmeans_preprocessData, KMeans_simplex, log_rescale, mapEnum, score0, setInput
public double[] applyCoefficients(double[] data, double[] output, int destPos)
data
- input row of data (same input as to glmScore0)output
- target output arraydestPos
- index to the output array where the result should startpublic double getIntercept()
public final double[] score0(double[] data, double[] preds)
GenModel