use of org.encog.ml.data.MLData in project shifu by ShifuML.
the class MSEWorker method run.
public void run() {
for (int i = this.low; i <= this.high; i++) {
this.dataSet.getRecord(i, pair);
MLData result = this.network.compute(this.pair.getInput());
double tmp = result.getData()[0] - this.pair.getIdeal().getData()[0];
double mse = tmp * tmp;
this.totalError += mse;
}
}
Aggregations