deeplearning4j-scaleout/deeplearning4j-nlp/src/main/java/org/deeplearning4j/models/sequencevectors/SequenceVectors.java
/**
         * This method creates new WeightLookupTable<T> and VocabCache<T> if there were none set
         */
This method creates new WeightLookupTable and VocabCache if there were none set
This method creates new WeightLookupTable and VocabCache if there were none set
protected void presetTables() {
            if (lookupTable == null) {
                if (vocabCache == null) {
                    vocabCache = new AbstractCache.Builder<T>()
                            .hugeModelExpected(hugeModelExpected)
                            .scavengerRetentionDelay(this.configuration.getScavengerRetentionDelay())
                            .scavengerThreshold(this.configuration.getScavengerActivationThreshold())
                            .minElementFrequency(minWordFrequency)
                            .build();
                }
                lookupTable = new InMemoryLookupTable.Builder<T>()
                        .useAdaGrad(this.useAdaGrad)
                        .cache(vocabCache)
                        .negative(negative)
                        .vectorLength(layerSize)
                        .lr(learningRate)
                        .seed(seed)
                        .build();
            }
        }
protected void presetTables ( ) { if ( lookupTable == null ) { if ( vocabCache == null ) { vocabCache = new AbstractCache . Builder < T > ( ) . hugeModelExpected ( hugeModelExpected ) . scavengerRetentionDelay ( this . configuration . getScavengerRetentionDelay ( ) ) . scavengerThreshold ( this . configuration . getScavengerActivationThreshold ( ) ) . minElementFrequency ( minWordFrequency ) . build ( ) ; } lookupTable = new InMemoryLookupTable . Builder < T > ( ) . useAdaGrad ( this . useAdaGrad ) . cache ( vocabCache ) . negative ( negative ) . vectorLength ( layerSize ) . lr ( learningRate ) . seed ( seed ) . build ( ) ; } }
This method creates new WeightLookupTable<T> and VocabCache<T> if there were none set
This method creates new WeightLookupTable<T > and VocabCache<T > if there were none set