sivakornchong commited on
Commit
793915e
1 Parent(s): 778b50f

remove sample

Browse files
Files changed (1) hide show
  1. sample.py +0 -32
sample.py DELETED
@@ -1,32 +0,0 @@
1
- import json
2
- import requests
3
- from misc import nearest_mrt
4
- import time
5
- import pickle
6
- import os
7
- import pandas as pd
8
-
9
-
10
- filename = 'finalized_model.sav'
11
-
12
- if os.path.exists("./finalized_model.sav"):
13
- model = pickle.load(open(filename, 'rb'))
14
- print('loaded model')
15
- else:
16
- print('failed loading model')
17
-
18
- #extract feature names#
19
- feature_names = model.feature_names
20
-
21
-
22
-
23
- site_names = feature_names[5:31]
24
- town = []
25
- for town1 in site_names:
26
- town1 = town1[5:]
27
- town.append(town1)
28
-
29
- print(town)
30
-
31
- print(len(town))
32
- print(len(feature_names))