Update 'simple_regression.py'
This commit is contained in:
parent
7c0952d46c
commit
59f8252fe1
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user