{"id":47714818,"url":"https://github.com/olaoluthomas/ltv_btyd_demo","last_synced_at":"2026-04-02T18:51:03.229Z","repository":{"id":47380208,"uuid":"380819176","full_name":"olaoluthomas/ltv_btyd_demo","owner":"olaoluthomas","description":"Using lifetimes package to compute value and providing a demo via a web service.","archived":false,"fork":false,"pushed_at":"2024-12-17T19:45:03.000Z","size":185,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2024-12-17T20:33:03.375Z","etag":null,"topics":["data-science","docker","flask","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/olaoluthomas.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":"2021-06-27T19:09:44.000Z","updated_at":"2024-12-17T19:45:08.000Z","dependencies_parsed_at":"2024-12-17T20:26:29.323Z","dependency_job_id":"b5fa0981-8f88-4031-99ec-5d2588f18847","html_url":"https://github.com/olaoluthomas/ltv_btyd_demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/olaoluthomas/ltv_btyd_demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olaoluthomas%2Fltv_btyd_demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olaoluthomas%2Fltv_btyd_demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olaoluthomas%2Fltv_btyd_demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olaoluthomas%2Fltv_btyd_demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olaoluthomas","download_url":"https://codeload.github.com/olaoluthomas/ltv_btyd_demo/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olaoluthomas%2Fltv_btyd_demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31313456,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["data-science","docker","flask","python"],"created_at":"2026-04-02T18:51:02.583Z","updated_at":"2026-04-02T18:51:03.206Z","avatar_url":"https://github.com/olaoluthomas.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bbby_btyd\r\n\r\n---\r\n\r\nA probabilistic approach to estimating customer lifetime value using the \"Buy 'Til You Die\" methodology via the PyPI Lifetimes package.\r\n\r\nCreate a docker image from instructions in the Dockerfile to perform a prediction on a single row of data submitted via HTML form (as a demo).\r\n\r\nIn the directory that holds the Dockerfile, you can run a demo that makes a prediction from data collected via an HTML form.\r\n\r\nTo build the docker image, run \u003cbr/\u003e\r\n\r\ndocker build -t \u003cimage_name\u003e . \u003cbr/\u003e\r\nFor example,\r\n```\r\n$ docker build -t ltv_image .\r\n```\r\nTo create a container from the image, run \u003cbr/\u003e\r\n\r\ndocker run -it --name \u003ccontainer\u003e -p 8080:8080 \u003cimage_name\u003e \u003cbr/\u003e\r\nFor example,\r\n```\r\n$ docker run -it --name ltv_container -p 8080:8080 ltv_image\r\n```\r\nThen navigate to localhost:8080 and you'll be taken to the website's homepage. \u003cbr/\u003e\r\nTo submit data via an HTML form, simply click on \"User Input\". \u003cbr/\u003e\r\n\r\nHave fun!!!\r\n\r\nMore revisions to follow...\r\n\r\nDocumentation on the Lifetimes package can be found [here](https://lifetimes.readthedocs.io/en/latest/) or downloaded [here](https://readthedocs.org/projects/lifetimes/downloads/pdf/latest/).\r\n\r\n---\r\nCredit to [Cameron Davidson-Pilon (GitHub)](https://github.com/CamDavidsonPilon/lifetimes).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folaoluthomas%2Fltv_btyd_demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folaoluthomas%2Fltv_btyd_demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folaoluthomas%2Fltv_btyd_demo/lists"}