public RandomWeightsGenerator(NeuralNetworkSpecification specification) { this.specification = specification; }
public static NeuralNetwork CreateFromFile(NeuralNetworkSpecification specification, string filePath) { var weights = JsonFileReader.LoadWeights(filePath); return(new NeuralNetwork(weights, specification.HiddenLayersActivationFunction, specification.OutputLayerActivationFunction)); }