-
-
Notifications
You must be signed in to change notification settings - Fork 318
Closed
Labels
good first issueGood for newcomersGood for newcomers
Description
Hey!
After doing the fit:
// We fit the model from the dataset setting some options
let gmm = GaussianMixtureModel::params(n_clusters)
.n_runs(10)
.tolerance(1e-4)
.with_rng(rng)
.fit(&dataset).expect("GMM fitting");
// Then we can get dataset membership information, targets contain **cluster indexes**
// corresponding to the cluster infos in the list of GMM means and covariances
let blobs_dataset = gmm.predict(dataset);
Can I get the probability of it belonging to one of the clusters? It will assign it to the cluster with the highest probability (I assume) however, I want to only assign if the probability is higher than a specific threshold.
I'm not familiar with linfa at all, so perhaps there is a standard way of doing this.
Thanks for building all this!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers