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