Package de.jungblut.classification.nn
Class MLPWeightMapper
- java.lang.Object
-
- de.jungblut.classification.nn.MLPWeightMapper
-
- All Implemented Interfaces:
WeightMapper<MultilayerPerceptron>
public class MLPWeightMapper extends java.lang.Object implements WeightMapper<MultilayerPerceptron>
-
-
Constructor Summary
Constructors Constructor Description MLPWeightMapper(ClassifierFactory<MultilayerPerceptron> factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultilayerPerceptronmapWeights(de.jungblut.math.DoubleVector weights)Maps the given weights to a classifier implementation.
-
-
-
Constructor Detail
-
MLPWeightMapper
public MLPWeightMapper(ClassifierFactory<MultilayerPerceptron> factory)
-
-
Method Detail
-
mapWeights
public MultilayerPerceptron mapWeights(de.jungblut.math.DoubleVector weights)
Description copied from interface:WeightMapperMaps the given weights to a classifier implementation.- Specified by:
mapWeightsin interfaceWeightMapper<MultilayerPerceptron>- Parameters:
weights- the parameters of a trained model.- Returns:
- a classifier instance with the weights set.
-
-