{"id":20235998,"url":"https://github.com/combust/pachyderm-mleap-demo","last_synced_at":"2025-04-10T19:01:53.344Z","repository":{"id":74304051,"uuid":"82217129","full_name":"combust/pachyderm-mleap-demo","owner":"combust","description":"Pachyderm/MLeap team up to provide versioned datasets + models","archived":false,"fork":false,"pushed_at":"2017-06-07T15:19:38.000Z","size":30,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-24T16:42:23.609Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","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/combust.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":"2017-02-16T19:20:20.000Z","updated_at":"2022-01-20T16:39:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"30cd1979-cd31-4f5f-89cd-ce3cb565beca","html_url":"https://github.com/combust/pachyderm-mleap-demo","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/combust%2Fpachyderm-mleap-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/combust%2Fpachyderm-mleap-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/combust%2Fpachyderm-mleap-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/combust%2Fpachyderm-mleap-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/combust","download_url":"https://codeload.github.com/combust/pachyderm-mleap-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248278613,"owners_count":21077276,"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-14T08:18:41.427Z","updated_at":"2025-04-10T19:01:53.328Z","avatar_url":"https://github.com/combust.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pachyderm/MLeap Demo\n\nThis is the codebase to support the Pachyderm/MLeap training and scoring\ndemo. It is used to generate the Docker images used by the demo.\n\n## Docker Image\n\nThe Docker images are located here:\n\n1. [Training Image](https://hub.docker.com/r/combustml/pmd-training/)\n2. [Scoring Image](https://hub.docker.com/r/combustml/pmd-scoring/)\n\n## Building Locally\n\nBuild the Docker image locally with SBT.\n\n1. Install SBT with these [instructions](http://www.scala-sbt.org/0.13/docs/Setup.html)\n2. Make sure docker is running\n3. Use SBT to publish the image locally\n\n```\nsbt training/docker:publishLocal\nsbt scoring/docker:publishLocal\n```\n\nThis will publish two docker images named `combustml/pmd-training:0.1-SNAPSHOT` and\n`combustml/pmd-scoring:0.1-SNAPSHOT`.\n\n## Training\n\nDownload the Airbnb training dataset here: [airbnb.clean.avro](https://s3-us-west-2.amazonaws.com/mleap-demo/datasources/airbnb.clean.avro).\n\n```\ndocker run -v /tmp/pmd-in:/data-in \\\n  -v /tmp/pmd-out:/data-training-out combustml/pmd-training:0.1-SNAPSHOT airbnb \\\n  -t random-forest \\ # train a random forest model\n  -i file:///data-in/airbnb.clean.avro \\ # input airbnb dataset\n  -o /data-out/model.zip \\ # set the output location of the model file\n  -s /data-out/summary.txt \\ # output path for model summary\n  -J-Xmx2048m # make sure Spark has enough memory\n```\n\n## Scoring\n\n```\ndocker run -v /tmp/pmd-out:/data-in1 \\\n  -v /tmp/pmd-training-in:/data-int2 \\\n  -v /tmp/pmd-scoring-out:/data-out combustml/pmd-scoring:0.1-SNAPSHOT \\\n  -m /data-in1/model.zip \\\n  -i /data-in2/good.avro \\\n  -o /data-out/test-docker.avro \\\n  -J-Xmx2048m\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcombust%2Fpachyderm-mleap-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcombust%2Fpachyderm-mleap-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcombust%2Fpachyderm-mleap-demo/lists"}