Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpretable dataframe for theta_lclc #35

Open
sofeasible opened this issue Sep 20, 2023 · 2 comments
Open

Interpretable dataframe for theta_lclc #35

sofeasible opened this issue Sep 20, 2023 · 2 comments

Comments

@sofeasible
Copy link

Hi, would it be possible to output the pairwise thetas (theta_lclc) in a dictionary or pandas dataframe? Thank you!

@jbkinney
Copy link
Owner

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]

@sofeasible
Copy link
Author

Thanks, that works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants