Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
innerTrain(srcInput) {
const input = srcInput;
this.neuralNetwork = new NeuralNetwork(input.settings, this.container);
input.status = this.neuralNetwork.train(input.corpus);
return input;
}
fromJSON(json) {
super.fromJSON(json);
this.neuralNetwork = new NeuralNetwork();
this.neuralNetwork.fromJSON(json.neuralNetwork);
}
}