-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathexample.py
More file actions
51 lines (30 loc) · 932 Bytes
/
example.py
File metadata and controls
51 lines (30 loc) · 932 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
from tuning import estimate_from_array
X = 1
y = 2
b, r2 = estimate_from_array(X, y)
print('b:%s' % b)
print('r2:%s' % r2)
# # reza's version
# from tuning import estimate
# b, r2 = estimate(X, y)
# b, r2 = estimate('file1.csv', 'file2.csv')
# # daniel's version
# from tuning import estimate, convert
# X, y = convert('file1.csv', 'file2.csv')
# b, r2 = estimate(X, y)
# alex's version
# # pandas version
# from tuning import estimate
# b, r2 = estimate('file1.csv', 'file2.csv')
# # freeman's version
# from tuning import estimate
# from pandas import read_csv
# X = read_csv('file1.csv')
# y = read_csv('file2.csv')
# b, r2 = estimate(X, y)
# # from numpy import loadtxt, corrcoef
# # X = loadtxt('test/resources/X.csv', delimiter=',')
# # y = loadtxt('test/resources/y.csv', delimiter=',')
# #algorithm = LinearNonlinear(penalty='lasso', alpha=0, delay=0)
# #model = algorithm.fit(X, y)
# #model.predict(X)