Class SequenceVectors<T extends SequenceElement>

    • Field Detail

      • log

        protected static final org.slf4j.Logger log
      • existingModel

        protected transient WordVectors existingModel
      • intersectModel

        protected transient WordVectors intersectModel
      • scoreElements

        protected transient org.nd4j.shade.guava.util.concurrent.AtomicDouble scoreElements
      • scoreSequences

        protected transient org.nd4j.shade.guava.util.concurrent.AtomicDouble scoreSequences
      • configured

        protected transient boolean configured
      • lockFactor

        protected transient boolean lockFactor
      • enableScavenger

        protected boolean enableScavenger
      • vocabLimit

        protected int vocabLimit
    • Constructor Detail

      • SequenceVectors

        public SequenceVectors()
    • Method Detail

      • getElementsScore

        public double getElementsScore()
      • getSequencesScore

        public double getSequencesScore()
      • buildVocab

        public void buildVocab()
        Builds vocabulary from provided SequenceIterator instance
      • initLearners

        protected void initLearners()
      • fit

        public void fit()
        Starts training over
      • trainSequence

        protected void trainSequence​(@NonNull
                                     @NonNull Sequence<T> sequence,
                                     AtomicLong nextRandom,
                                     double alpha)