TimStats commited on
Commit
6b2d68a
·
verified ·
1 Parent(s): 9973745

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +1 -1
app.R CHANGED
@@ -10,7 +10,7 @@ calculate_timstuff <- function(data) {
10
  data_matrix <- as.matrix(data)
11
  mod <- xgb.load('TimStuff2.model')
12
  prediction <- predict(mod, data_matrix)
13
- timstuff <- (100 - (prediction - -0.002491156) / 0.0078211 * 10)
14
  return(timstuff)
15
  }
16
 
 
10
  data_matrix <- as.matrix(data)
11
  mod <- xgb.load('TimStuff2.model')
12
  prediction <- predict(mod, data_matrix)
13
+ timstuff <- (100 - (prediction - -0.002549184) / 0.006202895 * 10)
14
  return(timstuff)
15
  }
16