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.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 |
---|
Word2VecModel(water.Key<Word2VecModel> selfKey,
Word2VecModel.Word2VecParameters params,
Word2VecModel.Word2VecOutput output) |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
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) |
adaptTestForTrain, adaptTestForTrain, addMetrics, addModelMetrics, addWarning, auc, checksum_impl, classification_error, cleanup_adapt, closeBigScorePredict, compareTo, computeDeviances, data, defaultThreshold, deleteCrossValidationModels, deviance, deviance, fillScoringInfo, getDefaultGridSortBy, getToEigenVec, isSupervised, last_scored, lift_top_group, logloss, loss, mae, makeBigScoreTask, makeInteraction, makeInteractions, makeInteractions, makeSchema, makeScoringNames, mean_per_class_error, mse, postProcessPredictions, predictScoreImpl, readAll_impl, remove_impl, rmsle, score, score, score, score, score, score0, score0, scoreMetrics, scoring_history, scoringDomains, setupBigScorePredict, testJavaScoring, testJavaScoring, testJavaScoring, toJava, toJava, toJava, toJavaCheckTooBig, toJavaInit, toJavaNCLASSES, toJavaPredictBody, toJavaPROB, toJavaSuper, toString, writeAll_impl
delete_and_lock, delete_and_lock, delete_and_lock, 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 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 findpublic void delete()
delete
in class water.Lockable<Word2VecModel>