Skip to content

Commit c22575f

Browse files
committed
[fix] Fix to import this project as 'multi_svr'
1 parent 44c02d5 commit c22575f

File tree

3 files changed

+0
-32
lines changed

3 files changed

+0
-32
lines changed

src/multi_svr.py renamed to multi_svr/__init__.py

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -43,34 +43,3 @@ def predict(self, X):
4343
return pred
4444

4545

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)

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from setuptools import setup, find_packages
66
import sys
77

8-
sys.path.append('./src')
98
sys.path.append('./tests')
109

1110
setup(

src/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)