File tree Expand file tree Collapse file tree 2 files changed +1
-34
lines changed Expand file tree Collapse file tree 2 files changed +1
-34
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ install:
2424 - pip install coveralls
2525
2626script :
27- - coverage run --source=nwtgck_hello_test setup.py test
27+ - coverage run --source=src setup.py test
2828
2929after_success :
3030 - coveralls
Original file line number Diff line number Diff line change @@ -41,36 +41,3 @@ def predict(self, X):
4141
4242 pred = np .column_stack (tuple (preds ))
4343 return pred
44-
45-
46-
47-
48- if __name__ == '__main__' :
49- from sklearn import metrics
50- X = [
51- [0 , 0 ],
52- [0 , 10 ],
53- [1 , 10 ],
54- [1 , 20 ],
55- [1 , 30 ],
56- [1 , 40 ]
57- ]
58-
59- y = [
60- [0 , 0 ],
61- [0 , 10 ],
62- [2 , 10 ],
63- [2 , 20 ],
64- [2 , 30 ],
65- [2 , 40 ]
66- ]
67-
68- regressor = MutilSVR (kernel = 'linear' )
69-
70- regressor .fit (X , y )
71-
72- pred_y = regressor .predict (X )
73- errs = metrics .mean_squared_error (y , pred_y , multioutput = 'raw_values' )
74-
75- print ('pred_y:' , pred_y )
76- print ('errs:' , errs )
You can’t perform that action at this time.
0 commit comments