MyReason92 / Project01

0 stars 0 forks source link

Visualization to Compare Models #13

Open MyReason92 opened 4 months ago

MyReason92 commented 4 months ago

def plot_model_comparison(baseline_model, new_model, data): baseline_predictions = baseline_model.predict(data) new_model_predictions = new_model.predict(data) plt.figure(figsize=(10,5)) plt.plot(data, baseline_predictions, label='Baseline Model') plt.plot(data, new_model_predictions, label='New Model') plt.legend() plt.show()