{"id":19989184,"url":"https://github.com/clamytoe/investments-vc","last_synced_at":"2025-07-08T21:36:36.957Z","repository":{"id":84639571,"uuid":"581366188","full_name":"clamytoe/investments-vc","owner":"clamytoe","description":"Capstone project for CareerERA Post Graduate Program in Data Science","archived":false,"fork":false,"pushed_at":"2023-01-31T04:29:13.000Z","size":30438,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T21:48:16.928Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/clamytoe.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":"2022-12-23T01:30:58.000Z","updated_at":"2023-01-31T18:47:17.000Z","dependencies_parsed_at":"2023-07-20T20:30:10.542Z","dependency_job_id":null,"html_url":"https://github.com/clamytoe/investments-vc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/clamytoe/investments-vc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamytoe%2Finvestments-vc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamytoe%2Finvestments-vc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamytoe%2Finvestments-vc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamytoe%2Finvestments-vc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clamytoe","download_url":"https://codeload.github.com/clamytoe/investments-vc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamytoe%2Finvestments-vc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259368020,"owners_count":22846825,"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":[],"created_at":"2024-11-13T04:45:46.126Z","updated_at":"2025-06-12T00:06:07.741Z","avatar_url":"https://github.com/clamytoe.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Investments Venture Capitalists (*investments-vc*)\n\n\u003e *Capstone project that I created as part of CareerERA's Post Graduate Program*\n\n![Python version][python-version]\n![Latest version][latest-version]\n[![GitHub issues][issues-image]][issues-url]\n[![GitHub forks][fork-image]][fork-url]\n[![GitHub Stars][stars-image]][stars-url]\n[![License][license-image]][license-url]\n\nNOTE: This project was generated with [Cookiecutter](https://github.com/audreyr/cookiecutter) along with [@clamytoe's](https://github.com/clamytoe) [toepack](https://github.com/clamytoe/toepack) project template.\n\n![wordcloud](images/markets.png)\n\n**Author**: [Martin Uribe](clamytoe@gmail.com)\n\n## Purpose\n\nThis project is part of my first capstone project for the [Post Graduate Program in Data Science](https://www.careerera.com/data-science/post-graduate-program-in-data-science) for [CareerERA](https://www.careerera.com/).\n\nI was given a random dataset with no description of what each feature meant or what to do with it. I cleaned it up, performed some EDA, ran some extensive parameter tuning on different classifiers, and created a model that was able to generate the probability of a startup being acquired.\n\nThis was a challenge because the target classes were highly imbalanced.\n\n![classes](images/imbalanced.png)\n\n\u003e In the end, my model achieved an **86%** accuracy.\n\nFurther details can be found in the [Jupyter notebook](MartinUribe_InvestmentsVC_Capstone.ipynb). I've included the [html export](MartinUribe_InvestmentsVC_Capstone.html) of the notebook so that the interactive plots would be available offline without having to recreate my environment and running the notebook.\n\n**Project structure:**\n\n```bash\n.\n├── LICENSE\n├── MartinUribe_InvestmentsVC_Capstone.html\n├── MartinUribe_InvestmentsVC_Capstone.ipynb\n├── README.md\n├── cleanup_data.py\n├── create_model.py\n├── data\n│   ├── cleaned_data.csv\n│   └── investments_VC.csv\n├── requirements.txt\n└── rf-up-86.pkl\n```\n\n## Initial setup\n\n```zsh\ncd Projects\ngit clone https://github.com/clamytoe/investments-vc.git\ncd investments-vc\n```\n\n### Anaconda setup\n\nIf you are an Anaconda user, this command will get you up to speed with the base installation.\n\n```zsh\nconda create --name vc --file requirements.txt\nconda activate vc\n```\n\n### Regular Python setup\n\nIf you are just using normal Python, this will get you ready, but I highly recommend that you do this in a virtual environment.\nThere are many ways to do this, the simplest using *venv*.\n\n```zsh\npython3 -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\n```\n\n## Creating a cleaned dataset\n\nThe initial dataset required a lot of tweaking in order to get it ready. The cleaned dataset exceeds the maximum size requirements for GitHub, so it was not provided. Not to worry though, I have provided a script to generate it.\n\nSimply run the follwing command:\n\n```bash\npython cleanup_data.py\nCreated data/cleaned_data.csv\n```\n\n## Generating the model\n\nTo generate the model, simply run the following command:\n\n```bash\npython create_model.py\nImporting dataset: data/cleaned_data.csv\nProcessing data...\nResampling imbalanced classes...\nSplitting the data into train, validation, and test sets...\nScaling numeric features...\nOne Hot Encoding categorical features...\nCreating model...\nFitting the model...\nTesting the model...\n\nClassification Report\n              precision    recall  f1-score   support\n\n           0       0.89      0.81      0.85       988\n           1       0.83      0.90      0.87      1012\n\n    accuracy                           0.86      2000\n   macro avg       0.86      0.86      0.86      2000\nweighted avg       0.86      0.86      0.86      2000\n\n\nConfusion Matrix\n[[805 183]\n [ 98 914]]\n\nSaving the model...\n[DONE] Model saved to rf-up-86.pkl\n```\n\n## TODO\n\n* [X] Cleaned up the data\n* [X] Analyzed the data\n* [X] Extracted some meaningful insights from the data\n* [X] Feature engineered 988 new features\n* [X] Successfully handled the imbalance of the target classes\n* [X] Performed some extensive model tuning to find optimal parameters\n* [X] Selected the best model\n* [X] Saved the model for deployment\n* [X] Create python script to prepare the data\n* [X] Create python script to create and save the model\n* [ ] Deploy the model with FastAPI and gunicorn or Flask and nginx\n* [ ] Containerize the model with Docker\n* [ ] Deploy the model on the cloud\n\n## License\n\nDistributed under the terms of the [MIT](https://opensource.org/licenses/MIT) license, \"investments-vc\" is free and open source software.\n\n## Issues\n\nIf you encounter any problems, please [file an issue](https://github.com/clamytoe/toepack/issues) along with a detailed description.\n\n[python-version]:https://img.shields.io/badge/python-3.9.15-brightgreen.svg\n[latest-version]:https://img.shields.io/badge/version-0.1.0-blue.svg\n[issues-image]:https://img.shields.io/github/issues/clamytoe/investments-vc.svg\n[issues-url]:https://github.com/clamytoe/investments-vc/issues\n[fork-image]:https://img.shields.io/github/forks/clamytoe/investments-vc.svg\n[fork-url]:https://github.com/clamytoe/investments-vc/network\n[stars-image]:https://img.shields.io/github/stars/clamytoe/investments-vc.svg\n[stars-url]:https://github.com/clamytoe/investments-vc/stargazers\n[license-image]:https://img.shields.io/github/license/clamytoe/investments-vc.svg\n[license-url]:https://github.com/clamytoe/investments-vc/blob/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclamytoe%2Finvestments-vc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclamytoe%2Finvestments-vc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclamytoe%2Finvestments-vc/lists"}