How to Solve NameError: name 'PCA' is not defined -- sklearn
Solution: Import the 'PCA, KernelPCA' module
To Solve the error, add the following line to the top of your code.
from sklearn import PCA
For more information:
Python PCA sklearn
To Solve the error, add the following line to the top of your code.
from sklearn import PCA
For more information:
Python PCA sklearn