mdified with round
Browse files
app.py
CHANGED
|
@@ -103,8 +103,9 @@ plt.legend()
|
|
| 103 |
st.pyplot(fig2)
|
| 104 |
|
| 105 |
# also printing the next day closing price
|
| 106 |
-
last_predicted_price = float(y_pred[-1])
|
| 107 |
-
actual_closing_price = float(y_test[-1])
|
|
|
|
| 108 |
# ls = "Predicted Upcoming Trading Day Closing Price: "
|
| 109 |
st.subheader("Predicted Upcoming Trading Day Closing Price: ")
|
| 110 |
st.write(last_predicted_price)
|
|
|
|
| 103 |
st.pyplot(fig2)
|
| 104 |
|
| 105 |
# also printing the next day closing price
|
| 106 |
+
last_predicted_price = round(float(y_pred[-1]),2)
|
| 107 |
+
actual_closing_price = round(float(y_test[-1]),2)
|
| 108 |
+
|
| 109 |
# ls = "Predicted Upcoming Trading Day Closing Price: "
|
| 110 |
st.subheader("Predicted Upcoming Trading Day Closing Price: ")
|
| 111 |
st.write(last_predicted_price)
|