-
Notifications
You must be signed in to change notification settings - Fork 8
EnCluDL(1/4): add comments and docstring of the functions #156
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The example on fMRI data does not render well, for some reason. Can you check that, so that we can merge this PR and proceed to further improvements ?
What do you mean that fMRI does not render well? |
The EncluDL image is ugly with the white area. Something went wrong. |
I added an empirical threshold for filling the gap. |
I am sorry, I was mixing the example 2D and the example fMRI. |
The white colour came from the modification of the aggregation function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The example renders well, thx !
X, y, ward, n_clusters, scaler_sampling=StandardScaler() | ||
) | ||
beta_hat, pval_cdl, _, one_minus_pval_cdl, _ = clustered_inference_pvalue( | ||
X.shape[0], None, ward_, beta_hat, theta_hat, omega_diag | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll have to refactor this to a class (same logic as discussed for DCRT etc.)
Are you planing to do that in a forthcoming PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I plan to refactor all of this in classes in another PR.
I refactor the code of ensemble_clustered_inference and clustered_inference.
This pull request is dependent of the PR #127