public class GlmMojoModel extends MojoModel
_balanceClasses, _category, _defaultThreshold, _modelClassDistrib, _nclasses, _nfeatures, _priorClassDistrib, _supervised, _uuid_domains, _names, _offsetColumn, _responseColumn| 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, nfeaturesbitSetContains, bitSetIsInRange, calibrateClassProbabilities, convertDouble2Float, 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_ologitInv, GLM_tweedieInv, img2pixels, isAutoEncoder, isClassifier, KMeans_closest, KMeans_distance, KMeans_distance, KMeans_distances, Kmeans_preprocessData, Kmeans_preprocessData, KMeans_simplex, log_rescale, mapEnum, score0, setCats, setCats, setInput, setInputpublic 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