Spaces:
Build error
Build error
Commit ·
f3147aa
1
Parent(s): 991ce48
Update app.py
Browse files18 unmodified lines1920212223242543 unmodified lines6970717218 unmodified linesn_years = st.slider('Years of prediction:', 1, 4)period = n_years * 365@st.cachedef load_data(ticker):data = yf.download(ticker, START, TODAY)data.reset_index(inplace=True)43 unmodified linespredicted_returns = calculate_predicted_returns(selected_stocks)cov_matrix = calculate_cov_matrix(selected_stocks)optimal_allocation = find_optimal18 unmodified lines1920212223242543 unmodified lines697071727318 unmodified linesn_years = st.slider('Years of prediction:', 1, 4)period = n_years * 365@st.cache_datadef load_data(ticker):data = yf.download(ticker, START, TODAY)data.reset_index(inplace=True)43 unmodified linespredicted_returns = calculate_predicted_returns(selected_stocks)cov_matrix = calculate_cov_matrix(selected_stocks)optimal_allocation = find_optimal_allocation(predicted_returns, cov_matrix)
app.py+3-2