forked from isadoranun/time-series-feats
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_table.py
More file actions
33 lines (22 loc) · 857 Bytes
/
create_table.py
File metadata and controls
33 lines (22 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from ipy_table import *
import pandas
import numpy as np
from Feature import FeatureSpace
def Table(a):
# all_features = np.random.uniform(size=(len(a.result(method='array')),1),
#low=1, high = 2)
# all_features[:,0] = a.result(method= 'array')
# df = pandas.DataFrame(all_features)
# df.index = a.result(method= 'features')
# df.reset_index(level=0, inplace=True)
# df.columns =["Feature", "Value"]
# pandas.set_option('display.float_format', lambda x: '%.3f' % x)
# return df
FeaturesList = [('Feature', 'Value')]
for i in xrange(len(a.result(method='array'))):
FeaturesList.append((a.result(method='features')[i],
a.result(method='array')[i]))
a = make_table(FeaturesList)
apply_theme('basic')
set_global_style(float_format='%0.5f')
return a