Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 
 package org.apache.mahout.math.decomposer.hebbian;
 
 import java.util.List;
 
 
 public class TrainingState {
 
   private Matrix currentEigens;
   private int numEigensProcessed;
   private List<DoublecurrentEigenValues;
   private Matrix trainingProjections;
   private int trainingIndex;
   private Vector helperVector;
   private boolean firstPass;
   private double activationNumerator;
   private double activationDenominatorSquared;
 
   TrainingState(Matrix eigensMatrix projections) {
      = eigens;
      = projections;
      = 0;
      = new DenseVector(eigens.numRows());
      = true;
      = Lists.newArrayList();
      = 0;
      = 0;
   }
 
   public Vector mostRecentEigen() {
     return .viewRow( - 1);
   }
 
     if (.viewRow() == null) {
     }
   }
 
   public Matrix getCurrentEigens() {
     return ;
   }
 
   public void setCurrentEigens(Matrix currentEigens) {
     this. = currentEigens;
   }
 
   public int getNumEigensProcessed() {
     return ;
   }
 
   public void setNumEigensProcessed(int numEigensProcessed) {
     this. = numEigensProcessed;
   }
 
   public List<DoublegetCurrentEigenValues() {
     return ;
   }
 
   public void setCurrentEigenValues(List<DoublecurrentEigenValues) {
     this. = currentEigenValues;
   }
 
   public Matrix getTrainingProjections() {
     return ;
   }
 
   public void setTrainingProjections(Matrix trainingProjections) {
     this. = trainingProjections;
   }
 
   public int getTrainingIndex() {
     return ;
   }
 
  public void setTrainingIndex(int trainingIndex) {
    this. = trainingIndex;
  }
  public Vector getHelperVector() {
    return ;
  }
  public void setHelperVector(Vector helperVector) {
    this. = helperVector;
  }
  public boolean isFirstPass() {
    return ;
  }
  public void setFirstPass(boolean firstPass) {
    this. = firstPass;
  }
    return ;
  }
  public void setStatusProgress(List<EigenStatusstatusProgress) {
    this. = statusProgress;
  }
  public double getActivationNumerator() {
    return ;
  }
  public void setActivationNumerator(double activationNumerator) {
    this. = activationNumerator;
  }
  public double getActivationDenominatorSquared() {
  }
  public void setActivationDenominatorSquared(double activationDenominatorSquared) {
    this. = activationDenominatorSquared;
  }
New to GrepCode? Check out our FAQ X