Enum Class Doc2Vec.Mode

java.lang.Object
java.lang.Enum<Doc2Vec.Mode>
ai.beestream.jitnn.nn.models.Doc2Vec.Mode
All Implemented Interfaces:
Serializable, Comparable<Doc2Vec.Mode>, Constable
Enclosing class:
Doc2Vec

public static enum Doc2Vec.Mode extends Enum<Doc2Vec.Mode>
How a document's words are predicted.
  • Enum Constant Details

    • PV_DBOW

      public static final Doc2Vec.Mode PV_DBOW
      From the document vector alone (distributed bag of words).
    • PV_DM

      public static final Doc2Vec.Mode PV_DM
      From the mean of the document vector and the context words' vectors (distributed memory).
  • Method Details

    • values

      public static Doc2Vec.Mode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Doc2Vec.Mode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null