Random Forest Regression in Python – Step 1.) Import Libraries and Import Dataset

with No Comments

#Importing Libraries

import numpy as np
import matplotlib.pyplot as plt
import pandas as pd

# Importing the dataset
dataset = pd.read_csv(‘Random Forest Data.csv’)
X = dataset.iloc[:, 1:2].values
y = dataset.iloc[:, 2].values

 

Leave a Reply