Menu

Comparing Actual and Predicted Prices

Comparing Actual and Predicted Prices

Create a comparison table to evaluate predictions.

Code

results = pd.DataFrame({
'Actual Price': Y_test,
'Predicted Price': predictions
})
results.head()

Explanation

This comparison allows us to observe how closely the predicted prices match the actual closing prices.