Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.97 KB | None | 0 0
  1. In [13]: clf = svm.SVC(decision_function_shape='ovo', probability=True, gamma=0.0001, C=10000)          
  2.                                                                                                        
  3. In [14]: clf.fit(X_train, Y_train)    
  4.  
  5. In [28]: dec = clf.predict_proba(X_test)
  6.  
  7. In [29]: dec
  8. Out[29]:
  9. array([[ 0.08118061,  0.06775786,  0.10626706, ...,  0.05621558,
  10.          0.1065483 ,  0.08721614],
  11.        [ 0.45595692,  0.4307571 ,  0.00662802, ...,  0.01673492,
  12.          0.01847479,  0.02867603],
  13.        [ 0.45613055,  0.4464606 ,  0.00274494, ...,  0.02492393,
  14.          0.01199296,  0.01798211],
  15.        ...,
  16.        [ 0.48795712,  0.41194125,  0.00385113, ...,  0.01506888,
  17.          0.01728691,  0.01955625],
  18.        [ 0.44479318,  0.46415402,  0.0179153 , ...,  0.02663468,
  19.          0.00992754,  0.0051102 ],
  20.        [ 0.49204286,  0.38378189,  0.00382213, ...,  0.03008399,
  21.          0.02305889,  0.03207179]])
  22.  
  23. In [30]: dec.shape
  24. Out[30]: (1000, 9)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement