public RandomWeightsGenerator(NeuralNetworkSpecification specification)
 {
     this.specification = specification;
 }
예제 #2
0
        public static NeuralNetwork CreateFromFile(NeuralNetworkSpecification specification, string filePath)
        {
            var weights = JsonFileReader.LoadWeights(filePath);

            return(new NeuralNetwork(weights, specification.HiddenLayersActivationFunction, specification.OutputLayerActivationFunction));
        }