← Back to all experiments

ClassificationAdvancedPCAGaussian Naive Bayes
PCA + Naive Bayes Faces
Classifies Olivetti faces using PCA + Gaussian Naive Bayes.
Key highlights
- Reduces 4096 features to 50
- Evaluates accuracy on holdout set
- Shows sample predictions
Metrics
Accuracy
Outputs

Sample prediction visual

Additional sample prediction
Code snapshot
Key lines that anchor the experiment workflow.
pca = PCA(n_components=50)
X_pca = pca.fit_transform(X)
nb_classifier.fit(X_train, y_train)Next steps
Want to explore further? Try the full gallery or open the raw script to tweak parameters.