/**
   * Constructs MLP with the specified topology.
   *
   * <p>The method creates an MLP network with the specified topology and assigns the same
   * activation function to all the neurons.
   *
   * @param layerSizes Integer vector specifying the number of neurons in each layer including the
   *     input and output layers.
   * @see <a
   *     href="http://docs.opencv.org/modules/ml/doc/neural_networks.html#cvann-mlp-create">org.opencv.ml.CvANN_MLP.create</a>
   */
  public void create(Mat layerSizes) {

    create_1(nativeObj, layerSizes.nativeObj);

    return;
  }
Exemplo n.º 2
0
  /**
   * Constructs MLP with the specified topology.
   *
   * <p>The method creates an MLP network with the specified topology and assigns the same
   * activation function to all the neurons.
   *
   * @param layerSizes Integer vector specifying the number of neurons in each layer including the
   *     input and output layers.
   * @param activateFunc Parameter specifying the activation function for each neuron: one of
   *     "CvANN_MLP.IDENTITY", "CvANN_MLP.SIGMOID_SYM", and "CvANN_MLP.GAUSSIAN".
   * @param fparam1 a fparam1
   * @see <a
   *     href="http://opencv.itseez.com/modules/ml/doc/neural_networks.html#cvann-mlp-create">org.opencv.ml.CvANN_MLP.create</a>
   */
  public void create(Mat layerSizes, int activateFunc, double fparam1) {

    create_1(nativeObj, layerSizes.nativeObj, activateFunc, fparam1);

    return;
  }