Exemple #1
0
  /**
   * initialize various variables before starting the actual optimizer
   *
   * @param data data set used for learning
   * @throws Exception if something goes wrong
   */
  protected void init(Instances data) throws Exception {
    super.init(data);

    // init error cache
    m_error = new double[m_nInstances];
    for (int i = 0; i < m_nInstances; i++) {
      m_error[i] = -m_target[i];
    }
  }