It seems the task you are trying to solve is regression: predicting the price. However, you are training a classification model, that assigns a class to every input.
ROC-AUC score is meant for classification problems where the output is the probability of the input belonging to a class. If you do a multi-class classification, then you can compute the score for each class independently.
Moreover, the predict
method returns a discrete class, not a probability. Let’s imagine you do a binary classification and have only one example, it should be classified as False
. If your classifier yields a probability of 0.7, the ROC-AUC value is 1.0-0.7=0.3. If you use the predict
method, the ROC-AUC value will be 1.0-1.0=0.0, which won’t tell you much.
Related Posts:
- ValueError: Unknown label type: ‘continuous’
- 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
- Got continuous is not supported error in RandomForestRegressor
- how to sort pandas dataframe from one column
- Renaming column names in Pandas
- How to reset index in a pandas dataframe? [duplicate]
- Delete a column from a Pandas DataFrame
- How to deal with SettingWithCopyWarning in Pandas
- How to deal with SettingWithCopyWarning in Pandas
- Constructing pandas DataFrame from values in variables gives “ValueError: If using all scalar values, you must pass an index”
- How to iterate over rows in a DataFrame in Pandas
- pandas read_json: “If using all scalar values, you must pass an index”
- How to iterate over rows in a DataFrame in Pandas
- Writing a pandas DataFrame to CSV file
- Truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()
- Truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()
- Writing a pandas DataFrame to CSV file
- No module named ‘sklearn.cross_validation’
- Adding new column to existing DataFrame in Python pandas
- Modifing data while using iterrows() does not work
- ImportError: No module named pandas
- How to change the order of DataFrame columns?
- How to change the order of DataFrame columns?
- ImportError: No module named pandas. Pandas installed pip
- What does `ValueError: cannot reindex from a duplicate axis` mean?
- Pandas DataFrame Groupby two columns and get counts
- How can I use the apply() function for a single column?
- How to show all columns’ names on a large pandas dataframe?
- Convenient way to deal with ValueError: cannot reindex from a duplicate axis
- How to groupby based on two columns in pandas?
- How to fix IndexError: invalid index to scalar variable
- “Series objects are mutable and cannot be hashed” error
- How to deal with SettingWithCopyWarning in Pandas
- Converting list to numpy array
- Merging dataframes on index with pandas
- sklearn error ValueError: Input contains NaN, infinity or a value too large for dtype(‘float64’)
- ImportError: No module named pandas
- TypeError: ‘Series’ objects are mutable, thus they cannot be hashed problemwith column
- sklearn error ValueError: Input contains NaN, infinity or a value too large for dtype(‘float64’)
- Create a Pandas Dataframe by appending one row at a time
- How to replace NaN values by Zeroes in a column of a Pandas Dataframe?
- ValueError: Length of values does not match length of index | Pandas DataFrame.unique()
- 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?
- Convert Python dict into a dataframe
- re.sub erroring with “Expected string or bytes-like object”
- Creating an empty Pandas DataFrame, then filling it?
- How do I select rows from a DataFrame based on column values?
- How do I select rows from a DataFrame based on column values?
- DataFrame constructor not properly called! error
- ModuleNotFoundError: No module named ‘sklearn’
- Pandas group-by and sum
- How do I get the row count of a Pandas DataFrame?
- Python pandas groupby aggregate on multiple columns, then pivot
- Python Pandas Counting the Occurrences of a Specific value
- Convert pandas dataframe to NumPy array
- Count unique values per groups with Pandas
- DataFrame constructor not properly called
- Convert pandas Series to DataFrame
- Arrays used as indices must be of integer (or boolean) type
- Error:cannot convert float NaN to integer in pandas
- ImportError: Missing required dependencies [‘numpy’]
- How can I plot a confusion matrix? [duplicate]
- Replacing column values in a pandas DataFrame
- ModuleNotFoundError: No module named ‘sklearn’
- Error”Can only compare identically-labeled Series objects” and sort_index
- Expected 2D array, got 1D array instead error
- How to iterate over rows in a DataFrame in Pandas
- Pandas group-by and sum
- How do I get the row count of a Pandas DataFrame?
- How can I one hot encode in Python?
- Python Pandas – Missing required dependencies [‘numpy’] 1
- Pandas “Can only compare identically-labeled DataFrame objects” error
- Pandas: ValueError: cannot convert float NaN to integer
- Error in Python script “Expected 2D array, got 1D array instead:”?
- Get list from pandas dataframe column or row?
- pandas DataFrame “no numeric data to plot” error
- ValueError: Length of values does not match length of index | Pandas DataFrame.unique()
- ‘DataFrame’ object has no attribute ‘sort’
- What’s the difference between torch.stack() and torch.cat() functions?
- ‘DataFrame’ object has no attribute ‘sort’
- pandas: merge (join) two data frames on multiple columns
- TypeError: cannot unpack non-iterable int objec
- Pandas DataFrame column to list
- Rename Pandas DataFrame Index
- Why do I get: “Length of values does not match length of index” error?
- Cross Entropy in PyTorch
- pandas: filter rows of DataFrame with operator chaining
- why should I make a copy of a data frame in pandas
- ‘DataFrame’ object has no attribute ‘sort’
- How to normalize a NumPy array to a unit vector?
- Pandas, merging two dataframes on multiple columns, and multiplying result
- Convert DataFrame column type from string to datetime, dd/mm/yyyy format
- Pandas how to use pd.cut()
- How to customize a scatter matrix to see all titles?
- How to Read .txt in Pandas
- Get a list from Pandas DataFrame column headers
- What is dtype(‘O’), in pandas?