Guest User

Untitled

a guest
Feb 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. double[] forecast = new double[LEAD_LENGTH + 2];
  2. network.compute(normalizer.process(Arrays.copyOfRange(dst, dst.length - LAG_LENGTH, dst.length)), forecast);
  3. forecast[forecast.length - 2] = -Double.MAX_VALUE;
  4. forecast[forecast.length - 1] = +Double.MAX_VALUE;
  5. ACTIVATION.activationFunction(forecast, forecast.length - 2, 2);
  6. normalizer.setNormalizedLow(Arrays.stream(dst).min().getAsDouble());
  7. normalizer.setNormalizedHigh(Arrays.stream(dst).max().getAsDouble());
  8. forecast = Arrays.copyOfRange(normalizer.process(forecast), 0, forecast.length - 2);
  9. System.out.println("Forecast:t" + Arrays.toString(forecast));
Add Comment
Please, Sign In to add comment