guyar commited on
Commit
6dbc669
1 Parent(s): 20468b5

update app

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -7,13 +7,8 @@ import shap
7
  import lightgbm as lgb
8
  import yaml
9
  import numpy as np
10
- import sys
11
- import os
12
 
13
- current_path = os.getcwd() + '\\' + __file__
14
- vis_path = os.path.dirname(current_path) + '\\visualisations'
15
- sys.path.append(vis_path)
16
- import terravisualisation as tmvis
17
 
18
  matplotlib.use("Agg")
19
 
@@ -90,7 +85,7 @@ feature_columns = ['x0_SCORE1', 'x0_SCORE2', 'x0_SCORE3', 'x0_SCORE4', 'x0_SCORE
90
  'x3_SCORE4', 'x3_SCORE5', 'x3_SCORE6', 'x3_SCORE7', 'x3_SCORE8',
91
  'x3_SCORE9', 'x4_SCORE1', 'x4_SCORE2', 'x4_SCORE3', 'x4_SCORE4',
92
  'x4_SCORE5', 'x4_SCORE6', 'x4_SCORE7', 'x4_SCORE8', 'x4_SCORE9',
93
- 'x5_SCORE2', 'x5_SCORE3', 'x5_SCORE4', 'x5_SCORE5', 'x5_SCORE6',
94
  'x5_SCORE7', 'x5_SCORE8', 'x5_SCORE9', 'BON1', 'BON2', 'BON3', 'BON4',
95
  'BON5', 'BON6', 'BON7', 'BON8', 'BON9', 'BON10', 'no_players', 'red',
96
  'blue', 'green', 'black', 'grey', 'yellow', 'brown', 'x0_map1',
 
7
  import lightgbm as lgb
8
  import yaml
9
  import numpy as np
 
 
10
 
11
+ from visualisations import terravisualisation as tmvis
 
 
 
12
 
13
  matplotlib.use("Agg")
14
 
 
85
  'x3_SCORE4', 'x3_SCORE5', 'x3_SCORE6', 'x3_SCORE7', 'x3_SCORE8',
86
  'x3_SCORE9', 'x4_SCORE1', 'x4_SCORE2', 'x4_SCORE3', 'x4_SCORE4',
87
  'x4_SCORE5', 'x4_SCORE6', 'x4_SCORE7', 'x4_SCORE8', 'x4_SCORE9',
88
+ 'x5_SCORE1', 'x5_SCORE2', 'x5_SCORE3', 'x5_SCORE4', 'x5_SCORE5', 'x5_SCORE6',
89
  'x5_SCORE7', 'x5_SCORE8', 'x5_SCORE9', 'BON1', 'BON2', 'BON3', 'BON4',
90
  'BON5', 'BON6', 'BON7', 'BON8', 'BON9', 'BON10', 'no_players', 'red',
91
  'blue', 'green', 'black', 'grey', 'yellow', 'brown', 'x0_map1',