Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
all for v1.y.z to use the testing data sets
Browse files Browse the repository at this point in the history
  • Loading branch information
dewittpe committed Jul 30, 2021
1 parent 98e65f8 commit 4fa3a73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evaluate.R
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ report_assessment("F1 for mortality model on training data", ma_training$F1)
if (USE_TESTING_DATA) {
ma_testing <- mortality_assessments(observed_mortality_testing, predicted_mortality_testing)

if (isTRUE(VERSION == "v1.0")) {
if (isTRUE(grepl("^v1\\.\\d", VERSION))) {
report_assessment("Accuracy for mortality model on testing data", ma_testing$ACCURACY)
report_assessment("Sensitivity for mortality model on testing data", ma_testing$SENSITIVITY)
report_assessment("Specificity for mortality model on testing data", ma_testing$SPECIFICITY)
Expand Down Expand Up @@ -125,7 +125,7 @@ if (USE_TESTING_DATA) {
MEAN_AD <- mean(abs(observed_fss_testing - predicted_fss_testing))
MAX_AD <- max(abs(observed_fss_testing - predicted_fss_testing))

if (isTRUE(VERSION == "v1.0")) {
if (isTRUE(grepl("^v1\\.\\d", VERSION))) {
report_assessment("MSE for predicted FSS on testing data", MSE)
report_assessment("Min abs difference in FSS prediction and observed on testing data", MIN_AD)
report_assessment("Median abs difference in FSS prediction and observed on testing data", MEDIAN_AD)
Expand Down

0 comments on commit 4fa3a73

Please sign in to comment.