Skip to content

Commit

Permalink
svm regression
Browse files Browse the repository at this point in the history
  • Loading branch information
LordSomen committed Jul 16, 2018
1 parent 61947a7 commit ef4b95e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions SVM/svm_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,14 @@
))
rbf_kernel_svm_clf.fit(X,Y)

#%%
from sklearn.svm import LinearSVR
svm_reg = LinearSVR(epsilon=1.5)
svm_reg.fit(X,Y)

#%%
from sklearn.svm import SVR
svm_poly_reg = SVR(kernel="poly",degree=2,epsilon=0.01,C=100)
svm_poly_reg.fit(X,Y)


0 comments on commit ef4b95e

Please sign in to comment.