x[k] = VectorFactory.getDefault().createUniformRandom( dim, -1.0, 1.0, this.getRandom() ); x[k].plusEquals( CollectionUtil.getElement(this.data,index) );
x[k] = VectorFactory.getDefault().createUniformRandom( dim, -1.0, 1.0, this.getRandom() ); x[k].plusEquals( CollectionUtil.getElement(this.data,index) );
x[k] = VectorFactory.getDefault().createUniformRandom( dim, -1.0, 1.0, this.getRandom() ); x[k].plusEquals( CollectionUtil.getElement(this.data,index) );
Vector randomNoise = VectorFactory.getDefault().createUniformRandom( data.getDimensionality(), -this.getRandomRange(), this.getRandomRange(), this.random );
Vector randomNoise = VectorFactory.getDefault().createUniformRandom( data.getDimensionality(), -this.getRandomRange(), this.getRandomRange(), this.random );
Vector randomNoise = VectorFactory.getDefault().createUniformRandom( data.getDimensionality(), -this.getRandomRange(), this.getRandomRange(), this.random );
1.0 / (this.dimensionality * sqrtLambda); final Vector initialWeights = vectorFactory.createUniformRandom(this.dimensionality, -initializationRange, initializationRange, this.random); if (initialWeights.norm2() < (1.0 / sqrtLambda))
1.0 / (this.dimensionality * sqrtLambda); final Vector initialWeights = vectorFactory.createUniformRandom(this.dimensionality, -initializationRange, initializationRange, this.random); if (initialWeights.norm2() < (1.0 / sqrtLambda))
1.0 / (this.dimensionality * sqrtLambda); final Vector initialWeights = vectorFactory.createUniformRandom(this.dimensionality, -initializationRange, initializationRange, this.random); if (initialWeights.norm2() < (1.0 / sqrtLambda))
hiddenDimensionality, inputDimensionality, -this.getInitializationRange(), this.getInitializationRange() ,this.getRandom()); this.inputToHiddenBiasWeights = VectorFactory.getDefault().createUniformRandom( hiddenDimensionality, -this.getInitializationRange(),this.getInitializationRange(), this.random); outputDimensionality, hiddenDimensionality, -this.getInitializationRange(), this.getInitializationRange() ,this.getRandom()); this.hiddenToOutputBiasWeights = VectorFactory.getDefault().createUniformRandom( outputDimensionality, -this.getInitializationRange(),this.getInitializationRange(), this.random);
this.documentCount, this.termCount); latent.pTermGivenLatent = this.getVectorFactory().createUniformRandom( this.termCount, 0.0, 1.0, this.getRandom()); VectorUtil.divideByNorm1Equals(latent.pTermGivenLatent); latent.pDocumentGivenLatent = this.getVectorFactory().createUniformRandom( this.documentCount, 0.0, 1.0, this.getRandom()); VectorUtil.divideByNorm1Equals(latent.pDocumentGivenLatent);
hiddenDimensionality, inputDimensionality, -this.getInitializationRange(), this.getInitializationRange() ,this.getRandom()); this.inputToHiddenBiasWeights = VectorFactory.getDefault().createUniformRandom( hiddenDimensionality, -this.getInitializationRange(),this.getInitializationRange(), this.random); outputDimensionality, hiddenDimensionality, -this.getInitializationRange(), this.getInitializationRange() ,this.getRandom()); this.hiddenToOutputBiasWeights = VectorFactory.getDefault().createUniformRandom( outputDimensionality, -this.getInitializationRange(),this.getInitializationRange(), this.random);
this.documentCount, this.termCount); latent.pTermGivenLatent = this.getVectorFactory().createUniformRandom( this.termCount, 0.0, 1.0, this.getRandom()); VectorUtil.divideByNorm1Equals(latent.pTermGivenLatent); latent.pDocumentGivenLatent = this.getVectorFactory().createUniformRandom( this.documentCount, 0.0, 1.0, this.getRandom()); VectorUtil.divideByNorm1Equals(latent.pDocumentGivenLatent);
hiddenDimensionality, inputDimensionality, -this.getInitializationRange(), this.getInitializationRange() ,this.getRandom()); this.inputToHiddenBiasWeights = VectorFactory.getDefault().createUniformRandom( hiddenDimensionality, -this.getInitializationRange(),this.getInitializationRange(), this.random); outputDimensionality, hiddenDimensionality, -this.getInitializationRange(), this.getInitializationRange() ,this.getRandom()); this.hiddenToOutputBiasWeights = VectorFactory.getDefault().createUniformRandom( outputDimensionality, -this.getInitializationRange(),this.getInitializationRange(), this.random);
this.documentCount, this.termCount); latent.pTermGivenLatent = this.getVectorFactory().createUniformRandom( this.termCount, 0.0, 1.0, this.getRandom()); VectorUtil.divideByNorm1Equals(latent.pTermGivenLatent); latent.pDocumentGivenLatent = this.getVectorFactory().createUniformRandom( this.documentCount, 0.0, 1.0, this.getRandom()); VectorUtil.divideByNorm1Equals(latent.pDocumentGivenLatent);