Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -178,16 +178,16 @@ if st.sidebar.button('Run Simulation'):
|
|
| 178 |
data = get_stock_data(ticker, start_date, end_date)
|
| 179 |
|
| 180 |
# Debug data
|
| 181 |
-
st.write(f"Data shape: {data.shape}")
|
| 182 |
-
st.write(f"Last few rows: {data.tail()}")
|
| 183 |
|
| 184 |
bootstrap_simulations = bootstrap_simulation(data, days, n_iterations)
|
| 185 |
bootstrap_probabilities = calculate_probabilities(bootstrap_simulations, thresholds)
|
| 186 |
bootstrap_percentiles = calculate_percentiles(bootstrap_simulations)
|
| 187 |
|
| 188 |
# Debug simulation output
|
| 189 |
-
st.write(f"Simulations shape: {bootstrap_simulations.shape}")
|
| 190 |
-
st.write(f"Percentiles shape: {bootstrap_percentiles.shape}")
|
| 191 |
|
| 192 |
fig1, mean_bootstrap_price, median_bootstrap_price, ci_68_bootstrap, ci_95_bootstrap, latest_price = plot_distributions(bootstrap_simulations, data, thresholds, bootstrap_probabilities)
|
| 193 |
fig2 = plot_price_with_cones(data, bootstrap_percentiles, days, thresholds, bootstrap_probabilities)
|
|
|
|
| 178 |
data = get_stock_data(ticker, start_date, end_date)
|
| 179 |
|
| 180 |
# Debug data
|
| 181 |
+
#st.write(f"Data shape: {data.shape}")
|
| 182 |
+
#st.write(f"Last few rows: {data.tail()}")
|
| 183 |
|
| 184 |
bootstrap_simulations = bootstrap_simulation(data, days, n_iterations)
|
| 185 |
bootstrap_probabilities = calculate_probabilities(bootstrap_simulations, thresholds)
|
| 186 |
bootstrap_percentiles = calculate_percentiles(bootstrap_simulations)
|
| 187 |
|
| 188 |
# Debug simulation output
|
| 189 |
+
#st.write(f"Simulations shape: {bootstrap_simulations.shape}")
|
| 190 |
+
#st.write(f"Percentiles shape: {bootstrap_percentiles.shape}")
|
| 191 |
|
| 192 |
fig1, mean_bootstrap_price, median_bootstrap_price, ci_68_bootstrap, ci_95_bootstrap, latest_price = plot_distributions(bootstrap_simulations, data, thresholds, bootstrap_probabilities)
|
| 193 |
fig2 = plot_price_with_cones(data, bootstrap_percentiles, days, thresholds, bootstrap_probabilities)
|