Open MyReason92 opened 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()
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()