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
- Renaming column names in Pandas
- How to deal with SettingWithCopyWarning in Pandas
- How to deal with SettingWithCopyWarning in Pandas
- How to iterate over rows in a DataFrame in Pandas
- Writing a pandas DataFrame to CSV file
- No module named ‘sklearn.cross_validation’
- Adding new column to existing DataFrame in Python pandas
- 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
- How can I use the apply() function for a single column?
- Convenient way to deal with ValueError: cannot reindex from a duplicate axis
- “Series objects are mutable and cannot be hashed” error
- 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’)
- 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”
- 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
- 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
- Convert pandas dataframe to NumPy array
- Arrays used as indices must be of integer (or boolean) type
- Error:cannot convert float NaN to integer in pandas
- Replacing column values in a pandas DataFrame
- 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
- 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
- ‘DataFrame’ object has no attribute ‘sort’
- TypeError: cannot unpack non-iterable int objec
- pandas: filter rows of DataFrame with operator chaining
- Pandas how to use pd.cut()
- How to Read .txt in Pandas
- Get a list from Pandas DataFrame column headers
- Get total of Pandas column
- Type error: cannot convert the series to
- How to check whether a pandas DataFrame is empty?
- Convert columns to string in Pandas
- Change column type in pandas
- Shuffle DataFrame rows
- What is the difference between sparse_categorical_crossentropy and categorical_crossentropy?
- Python: pandas merge multiple dataframes
- How to load a tsv file into a Pandas DataFrame?
- How to count the NaN values in a column in pandas DataFrame
- How to iterate over columns of pandas dataframe to run regression
- JSON to pandas DataFrame
- Converting between datetime and Pandas Timestamp objects
- Pandas – DataFrame object is not callable
- Creating a Pandas DataFrame from a Numpy array: How do I specify the index column and column headers?
- Convert pandas data frame to series
- Converting strings to floats in a DataFrame
- Get first row value of a given column
- How to filter Pandas dataframe using ‘in’ and ‘not in’ like in SQL
- How to add an empty column to a dataframe?
- How to apply a function to two columns of Pandas dataframe
- Pandas long to wide reshape, by two variables
- What is the meaning of ‘for _ in range()
- Convert categorical data in pandas dataframe
- Difference between scikit-learn and sklearn
- pandas create new column based on values from other columns / apply a function of multiple columns, row-wise
- SettingWithCopyWarning even when using .loc[row_indexer,col_indexer] = value
- OSError: Initializing from file failed on csv in Pandas
- Data type conversion error: ValueError: Cannot convert non-finite values (NA or inf) to integer
- AttributeError: Can only use .str accessor with string values, which use np.object_ dtype in pandas
- Get Confusion Matrix From a Keras Multiclass Model
- Insert a row to pandas dataframe
- Python Pandas ValueError Arrays Must be All Same Length
- How to save a Seaborn plot into a file
- Subtract two columns in dataframe
- pandas DataFrame: replace nan values with average of columns
- Plot correlation matrix using pandas
- Pandas error “Can only use .str accessor with string values”
- Plotting multiple lines, in different colors, with pandas dataframe
- TypeError: cannot concatenate a non-NDFrame object
- Rename specific column(s) in pandas
- How to convert column with dtype as object to string in Pandas Dataframe
- Pandas: sum up multiple columns into one column without last column
- python pandas remove duplicate columns
- matplotlib: plot multiple columns of pandas data frame on the bar chart
- Concat DataFrame Reindexing only valid with uniquely valued Index objects
- Move column by name to front of table in pandas
- how to check which version of nltk, scikit learn installed?
- Pandas unstack problems: ValueError: Index contains duplicate entries, cannot reshape
- Python: Convert timedelta to int in a dataframe
- Calculate weighted average using a pandas/dataframe
- TypeError: fit() missing 1 required positional argument: ‘y’
- ValueError: Must pass DataFrame with boolean values only
- Extracting specific selected columns to new DataFrame as a copy