When I run classifier.py
in the openface demos directory using:
classifier.py train ./generated-embeddings/
I get the following error message:
--> from sklearn.lda import LDA
ModuleNotFoundError: No module named 'sklearn.lda'.
I think to have correctly installed sklearn.
What could be the reason for this message?
1) First check your version
import sklearn
sklearn.__version__
2) Then use something like the following depending on the version that you have installed
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA
Documentation here: