public class Word2VecMojoModel extends MojoModel implements WordEmbeddingModel
_balanceClasses, _category, _defaultThreshold, _modelClassDistrib, _nclasses, _nfeatures, _priorClassDistrib, _supervised, _uuid
_domains, _names, _offsetColumn
Modifier and Type | Method and Description |
---|---|
int |
getVecSize()
Dimensionality of the vector space of this Word Embedding model
|
double[] |
score0(double[] row,
double[] preds)
Subclasses implement the scoring logic.
|
float[] |
transform0(java.lang.String word,
float[] output)
Transforms a given a word into a word vector
|
getModelCategory, getUUID, isSupervised, load, load, nclasses, nfeatures
bitSetContains, bitSetIsInRange, calibrateClassProbabilities, 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_tweedieInv, img2pixels, isAutoEncoder, isClassifier, KMeans_closest, KMeans_distance, KMeans_distance, Kmeans_preprocessData, Kmeans_preprocessData, KMeans_simplex, log_rescale, mapEnum, score0, setInput
public int getVecSize()
WordEmbeddingModel
getVecSize
in interface WordEmbeddingModel
public float[] transform0(java.lang.String word, float[] output)
WordEmbeddingModel
transform0
in interface WordEmbeddingModel
word
- input wordoutput
- pre-allocated word vector embeddingpublic double[] score0(double[] row, double[] preds)
GenModel