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
I haven't tested this, but this or something close should convert from the numpy array theta_lclc to a dict theta_lclc_dict:
theta_lclc_dict = []
for l in range(L):
for m in range(C):
for k in range(i,L):
for n in range(C):
c = alphabet[n]
d = alphabet[m]
var_name = f'theta_{l}{c}{k}{d}'
theta_lclc_dict[var_name] = theta_lclc[l,m,k,n]
Hi, would it be possible to output the pairwise thetas (theta_lclc) in a dictionary or pandas dataframe? Thank you!
The text was updated successfully, but these errors were encountered: