new
This commit is contained in:
parent
38b54f89b9
commit
27f16b3dff
33
app.py
33
app.py
|
|
@ -415,6 +415,39 @@ if df is not None and model is not None and scaler is not None:
|
||||||
st.markdown("</div>", unsafe_allow_html=True)
|
st.markdown("</div>", unsafe_allow_html=True)
|
||||||
|
|
||||||
st.markdown("<div class='card'>", unsafe_allow_html=True)
|
st.markdown("<div class='card'>", unsafe_allow_html=True)
|
||||||
|
|
||||||
|
#Test
|
||||||
|
st.subheader("📈 Grafik Detail Prediksi")
|
||||||
|
|
||||||
|
fig2, ax2 = plt.subplots(figsize=(12, 5))
|
||||||
|
|
||||||
|
ax2.plot(
|
||||||
|
future_dates,
|
||||||
|
future_predictions.flatten(),
|
||||||
|
marker='o',
|
||||||
|
linewidth=2.5
|
||||||
|
)
|
||||||
|
|
||||||
|
ax2.set_title(
|
||||||
|
"Grafik Detail Hasil Prediksi Harga Ethereum",
|
||||||
|
fontsize=14,
|
||||||
|
fontweight="bold"
|
||||||
|
)
|
||||||
|
|
||||||
|
ax2.set_xlabel("Tanggal")
|
||||||
|
ax2.set_ylabel("Harga Prediksi (USD)")
|
||||||
|
|
||||||
|
ax2.grid(True, alpha=0.3)
|
||||||
|
|
||||||
|
plt.xticks(rotation=45)
|
||||||
|
plt.tight_layout()
|
||||||
|
|
||||||
|
st.pyplot(fig2)
|
||||||
|
|
||||||
|
st.markdown("</div>", unsafe_allow_html=True)
|
||||||
|
|
||||||
|
st.markdown("<div class='card'>", unsafe_allow_html=True)
|
||||||
|
|
||||||
st.subheader("🧾 Tabel Detail Prediksi")
|
st.subheader("🧾 Tabel Detail Prediksi")
|
||||||
prediction_table_df = pd.DataFrame({
|
prediction_table_df = pd.DataFrame({
|
||||||
"Tanggal": [d.strftime("%Y-%m-%d") for d in future_dates],
|
"Tanggal": [d.strftime("%Y-%m-%d") for d in future_dates],
|
||||||
|
|
|
||||||
|
|
@ -905,4 +905,7 @@ Date,Close,High,Low,Open,Volume
|
||||||
2026-06-22,1726.5108642578125,1776.8321533203125,1704.5166015625,1704.6304931640625,13584368622
|
2026-06-22,1726.5108642578125,1776.8321533203125,1704.5166015625,1704.6304931640625,13584368622
|
||||||
2026-06-23,1665.436767578125,1733.6123046875,1638.253173828125,1726.519775390625,10431438278
|
2026-06-23,1665.436767578125,1733.6123046875,1638.253173828125,1726.519775390625,10431438278
|
||||||
2026-06-24,1619.9249267578125,1687.4923095703125,1551.4842529296875,1665.309814453125,14059894232
|
2026-06-24,1619.9249267578125,1687.4923095703125,1551.4842529296875,1665.309814453125,14059894232
|
||||||
2026-06-26,1556.2900390625,1568.429443359375,1556.8143310546875,1564.8594970703125,15403906048
|
2026-06-25,1564.816650390625,1656.646484375,1531.7803955078125,1619.8853759765625,15976182558
|
||||||
|
2026-06-26,1576.6160888671875,1590.2000732421875,1510.505859375,1564.6136474609375,15272225856
|
||||||
|
2026-06-27,1571.5882568359375,1607.865966796875,1561.972900390625,1576.5911865234375,6111411513
|
||||||
|
2026-06-28,1579.5999755859375,1582.509033203125,1561.6748046875,1571.6817626953125,6003073536
|
||||||
|
|
|
||||||
|
Loading…
Reference in New Issue