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

net.sourceforge.cilib.nn.domain.WeightSolutionConversionStrategy Maven / Gradle / Ivy

/**           __  __
 *    _____ _/ /_/ /_    Computational Intelligence Library (CIlib)
 *   / ___/ / / / __ \   (c) CIRG @ UP
 *  / /__/ / / / /_/ /   http://cilib.net
 *  \___/_/_/_/_.___/
 */
package net.sourceforge.cilib.nn.domain;

import net.sourceforge.cilib.nn.NeuralNetwork;
import net.sourceforge.cilib.nn.architecture.visitors.ArchitectureVisitor;
import net.sourceforge.cilib.nn.architecture.visitors.WeightSettingVisitor;
import net.sourceforge.cilib.type.types.Type;
import net.sourceforge.cilib.type.types.container.Vector;

public class WeightSolutionConversionStrategy implements SolutionConversionStrategy {

    @Override
    public SolutionConversionStrategy initialise(NeuralNetwork neuralNetwork) {
        return this;
    }

    @Override
    public ArchitectureVisitor interpretSolution(Type solution) {
        return new WeightSettingVisitor((Vector) solution);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy