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

How to utilize prob-related methods of ECM classifier #178

Open
Ramin1368 opened this issue Jun 21, 2022 · 0 comments
Open

How to utilize prob-related methods of ECM classifier #178

Ramin1368 opened this issue Jun 21, 2022 · 0 comments

Comments

@Ramin1368
Copy link

Hi

I am utilizing the ECM classifier as my unsupervised classifier for my problem but I keep getting error while calling them that I do not understand why:
ecm.fit(df_feature_vectors)
log_m_probablity = ecm.log_m_probs

which gives the following error: ValueError: Expected input with 6 features, got 5 instead
while my feature_vector has only 5 features. and also upon using ecm.prob, got the following error:
ValueError: Expected input with 11 features, got 5 instead

Interestingly, every time, I run this, it expects 5 more features like expected 16 features, 21 features, .....

what is the solution in order to use these methods such as log_m_probs, prob, log_u_probs, etc.???
Also one more question regarding this is that as I was employing the prodict method: links_pred = ecm.predict(df_feature_vectors) where df_feature_vectors = comparer.compute(All_Index_Pairs, df), it threw error such that the labels had to be either one or zero and I had to use binarizer to make the labels either one or zero in order to avoid the error. why can't the labels be between zero and one?

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

1 participant