Skip to content

Commit

Permalink
add more init from gmm
Browse files Browse the repository at this point in the history
  • Loading branch information
maxibor committed Oct 29, 2019
1 parent 6f3fa07 commit 508e79e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sourcepredictlib/ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def gmm_classification(self, seed):
train_t_features, test_t_features, train_t_labels, test_t_labels = train_test_split(
self.ref_t.drop('labels', axis=1), self.ref_t.loc[:, 'labels'], test_size=0.2, random_state=seed)

gmm_c = GMMClassifier(n_components=4, random_state=seed)
gmm_c = GMMClassifier(n_components=4, n_init=10, random_state=seed)
gmm_c.fit(train_t_features, train_t_labels)

y_pred = gmm_c.predict(test_t_features)
Expand Down

0 comments on commit 508e79e

Please sign in to comment.