Accuracy is a classification metric. You can’t use it with a regression. See the documentation for info on the various metrics.
Related Posts:
- No module named ‘sklearn.cross_validation’
- ValueError: Unknown label type: ‘continuous’
- Converting list to numpy array
- sklearn error ValueError: Input contains NaN, infinity or a value too large for dtype(‘float64’)
- sklearn error ValueError: Input contains NaN, infinity or a value too large for dtype(‘float64’)
- TypeError: cannot perform reduce with flexible type
- sklearn error ValueError: Input contains NaN, infinity or a value too large for dtype(‘float64’)
- How to normalize a NumPy array to a unit vector?
- ModuleNotFoundError: No module named ‘sklearn’
- Arrays used as indices must be of integer (or boolean) type
- How can I plot a confusion matrix? [duplicate]
- ModuleNotFoundError: No module named ‘sklearn’
- How to normalize a NumPy array to a unit vector?
- Arrays used as indices must be of integer (or boolean) type
- sklearn Logistic Regression “ValueError: Found array with dim 3. Estimator expected <= 2."
- RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility
- Difference between scikit-learn and sklearn
- Get Confusion Matrix From a Keras Multiclass Model
- What’s the difference between scikit-learn and tensorflow? Is it possible to use them together?
- Scikit-learn GridSearch giving “ValueError: multiclass format is not supported” error
- ImportError in importing from sklearn: cannot import name check_build
- Can sklearn random forest directly handle categorical features?
- ImportError: No module named model_selection
- how to check which version of nltk, scikit learn installed?
- Got continuous is not supported error in RandomForestRegressor
- ValueError: multiclass format is not supported
- How can I reverse a list in Python?
- How to use filter, map, and reduce in Python 3
- What does enumerate() mean?
- Does Python have a ternary conditional operator?
- What is the difference between Python’s list methods append and extend?
- Iterating over dictionaries using ‘for’ loops
- how to sort pandas dataframe from one column
- Understanding slice notation
- How do I sort a dictionary by value?
- How do I sort a dictionary by value?
- How do I read CSV data into a record array in NumPy?
- Basic explanation of python functions
- TypeError: ‘Series’ objects are mutable, thus they cannot be hashed problemwith column
- How to rename a file using Python
- Cosine Similarity between 2 Number Lists
- How to install python3 version of package via pip on Ubuntu?
- django: TypeError: ‘tuple’ object is not callable
- ValueError: Length of values does not match length of index | Pandas DataFrame.unique()
- unhashable type: ‘dict’ Type Error [duplicate]
- Save plot to image file instead of displaying it using Matplotlib
- How to get coverage reporting when testing a pytest plugin?
- TypeError: method() takes 1 positional argument but 2 were given
- is not JSON serializable
- Tkinter understanding mainloop
- How can I get a list shape without using numpy?
- AttributeError: ‘str’ object has no attribute ‘append’
- python socket.error: [Errno 98] Address already in use
- How to read a .xlsx file using the pandas Library in iPython?
- django import error – No module named core.management
- How to change a ‘LinearSegmentedColormap’ to a different distribution of color?
- Using python’s eval() vs. ast.literal_eval()
- How can I stop a While loop?
- Pandas: change data type of Series to String
- Python [Errno 98] Address already in use
- How do you call an instance of a class in Python?
- Flask ImportError: No Module Named Flask
- How do you use subprocess.check_output() in Python?
- ImportError: libcuda.so.1: cannot open shared object file
- Python import csv to list
- python SyntaxError: invalid syntax %matplotlib inline
- Count the number of occurrences of a character in a string
- Why does using from __future__ import print_function breaks Python2-style print?
- Download large file in python with requests
- Count unique values per groups with Pandas [duplicate]
- Pytesseract : “TesseractNotFound Error: tesseract is not installed or it’s not in your path”, how do I fix this?
- Pointers in Python?
- Django – no such table exception
- How to make a histogram from a list of data
- Numpy extract submatrix
- How to check if a column exists in Pandas
- How to get line count of a large file cheaply in Python?
- Getting
with Python http requests instead of INT - What does “Symbol not found / Expected in: flat namespace” actually mean?
- Windows path in Python
- When to use ‘raise NotImplementedError’?
- TypeError: coercing to Unicode: need string or buffer, list found
- environment variables PYSPARK_PYTHON and PYSPARK_DRIVER_PYTHON
- Find the unique values in a column and then sort them
- How to install discord.py rewrite?
- Python: urllib.error.HTTPError: HTTP Error 404: Not Found
- Adding +1 to a variable inside a function
- Difference between data type ‘datetime64[ns]’ and ‘
- Merging two DataFrames
- CSV new-line character seen in unquoted field error
- Creating a truth table for any expression in Python
- Cannot concatenate ‘str’ and ‘float’ objects?
- Python Text Menu Infinite Loop
- Install pip for python 3.5
- How do I represent and work with n-bit vectors in Python?
- How to repeat individual characters in strings in Python
- ValueError: Cannot set a frame with no defined index and a value that cannot be converted to a Series
- SMTP AUTH extension not supported by server
- How to install PyQt4 on Windows using pip?
- How to install PyQt4 on Windows using pip?