#5 -- restore warning message and fix readme

This commit is contained in:
Anton Romanov 2021-08-11 14:30:33 +04:00
parent 9560190368
commit 662e1f6588
2 changed files with 2 additions and 2 deletions

View File

@ -4,4 +4,4 @@ Build with gradle
API http://localhost:8080/swagger-ui.html
Demo http://193.110.3.124:8010
Demo http://time-series.athene.tech/

View File

@ -28,7 +28,7 @@ public class Smape extends ScoreMethod {
//double actualValue = getValueOnSameDate(modelValue, original).getValue();
double actualValue = Optional.ofNullable(tsValues.get(modelValue.getDate()))
.orElseThrow(() -> new ModelingException("Значение модельного ряда не найдено в оригинальном ряде: "
+ modelValue.getDate() + " " + tsValues + " " + model));
+ modelValue.getDate()));
sum += abs(modelValue.getValue() - actualValue)
/ ((abs(actualValue) + abs(modelValue.getValue())) / 2);
}