Update 'simple_regression.py'

This commit is contained in:
Kacper Dudzic 2022-04-24 23:03:46 +02:00
parent 7c0952d46c
commit 59f8252fe1

View File

@ -48,8 +48,8 @@ history = model.fit(
y_pred = model.predict(test_piece_counts)
# Zapis predykcji do pliku
results = pd.DataFrame({"test_set_piece_count": test_piece_counts.tolist(), "predicted_price": [a[0] for a in y_pred.tolist()]})
results.to_csv(r'lego_reg_results.csv', index=False, header=True)
results = pd.DataFrame({'test_set_piece_count': test_piece_counts.tolist(), 'predicted_price': [a[0] for a in y_pred.tolist()]})
results.to_csv('lego_reg_results.csv', index=False, header=True)
# Zapis modelu do pliku
model.save('lego_reg_model')