public class KMeansModel extends hex.ClusteringModel<KMeansModel,KMeansModel.KMeansParameters,KMeansModel.KMeansOutput>
Modifier and Type | Class and Description |
---|---|
static class |
KMeansModel.KMeansOutput |
static class |
KMeansModel.KMeansParameters |
hex.ClusteringModel.ClusteringOutput, hex.ClusteringModel.ClusteringParameters
hex.Model.BigScore, hex.Model.DeepFeatures, hex.Model.ExemplarMembers, hex.Model.GetMostImportantFeatures, hex.Model.GLRMArchetypes, hex.Model.GridSortBy, hex.Model.InteractionPair, hex.Model.JavaModelStreamWriter, hex.Model.LeafNodeAssignment, hex.Model.Output, hex.Model.Parameters
Constructor and Description |
---|
KMeansModel(water.Key selfKey,
KMeansModel.KMeansParameters parms,
KMeansModel.KMeansOutput output) |
Modifier and Type | Method and Description |
---|---|
protected double |
data(water.fvec.Chunk[] chks,
int row,
int col) |
KMeansMojoWriter |
getMojo() |
hex.ToEigenVec |
getToEigenVec() |
hex.ModelMetrics.MetricBuilder |
makeMetricBuilder(java.lang.String[] domain) |
protected water.fvec.Frame |
predictScoreImpl(water.fvec.Frame orig,
water.fvec.Frame adaptedFr,
java.lang.String destination_key,
water.Job j,
boolean computeMetrics) |
double[] |
score_indicator(water.fvec.Chunk[] chks,
int row_in_chunk,
double[] tmp,
double[] preds) |
double[] |
score_ratio(water.fvec.Chunk[] chks,
int row_in_chunk,
double[] tmp) |
protected double[] |
score0(double[] data,
double[] preds) |
protected double[] |
score0(double[] data,
double[] preds,
double offset) |
protected boolean |
toJavaCheckTooBig() |
protected void |
toJavaPredictBody(water.util.SBPrintStream body,
water.codegen.CodeGeneratorPipeline classCtx,
water.codegen.CodeGeneratorPipeline fileCtx,
boolean verboseCode) |
adaptTestForTrain, adaptTestForTrain, addMetrics, addModelMetrics, addWarning, auc, checksum_impl, classification_error, cleanup_adapt, closeBigScorePredict, compareTo, computeDeviances, defaultThreshold, deleteCrossValidationModels, deviance, deviance, fillScoringInfo, getDefaultGridSortBy, isSupervised, last_scored, lift_top_group, logloss, loss, mae, makeBigScoreTask, makeInteraction, makeInteractions, makeInteractions, makeSchema, makeScoringNames, mean_per_class_error, mse, postProcessPredictions, readAll_impl, remove_impl, rmsle, score, score, score, score, score, score0, score0, scoreMetrics, scoring_history, scoringDomains, setupBigScorePredict, testJavaScoring, testJavaScoring, testJavaScoring, toJava, toJava, toJava, toJavaInit, toJavaNCLASSES, toJavaPROB, toJavaSuper, toString, writeAll_impl
delete_and_lock, delete_and_lock, delete_and_lock, delete, delete, delete, read_lock, read_lock, read_lock, unlock_all, unlock, unlock, unlock, unlock, update, update, update, write_lock, write_lock, write_lock
checksum, readAll, remove, remove, remove, remove, writeAll
public KMeansModel(water.Key selfKey, KMeansModel.KMeansParameters parms, KMeansModel.KMeansOutput output)
public hex.ToEigenVec getToEigenVec()
getToEigenVec
in class hex.Model<KMeansModel,KMeansModel.KMeansParameters,KMeansModel.KMeansOutput>
public hex.ModelMetrics.MetricBuilder makeMetricBuilder(java.lang.String[] domain)
makeMetricBuilder
in class hex.Model<KMeansModel,KMeansModel.KMeansParameters,KMeansModel.KMeansOutput>
protected water.fvec.Frame predictScoreImpl(water.fvec.Frame orig, water.fvec.Frame adaptedFr, java.lang.String destination_key, water.Job j, boolean computeMetrics)
predictScoreImpl
in class hex.Model<KMeansModel,KMeansModel.KMeansParameters,KMeansModel.KMeansOutput>
public double[] score_indicator(water.fvec.Chunk[] chks, int row_in_chunk, double[] tmp, double[] preds)
public double[] score_ratio(water.fvec.Chunk[] chks, int row_in_chunk, double[] tmp)
protected double[] score0(double[] data, double[] preds, double offset)
score0
in class hex.Model<KMeansModel,KMeansModel.KMeansParameters,KMeansModel.KMeansOutput>
protected double[] score0(double[] data, double[] preds)
score0
in class hex.Model<KMeansModel,KMeansModel.KMeansParameters,KMeansModel.KMeansOutput>
protected double data(water.fvec.Chunk[] chks, int row, int col)
data
in class hex.Model<KMeansModel,KMeansModel.KMeansParameters,KMeansModel.KMeansOutput>
protected void toJavaPredictBody(water.util.SBPrintStream body, water.codegen.CodeGeneratorPipeline classCtx, water.codegen.CodeGeneratorPipeline fileCtx, boolean verboseCode)
toJavaPredictBody
in class hex.Model<KMeansModel,KMeansModel.KMeansParameters,KMeansModel.KMeansOutput>
protected boolean toJavaCheckTooBig()
toJavaCheckTooBig
in class hex.Model<KMeansModel,KMeansModel.KMeansParameters,KMeansModel.KMeansOutput>
public KMeansMojoWriter getMojo()
getMojo
in class hex.Model<KMeansModel,KMeansModel.KMeansParameters,KMeansModel.KMeansOutput>