{"id":17359347,"url":"https://github.com/himasnhu-at/cox3-ml-model","last_synced_at":"2025-08-24T03:33:49.636Z","repository":{"id":170947623,"uuid":"647233001","full_name":"Himasnhu-AT/COX3-ML-Model","owner":"Himasnhu-AT","description":"Building an ML model for detecting if a patient is COVID-19 positive or not. Based on dataset: https://www.kaggle.com/datasets/andyczhao/covidx-cxr2","archived":false,"fork":false,"pushed_at":"2023-06-01T17:52:26.000Z","size":44609,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T15:47:53.805Z","etag":null,"topics":["machine-learning","machine-learning-algorithms","machine-learning-model","model"],"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/Himasnhu-AT.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":"2023-05-30T10:44:59.000Z","updated_at":"2023-06-01T17:50:44.000Z","dependencies_parsed_at":"2023-07-19T06:30:39.330Z","dependency_job_id":null,"html_url":"https://github.com/Himasnhu-AT/COX3-ML-Model","commit_stats":null,"previous_names":["himasnhu-at/cox3-ml-model"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Himasnhu-AT/COX3-ML-Model","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himasnhu-AT%2FCOX3-ML-Model","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himasnhu-AT%2FCOX3-ML-Model/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himasnhu-AT%2FCOX3-ML-Model/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himasnhu-AT%2FCOX3-ML-Model/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Himasnhu-AT","download_url":"https://codeload.github.com/Himasnhu-AT/COX3-ML-Model/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himasnhu-AT%2FCOX3-ML-Model/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271785959,"owners_count":24820573,"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","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"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":["machine-learning","machine-learning-algorithms","machine-learning-model","model"],"created_at":"2024-10-15T19:09:22.931Z","updated_at":"2025-08-24T03:33:49.629Z","avatar_url":"https://github.com/Himasnhu-AT.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# COX3-ML-Model\nThis repository contains code for building and training an image classification model using the EfficientNetB3 architecture. The model is trained on a dataset of images and can predict the diagnosis of a given image.\n\n## Requirements\n\n- Python 3.7 or later\n- TensorFlow 2.0 or later\n- NumPy\n- pandas\n- OpenCV (cv2)\n- Matplotlib\n\n## Installation\n\n1. Clone the repository:\n\n   ```\n   git clone https://github.com/Himasnhu-AT/COX3-ML-Model.git\n   cd COX3-ML-Model\n   ```\n\n2. Create a virtual environment (optional but recommended):\n\n   ```\n   python3 -m venv env\n   source env/bin/activate\n   ```\n\n3. Install the required packages:\n\n   ```\n   pip install -r requirements.txt\n   ```\n\n4. Download the dataset:\n   \n   - Download the dataset from [Dataset Download Link](https://www.kaggle.com/datasets/andyczhao/covidx-cxr2).\n   - Extract the dataset into the project directory.\n\n## Usage\n\n1. Open the `main.py` file and modify the `data_path` variable to point to the directory where you extracted the dataset.\n\n2. Run the script:\n\n   ```\n   python main.py\n   ```\n\n   This will train the model on the dataset and save the trained model in the specified directory.\n\n3. To evaluate the model on the test dataset and generate predictions, you can use the following code:\n\n   ```python\n   import tensorflow as tf\n   import cv2\n\n   # Load the saved model\n   model = tf.saved_model.load('path/to/saved/model')\n\n   # Load and preprocess the test image\n   image_path = 'path/to/test/image.jpg'\n   image = cv2.imread(image_path)\n   preprocessed_image = preprocess_image(image)  # Preprocess according to the model requirements\n\n   # Make predictions\n   predictions = model.predict(preprocessed_image)\n\n   # Process the predictions and get the diagnosis\n   diagnosis = process_predictions(predictions)\n\n   print(\"Diagnosis:\", diagnosis)\n   ```\n\n## Contributing\n\nContributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the [UnLicense](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimasnhu-at%2Fcox3-ml-model","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhimasnhu-at%2Fcox3-ml-model","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimasnhu-at%2Fcox3-ml-model/lists"}