You are on page 1of 1

1 Problem Predicting Car price

X-parameter | Y-price

Car price based on other car


2 Dataset numerical parameters

(10, 2)

dataset.shape
3 Summarize Dataset
dataset.head(5)

Input - Taking only Numerical Values

dataset.select_dtypes(exclude=['
object']).columns

4 Segregate Dataset into X & Y Output

Car Price Prediction Y = dataset['price']


using RANDOM FOREST
REGRESSION
Scaling our Independent
5 Variables(X)

Splitting dataset to train & test


6 for Validation train_test_split

7 Algorithm RANDOM FOREST

8 Train using Random Forest

9 Prediction & Validation r2_score

You might also like