{"id":20823198,"url":"https://github.com/bottomsnode/sct_ml_3","last_synced_at":"2025-07-06T10:39:08.192Z","repository":{"id":247115292,"uuid":"825057763","full_name":"BottomsNode/SCT_ML_3","owner":"BottomsNode","description":"This repository contains code for classifying images of cats and dogs using a Support Vector Machine (SVM) classifier. The features for the classification are extracted using a pre-trained VGG16 model.","archived":false,"fork":false,"pushed_at":"2024-07-06T17:21:04.000Z","size":22877,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T16:56:19.082Z","etag":null,"topics":["data-science","deep-learning","kaggle-dataset","keras-tensorflow","machine-learning","opencv-python","svm-classifier"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BottomsNode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-07-06T16:40:54.000Z","updated_at":"2024-07-06T17:22:59.000Z","dependencies_parsed_at":"2024-07-06T18:03:07.089Z","dependency_job_id":null,"html_url":"https://github.com/BottomsNode/SCT_ML_3","commit_stats":null,"previous_names":["bottomsnode/sct_ml_3"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BottomsNode%2FSCT_ML_3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BottomsNode%2FSCT_ML_3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BottomsNode%2FSCT_ML_3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BottomsNode%2FSCT_ML_3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BottomsNode","download_url":"https://codeload.github.com/BottomsNode/SCT_ML_3/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243172108,"owners_count":20247884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["data-science","deep-learning","kaggle-dataset","keras-tensorflow","machine-learning","opencv-python","svm-classifier"],"created_at":"2024-11-17T22:17:37.393Z","updated_at":"2025-03-12T06:42:12.800Z","avatar_url":"https://github.com/BottomsNode.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cats vs Dogs Image Classification\n![Cats vs Dogs Image Classification](https://github.com/BottomsNode/SCT_ML_3/blob/main/Task%20ML%203.png)\n\nThis repository contains code for classifying images of cats and dogs using a Support Vector Machine (SVM) classifier. The features for the classification are extracted using a pre-trained VGG16 model.\n\n## Dataset\n\nThe dataset used for this project is the [Dogs vs. Cats dataset](https://www.kaggle.com/c/dogs-vs-cats/data) from Kaggle.\n\n## Project Structure\n\n- `train/`: Directory containing the training images (cats and dogs).\n- `test1/`: Directory containing the test images.\n- `sampleSubmission.csv`: Sample submission file from Kaggle.\n- `train_features.pkl`: Pickle file containing extracted features for training data.\n- `test_features.pkl`: Pickle file containing extracted features for test data.\n- `submission.csv`: Output file containing predictions for the test data.\n- `svm_classifier.pkl`: Pickle file containing the trained SVM classifier.\n\n## Requirements\n\n- `Python 3.x`\n- `NumPy`\n- `pandas`\n- `scikit-learn`\n- `OpenCV`\n- `Keras`\n- `TensorFlow`\n\nInstall the required libraries using:\n\n```bash\npip install numpy pandas scikit-learn opencv-python keras tensorflow\n```\n\n## Usage\n  - `/`Training and Predicting\n  - `/`Extract Features: Extract features from the images using the VGG16 model.\n  - `/`Train SVM Classifier: Train the SVM classifier using the extracted features.\n  - `/`Predict: Predict the labels for the test images.\n\n## Predicting a Single Image\n  To classify a single image, use the predict_image function included in the code.\n  This function takes an image path as input and returns whether the image is of a cat or a dog.\n\n## Acknowledgements\n  This project uses the Dogs vs. Cats dataset from Kaggle. Special thanks to the Kaggle community for providing such a valuable dataset.\n\n## License  \n  This project is licensed under the MIT License.\n  \n### How to Use\n  - Save this content in a file named `README.md` in the root directory of your project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbottomsnode%2Fsct_ml_3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbottomsnode%2Fsct_ml_3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbottomsnode%2Fsct_ml_3/lists"}