{"id":16428212,"url":"https://github.com/nazanin1369/eignfaces","last_synced_at":"2026-06-10T22:31:37.965Z","repository":{"id":77814437,"uuid":"71492241","full_name":"Nazanin1369/eignFaces","owner":"Nazanin1369","description":"Faces recognition example using eigenfaces and SVMs","archived":false,"fork":false,"pushed_at":"2016-10-22T02:57:53.000Z","size":323,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-25T06:33:25.146Z","etag":null,"topics":["classification-report","eigenfaces","machine-learning","pca"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nazanin1369.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-20T18:28:57.000Z","updated_at":"2020-09-01T06:53:39.000Z","dependencies_parsed_at":"2023-06-04T19:45:16.890Z","dependency_job_id":null,"html_url":"https://github.com/Nazanin1369/eignFaces","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Nazanin1369/eignFaces","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nazanin1369%2FeignFaces","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nazanin1369%2FeignFaces/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nazanin1369%2FeignFaces/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nazanin1369%2FeignFaces/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nazanin1369","download_url":"https://codeload.github.com/Nazanin1369/eignFaces/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nazanin1369%2FeignFaces/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34174148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["classification-report","eigenfaces","machine-learning","pca"],"created_at":"2024-10-11T08:15:33.668Z","updated_at":"2026-06-10T22:31:37.940Z","avatar_url":"https://github.com/Nazanin1369.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"## eignFaces\n\n### Compute a PCA (eigenfaces) on the face dataset\n    n_samples: 760\n    n_features: 1850\n    n_classes: 3\n\n### Extracting the top 150 eigenfaces from 570 faces\n    done in 0.157s\n\n### Projecting the input data on the eigenfaces orthonormal basis\n    done in 0.017s\n\n### Calculationg PCA components' Variance:\n    Variance explained by the first principal component:  0.18954512666\n    Variance explained by the second principal component: 0.155786516991\n\n### PCA #components and f1_score relation - classification Report\n         \nn_components| x  |  precision |  recall |  f1-score | support\n-----|------------------|------|-------|-------|----\n  10 | Donald Rumsfeld  | 0.54 | 0.61  |  0.57 | 36\n 15  | Donald Rumsfeld  | 0.69 | 0.56  |  0.62 | 36\n 50  | Donald Rumsfeld  | 0.97 |  0.86 |  0.91 | 36\n 150 | Donald Rumsfeld  | 0.86 |  0.86 |  0.86 | 36\n 250 | Donald Rumsfeld  | 0.83 |  0.83 |  0.83 | 36\n\n\n### Fitting the classifier to the training set\n    done in 3.839s\n\n### Best estimator found by grid search:\n    SVC(C=1000.0, cache_size=200, class_weight='balanced', coef0=0.0,\n    decision_function_shape=None, degree=3, gamma=0.001, kernel='rbf',\n    max_iter=-1, probability=False, random_state=None, shrinking=True,\n    tol=0.001, verbose=False)\n\n\n### Predicting the people names on the testing set\n    done in 0.010s\n\n### Classification Report\n                   | precision |   recall | f1-score  | support\n------------------ | ----------| ----------|------------|------\n  Donald Rumsfeld |      0.91  |    0.83   |   0.87     |   36\n    George W Bush  |      0.91  |    0.98  |    0.94    |   123\nGerhard Schroeder  |     0.96   |   0.77   |   0.86    |    31\n\n      avg / total   |    0.92   |   0.92  |    0.91    |   190\n\n### Confusion_matrix\n\n[[ 30   6   0]\n [  2 120   1]\n [  1   6  24]]\n \n### Results\n\n![alt tag](https://github.com/Nazanin1369/eignFaces/blob/master/figure_1.png)\n![alt tag](https://github.com/Nazanin1369/eignFaces/blob/master/figure_2.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnazanin1369%2Feignfaces","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnazanin1369%2Feignfaces","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnazanin1369%2Feignfaces/lists"}