Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

cross_val_score scoring parameters types

>>> from sklearn import svm, cross_validation, datasets
>>> iris = datasets.load_iris()
>>> X, y = iris.data, iris.target
>>> model = svm.SVC()
>>> cross_validation.cross_val_score(model, X, y, scoring='wrong_choice')
Traceback (most recent call last):
ValueError: 'wrong_choice' is not a valid scoring value. Valid options are ['accuracy', 'adjusted_rand_score', 'average_precision', 'f1', 'log_loss', 'mean_absolute_error', 'mean_squared_error', 'precision', 'r2', 'recall', 'roc_auc']
Comment

PREVIOUS NEXT
Code Example
Python :: python convert docx to pdf 
Python :: a softmax function 
Python :: Sort for Linked Lists python 
Python :: python indent print 
Python :: seaborn set figure size 
Python :: enumerate word python 
Python :: python create pem file 
Python :: rename files in python 
Python :: iterrows pd 
Python :: Python NumPy stack Function Example with 1d array 
Python :: read csv pandas nrow 
Python :: management command in django 
Python :: python code for binary search tree 
Python :: Python NumPy asfarray Function Example Tuple to float type array 
Python :: Check instance has an attribute in python 
Python :: how to make python script run forever 
Python :: django pycharm 
Python :: Python program to read a random line from a file 
Python :: video timestamp opencv python 
Python :: override get_queryset django with url parameters 
Python :: qdate to date 
Python :: multiple model search in django rest framework 
Python :: Fastest way to Convert Integers to Strings in Pandas DataFrame 
Python :: selenium webdriver without opening browser 
Python :: pubg python 
Python :: plt.semilogx 
Python :: for in print 
Python :: use get method request html page python 
Python :: pandas get higher value of column 
Python :: python argsort 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =