All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.neuroph.nnet.comp.layer.InputMapsLayer Maven / Gradle / Ivy

Go to download

neuroph is a ann lib . this release is a fork from https://github.com/neuroph/neuroph .

The newest version!
/**
 * Copyright 2013 Neuroph Project http://neuroph.sourceforge.net
 *
 * Licensed 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.neuroph.nnet.comp.layer;

import org.neuroph.core.transfer.Linear;
import org.neuroph.nnet.comp.neuron.InputNeuron;
import org.neuroph.util.NeuronProperties;

/**
 * Input layer for convolutional networks
 * @author Boris Fulurija
 * @author Zoran Sevarac
 */
public class InputMapsLayer extends FeatureMapsLayer {

    private static final long serialVersionUID = -4982081431101626706L;
    
    /**
     * Default neuron properties for InputMapsLayer is InputNeuron with Linear transfer function 
     */
    public static final  NeuronProperties DEFAULT_NEURON_PROP = new NeuronProperties();

    static {
		DEFAULT_NEURON_PROP.setProperty("neuronType", InputNeuron.class);
		DEFAULT_NEURON_PROP.setProperty("transferFunction", Linear.class);     
    }
    
    
    /**
     * Create InputMapsLayer with specified number of maps with specified dimensions
     * @param mapDimension dimensions of a single feature map
     * @param mapCount  number of feature maps
     */
    public InputMapsLayer( Layer2D.Dimensions mapDimensions, int mapCount) {
        super(null, mapDimensions, mapCount, InputMapsLayer.DEFAULT_NEURON_PROP );
    }
    
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy