Spaces:
Running
Running
Carsten Stahl
commited on
Commit
•
d89670a
1
Parent(s):
b7cd1b1
Included message about the method and parameter used in the optimization
Browse files- utilities/py/composer.py +5 -0
utilities/py/composer.py
CHANGED
@@ -23,6 +23,7 @@ class Composer:
|
|
23 |
self.user_input.opt_method_selection()
|
24 |
self.user_input.start_date()
|
25 |
self.user_input.initial_investment()
|
|
|
26 |
|
27 |
def render_results(self):
|
28 |
"""
|
@@ -52,10 +53,14 @@ class Composer:
|
|
52 |
|
53 |
# print disclaimer
|
54 |
first_date_available = portfolio_opt.stock_data.index[0]
|
|
|
|
|
55 |
|
56 |
st.write(
|
57 |
f"Note: Due to unavailability of full data, this Analysis uses data from the date: {first_date_available}")
|
58 |
|
|
|
|
|
59 |
# show asset weights, portfolio performance and the pie chart
|
60 |
st.dataframe(company_asset_weights, use_container_width=True)
|
61 |
|
|
|
23 |
self.user_input.opt_method_selection()
|
24 |
self.user_input.start_date()
|
25 |
self.user_input.initial_investment()
|
26 |
+
|
27 |
|
28 |
def render_results(self):
|
29 |
"""
|
|
|
53 |
|
54 |
# print disclaimer
|
55 |
first_date_available = portfolio_opt.stock_data.index[0]
|
56 |
+
opt_header = f"Used {user_input_data.opt_method}" if user_input_data.ef_parameter is None else f"Used {user_input_data.opt_method} with {user_input_data.ef_parameter}"
|
57 |
+
|
58 |
|
59 |
st.write(
|
60 |
f"Note: Due to unavailability of full data, this Analysis uses data from the date: {first_date_available}")
|
61 |
|
62 |
+
st.write(opt_header)
|
63 |
+
|
64 |
# show asset weights, portfolio performance and the pie chart
|
65 |
st.dataframe(company_asset_weights, use_container_width=True)
|
66 |
|