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.AdaptFrameParameters, hex.Model.BigScore, hex.Model.BigScoreChunkPredict, hex.Model.BigScorePredict, hex.Model.Contributions, hex.Model.DeepFeatures, hex.Model.ExemplarMembers, hex.Model.FeatureFrequencies, hex.Model.GetMostImportantFeatures, hex.Model.GetNTrees, hex.Model.GLRMArchetypes, hex.Model.GridSortBy, hex.Model.H2OModelDescriptor, hex.Model.InteractionBuilder, hex.Model.InteractionPair, hex.Model.InteractionSpec, hex.Model.JavaModelStreamWriter, hex.Model.JavaScoringOptions, hex.Model.LeafNodeAssignment, hex.Model.Output, hex.Model.Parameters, hex.Model.PredictScoreResult, hex.Model.RowToTreeAssignment, hex.Model.StagedPredictions, hex.Model.UpdateAuxTreeWeights
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() |
protected java.lang.Class<?>[] |
getPojoInterfaces() |
hex.ToEigenVec |
getToEigenVec() |
void |
initActualParamValues() |
hex.ModelMetrics.MetricBuilder |
makeMetricBuilder(java.lang.String[] domain) |
protected hex.Model.PredictScoreResult |
predictScoreImpl(water.fvec.Frame orig,
water.fvec.Frame adaptedFr,
java.lang.String destination_key,
water.Job j,
boolean computeMetrics,
water.udf.CFuncRef customMetricFunc) |
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) |
protected water.util.SBPrintStream |
toJavaTransform(water.util.SBPrintStream ccsb,
water.codegen.CodeGeneratorPipeline fileCtx,
boolean verboseCode) |
adaptFrameForScore, adaptTestForJavaScoring, adaptTestForTrain, adaptTestForTrain, adaptTestForTrain, addMetrics, addModelMetrics, addWarning, aic, auc, AUCPR, checksum_impl, classification_error, compareTo, computeDeviances, containsResponse, defaultThreshold, defaultThreshold, deleteCrossValidationFoldAssignment, deleteCrossValidationModels, deleteCrossValidationPreds, deviance, deviance, evaluateAutoModelParameters, exportBinaryModel, exportMojo, fetchAll, fillScoringInfo, getDefaultGridSortBy, getGenModelEncoding, haveMojo, havePojo, importBinaryModel, isDistributionHuber, isFeatureUsedInPredict, isFeatureUsedInPredict, isGeneric, isSupervised, last_scored, lift_top_group, likelihood, logloss, loss, mae, makeAdaptFrameParameters, makeBigScoreTask, makeInteraction, makeInteractions, makeInteractions, makePojoWriter, makeSchema, makeScoringDomains, makeScoringNames, makeScoringNames, mean_per_class_error, modelDescriptor, mse, needsPostProcess, postProcessPredictions, r2, readAll_impl, remove_impl, resetThreshold, result, rmsle, score, score, score, score, score, score, score, score, score0, score0, score0PostProcessSupervised, scoreMetrics, scoring_history, scoringDomains, setInputParms, setupBigScorePredict, testJavaScoring, testJavaScoring, testJavaScoring, testJavaScoring, testJavaScoring, toJava, toJava, toJava, toJavaAlgo, toJavaInit, toJavaModelClassName, toJavaUUID, toMojo, toMojo, toString, transform, uploadBinaryModel, writeAll_impl, writeTo
delete_and_lock, delete_and_lock, delete_and_lock, delete_and_lock, delete, delete, delete, delete, read_lock, read_lock, read_lock, unlock_all, unlock, unlock, unlock, unlock, update, update, update, write_lock_to_read_lock, write_lock, write_lock, write_lock
checksum_impl, checksum, checksum, getKey, readAll, remove_impl, remove_self_key_impl, remove, remove, remove, remove, remove, remove, removeQuietly, 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 void initActualParamValues()
initActualParamValues
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 hex.Model.PredictScoreResult predictScoreImpl(water.fvec.Frame orig, water.fvec.Frame adaptedFr, java.lang.String destination_key, water.Job j, boolean computeMetrics, water.udf.CFuncRef customMetricFunc)
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 java.lang.Class<?>[] getPojoInterfaces()
getPojoInterfaces
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 water.util.SBPrintStream toJavaTransform(water.util.SBPrintStream ccsb, water.codegen.CodeGeneratorPipeline fileCtx, boolean verboseCode)
toJavaTransform
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>