Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -219,7 +219,7 @@ def create_random_portfolio(Total_Sample_Size, raw_baselines, field_growth):
|
|
219 |
# Generate random portfolios
|
220 |
rng = np.random.default_rng()
|
221 |
total_elements = [1, 1, 1, 1, 1, 1, 1, 1]
|
222 |
-
keys = ['
|
223 |
|
224 |
all_choices = [rng.choice(ranges_dict[f"{key}_range"], size=(Total_Sample_Size, elem)) for key, elem in zip(keys, total_elements)]
|
225 |
RandomPortfolio = pd.DataFrame(np.hstack(all_choices), columns=['PG', 'SG', 'SF', 'PF', 'C', 'G', 'F', 'UTIL'])
|
|
|
219 |
# Generate random portfolios
|
220 |
rng = np.random.default_rng()
|
221 |
total_elements = [1, 1, 1, 1, 1, 1, 1, 1]
|
222 |
+
keys = ['pg', 'sg', 'sf', 'pf', 'c', 'g', 'f', 'util']
|
223 |
|
224 |
all_choices = [rng.choice(ranges_dict[f"{key}_range"], size=(Total_Sample_Size, elem)) for key, elem in zip(keys, total_elements)]
|
225 |
RandomPortfolio = pd.DataFrame(np.hstack(all_choices), columns=['PG', 'SG', 'SF', 'PF', 'C', 'G', 'F', 'UTIL'])
|