public class Word2VecModel extends hex.Model<Word2VecModel,Word2VecModel.Word2VecParameters,Word2VecModel.Word2VecOutput>
Modifier and Type | Class and Description |
---|---|
static class |
Word2VecModel.AggregateMethod |
static class |
Word2VecModel.Vocabulary |
static class |
Word2VecModel.Word2VecModelInfo |
static class |
Word2VecModel.Word2VecOutput |
static class |
Word2VecModel.Word2VecParameters |
static class |
Word2VecModel.WordCounts |
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 |
---|
Word2VecModel(water.Key<Word2VecModel> selfKey,
Word2VecModel.Word2VecParameters params,
Word2VecModel.Word2VecOutput output) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Float> |
findSynonyms(java.lang.String target,
int cnt)
Find synonyms (i.e.
|
Word2VecMojoWriter |
getMojo() |
hex.ModelMetrics.MetricBuilder |
makeMetricBuilder(java.lang.String[] domain) |
double[] |
score0(water.fvec.Chunk[] cs,
int foo,
double[] data,
double[] preds) |
protected double[] |
score0(double[] data,
double[] preds) |
water.fvec.Frame |
toFrame()
Converts this word2vec model to a Frame.
|
float[] |
transform(java.lang.String target)
Takes an input string can return the word vector for that word.
|
water.fvec.Frame |
transform(water.fvec.Vec wordVec,
Word2VecModel.AggregateMethod aggregateMethod) |
adaptFrameForScore, adaptTestForJavaScoring, adaptTestForTrain, adaptTestForTrain, adaptTestForTrain, addMetrics, addModelMetrics, addWarning, aic, auc, AUCPR, checksum_impl, classification_error, compareTo, computeDeviances, containsResponse, data, defaultThreshold, defaultThreshold, deleteCrossValidationFoldAssignment, deleteCrossValidationModels, deleteCrossValidationPreds, deviance, deviance, evaluateAutoModelParameters, exportBinaryModel, exportMojo, fetchAll, fillScoringInfo, getDefaultGridSortBy, getGenModelEncoding, getPojoInterfaces, getToEigenVec, haveMojo, havePojo, importBinaryModel, initActualParamValues, 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, predictScoreImpl, 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, toJavaCheckTooBig, toJavaInit, toJavaModelClassName, toJavaPredictBody, toJavaTransform, 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 Word2VecModel(water.Key<Word2VecModel> selfKey, Word2VecModel.Word2VecParameters params, Word2VecModel.Word2VecOutput output)
public hex.ModelMetrics.MetricBuilder makeMetricBuilder(java.lang.String[] domain)
makeMetricBuilder
in class hex.Model<Word2VecModel,Word2VecModel.Word2VecParameters,Word2VecModel.Word2VecOutput>
public double[] score0(water.fvec.Chunk[] cs, int foo, double[] data, double[] preds)
score0
in class hex.Model<Word2VecModel,Word2VecModel.Word2VecParameters,Word2VecModel.Word2VecOutput>
protected double[] score0(double[] data, double[] preds)
score0
in class hex.Model<Word2VecModel,Word2VecModel.Word2VecParameters,Word2VecModel.Word2VecOutput>
public Word2VecMojoWriter getMojo()
getMojo
in class hex.Model<Word2VecModel,Word2VecModel.Word2VecParameters,Word2VecModel.Word2VecOutput>
public water.fvec.Frame toFrame()
public float[] transform(java.lang.String target)
target
- - String of desired wordpublic water.fvec.Frame transform(water.fvec.Vec wordVec, Word2VecModel.AggregateMethod aggregateMethod)
public java.util.Map<java.lang.String,java.lang.Float> findSynonyms(java.lang.String target, int cnt)
target
- String of desired wordcnt
- Number of synonyms to find