{"id":19469051,"url":"https://github.com/anothersamwilson/flaskpredictor","last_synced_at":"2026-05-16T15:02:44.425Z","repository":{"id":111352011,"uuid":"192834524","full_name":"AnotherSamWilson/flaskPredictor","owner":"AnotherSamWilson","description":"Simple Flask App that accepts json and returns prediction","archived":false,"fork":false,"pushed_at":"2019-06-20T23:37:21.000Z","size":140,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-08T04:52:47.588Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/AnotherSamWilson.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":"2019-06-20T02:28:06.000Z","updated_at":"2023-11-22T15:27:02.000Z","dependencies_parsed_at":"2023-05-23T19:30:16.565Z","dependency_job_id":null,"html_url":"https://github.com/AnotherSamWilson/flaskPredictor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnotherSamWilson%2FflaskPredictor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnotherSamWilson%2FflaskPredictor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnotherSamWilson%2FflaskPredictor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnotherSamWilson%2FflaskPredictor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnotherSamWilson","download_url":"https://codeload.github.com/AnotherSamWilson/flaskPredictor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240683088,"owners_count":19840632,"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-10T18:45:59.928Z","updated_at":"2026-05-16T15:02:39.391Z","avatar_url":"https://github.com/AnotherSamWilson.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Purpose\n-------\n\nThis project is for personal improvement and satisfaction. The most\ndifficult step for (most) data scientists is model deployment. Flask\nmakes that easy enough with their slick Python library. In this project,\nwe train a model with lightgbm and create an app that will predict a\nhouse selling price from the following columns:\n\n-   LotArea\n-   Neighborhood\n-   Condition1\n-   Condition2\n-   OverallQual\n-   OverallCond\n-   YearBuilt\n-   SaleCondition\n\nThere are hundreds (maybe thousands) of kernels on Kaggle that show you\nhow to train a model that can predict housing prices on this exact\ndataset. However, none of them actually deploy the model so that one\ncould query it and recieve a prediction. That is what this project does.\nIt is a work in progress, and will be improved upon as I find new\nfeatures to add.\n\nThe requirements.txt file is pretty lightweight, and only includes the\npackages needed for this specific project (plus base Python) so feel\nfree to copy the environment.\n\nUsage\n-----\n\nThe web service can receive 3 valid commands:\n\n### POST with json body\n\nThe post to the web service should include a body with the following\njson schema:\n\n    {\n      \"LotArea\": Integer,\n      \"Neighborhood\": String,\n      \"Condition1\": String,\n      \"Condition2\": String,\n      \"OverallQual\": Integer,\n      \"OverallCond\": Integer,\n      \"YearBuilt\": Integer,\n      \"SaleCondition\": String\n    }\n\nThis json represends ‘samples’ which we would like to predict. For\nexample, the following payload:\n\n    {\n      \"LotArea\": 9600,\n      \"Neighborhood\": \"Veenker\",\n      \"Condition1\": \"Feedr\",\n      \"Condition2\": \"Norm\",\n      \"OverallQual\": 6,\n      \"OverallCond\": 8,\n      \"YearBuilt\": 1976,\n      \"SaleCondition\": \"Normal\"\n    }\n\nWill return:\n\n    {\n      \"SalePrice\": 186272.93\n    }\n\n### Shutdown\n\nSimply send a GET request to the path /shutdown to shut the app down\ngracefully.\n\n### GET\n\nSend a GET request to the root path to recieve a refreshable key. Used\nfor debugging.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanothersamwilson%2Fflaskpredictor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanothersamwilson%2Fflaskpredictor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanothersamwilson%2Fflaskpredictor/lists"}