Update 'simple_regression.py'
This commit is contained in:
parent
77ff5d4a7e
commit
c85e4e4f47
@ -48,7 +48,7 @@ history = model.fit(
|
|||||||
y_pred = model.predict(test_piece_counts)
|
y_pred = model.predict(test_piece_counts)
|
||||||
|
|
||||||
# Zapis predykcji do pliku
|
# Zapis predykcji do pliku
|
||||||
results = pd.DataFrame({'test_set_piece_count': test_piece_counts.tolist(), 'predicted_price': [a[0].round(2) for a in y_pred.tolist()]})
|
results = pd.DataFrame({'test_set_piece_count': test_piece_counts.tolist(), 'predicted_price': [round(a[0], 2) for a in y_pred.tolist()]})
|
||||||
results.to_csv('lego_reg_results.csv', index=False, header=True)
|
results.to_csv('lego_reg_results.csv', index=False, header=True)
|
||||||
|
|
||||||
# Zapis modelu do pliku
|
# Zapis modelu do pliku
|
||||||
|
Loading…
Reference in New Issue
Block a user