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

Get the cluster assignments from Bayesian Mixtures into Polyssifier #42

Open
bbradt opened this issue Mar 25, 2020 · 1 comment
Open
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@bbradt
Copy link
Owner

bbradt commented Mar 25, 2020

Get the cluster-assignment probabilities for each instance, reassign these features to subject instances, and feed data back into polyssifier.

The centroids and assignments fields need to be assigned as part of the fit method (most likely using the predict_proba function), and we need to use the reassign_to_subjects function in the dFNC class to handle the multidimensional output to assign cluster probabilities as subject-level features.

E.g. we get the following from predict_proba

a TOTAL_INSTANCES x NUM_CLUSTERS probability matrix.

this needs to be converted into a
NUM_SUBJECTS x NUM_FEATURES matrix, either by taking the argmax of the probability (converting to hard assignment), or by just horizontally concatenating the probabilities over the subject windows. Alternatively, we can look into modifying polyssifier so that it will classify the following tensor:

NUM_SUBJECTS x NUM_WINDOWS x NUM_CLUSTERS

See the reassign_to_subjects function in the dFNC class for info on how this is done currently for the hard-clustering in dFNC

@bbradt bbradt added bug Something isn't working enhancement New feature or request labels Apr 2, 2020
@bbradt
Copy link
Owner Author

bbradt commented Apr 2, 2020

I believe PR #53 resolves this, but I will leave it open just in case we want to try different ways of connecting the assignments to polyssifier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants