File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ Support Vector Regression (SVR) for multidimensional labels
1414
1515 ``` python
1616import multi_svr
17+ from sklearn import metrics
1718
1819X = [
1920 [0 , 0 ],
3435]
3536
3637# Create SVR
37- regressor = multi_svr.MutilSVR (kernel = ' linear' )
38+ regressor = multi_svr.MultiSVR (kernel = ' linear' )
3839# Fit
3940regressor.fit(X, y)
4041# Predict
Original file line number Diff line number Diff line change 2020]
2121
2222# Create SVR
23- regressor = multi_svr .MutilSVR (kernel = 'linear' )
23+ regressor = multi_svr .MultiSVR (kernel = 'linear' )
2424# Fit
2525regressor .fit (X , y )
2626# Predict
Original file line number Diff line number Diff line change 33from sklearn import svm
44
55
6- class MutilSVR (sklearn .base .BaseEstimator , sklearn .base .RegressorMixin ):
6+ class MultiSVR (sklearn .base .BaseEstimator , sklearn .base .RegressorMixin ):
77 def __init__ (self , ** kwargs ):
88 self .__init_kwargs = kwargs
99
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def test_prediction(self):
2525 ]
2626
2727 # Create SVR
28- regressor = multi_svr .MutilSVR (kernel = 'linear' )
28+ regressor = multi_svr .MultiSVR (kernel = 'linear' )
2929 # Fit
3030 regressor .fit (X , y )
3131 # Predict
You can’t perform that action at this time.
0 commit comments