You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Output_collection= {} # empty dict in which to store dataframes
@@ -41,7 +37,6 @@
41
37
42
38
rows_of_data=TestData.iloc[0:trial+1] # select all rows of data up to the curren trial; is trial+1 as dataframe includes colu
43
39
44
-
print(rows_of_data)
45
40
#%%
46
41
forindex_strategyinrange(len(strategies)):
47
42
# run current strategy model on data up to current trial
@@ -61,31 +56,18 @@
61
56
Output_collection[strategies[index_strategy]] =pd.concat([Output_collection[strategies[index_strategy]], new_df], ignore_index=True) # add new row to dataframe
62
57
63
58
#%% plot results
59
+
no_Trials=np.size(TestData.TrialIndex)
60
+
64
61
# plotting time series of MAPprobability
65
62
plt.figure(figsize=(10, 5))
66
-
plt.plot(Output_collection['go_right'].MAPprobability, linewidth=0.75) # plots the time series
63
+
plt.plot(Output_collection['go_left'].MAPprobability, linewidth=0.75) # plots the time series
0 commit comments