Documentation of 'jhpro.nnet.jknnl.DefaultNetwork' Java class
DefaultNetwork
jhpro.nnet.jknnl

Class DefaultNetwork

  • All Implemented Interfaces:
    NetworkModel


    public class DefaultNetwork
    extends java.lang.Object
    implements NetworkModel
    Default Network Model. We can create network with specified topology, inputs for each neuron and maximal value for neurons weights.
    • Constructor Summary

      Constructors 
      Constructor and Description
      DefaultNetwork(int weightNumber, double[] maxWeight, TopologyModel topology)
      Create network with specified topology, random weight from defined interval and number of inputs
      DefaultNetwork(java.lang.String fileName, TopologyModel topology)
      Create network with specified topology and parameters get from specified file
    • Constructor Detail

      • DefaultNetwork

        public DefaultNetwork(int weightNumber,
                              double[] maxWeight,
                              TopologyModel topology)
        Create network with specified topology, random weight from defined interval and number of inputs
        Parameters:
        weightNumber - number of weights (inputs)
        maxWeight - array with specified weight
        topology - Topology
      • DefaultNetwork

        public DefaultNetwork(java.lang.String fileName,
                              TopologyModel topology)
        Create network with specified topology and parameters get from specified file
        Parameters:
        fileName - File Name
        topology - Topology
    • Method Detail

      • getNeuron

        public NeuronModel getNeuron(int neuronNumber)
        Return specified by number neuron
        Specified by:
        getNeuron in interface NetworkModel
        Parameters:
        neuronNumber - neuron number
        Returns:
        Neuorn
      • getNumbersOfNeurons

        public int getNumbersOfNeurons()
        Return number of neurons
        Specified by:
        getNumbersOfNeurons in interface NetworkModel
        Returns:
        number of neurons
      • toString

        public java.lang.String toString()
        Returns a string representation of the Coords object
        Overrides:
        toString in class java.lang.Object
        Returns:
        Returns a string representation of the Coords object
      • getWeightsAsArray

        public java.util.ArrayList<double[]> getWeightsAsArray()
        Returns data representation of the Coords object
        Returns:
        Returns list representation of the Coords (weight) object
      • getWeights

        public PND getWeights()
        Returns data representation of the Coords object
        Returns:
        Returns PND data representation of the Coords (weights) object
      • networkToFile

        public void networkToFile(java.lang.String fileName)
        Save network into file
        Parameters:
        fileName - File Name

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.