{"id":21930743,"url":"https://github.com/previsionio/prevision-onnx-templates","last_synced_at":"2026-04-15T16:07:47.227Z","repository":{"id":86604786,"uuid":"413329701","full_name":"previsionio/prevision-onnx-templates","owner":"previsionio","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-14T10:23:33.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-22T12:48:52.718Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/previsionio.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-10-04T08:06:49.000Z","updated_at":"2021-10-05T14:32:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"2887527e-aa2e-45e9-8c58-e198f0a02fd3","html_url":"https://github.com/previsionio/prevision-onnx-templates","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/previsionio/prevision-onnx-templates","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/previsionio%2Fprevision-onnx-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/previsionio%2Fprevision-onnx-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/previsionio%2Fprevision-onnx-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/previsionio%2Fprevision-onnx-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/previsionio","download_url":"https://codeload.github.com/previsionio/prevision-onnx-templates/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/previsionio%2Fprevision-onnx-templates/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267652434,"owners_count":24122093,"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-07-29T02:00:12.549Z","response_time":2574,"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":[],"created_at":"2024-11-28T23:11:16.986Z","updated_at":"2026-04-15T16:07:47.178Z","avatar_url":"https://github.com/previsionio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prevision-onnx-templates\n\nThis repo provide code to understand and build onnx models for use in the [Prevision.io Platform](https://cloud.prevision.io).\n\n\nA complete doc for using onnx model in [Prevision.io Platform](https://cloud.prevision.io) is available [here](https://previsionio.readthedocs.io/fr/latest/studio/experiments/external-model.html)\n\n## Setup\n\nClone this repo and open the prevision-onnx-templates folder :\n\n```sh\ngit clone https://github.com/previsionio/prevision-onnx-templates.git\ncd prevision-onnx-templates\n```\n\n\nIf not done, create a virtualenv \n\n```sh\npython -m venv env\n```\n\nAnd install the requirements \n\n``` \nsource env/bin/activate\npip install -r requirements.txt\n```\n\n### Using the SDK\n\nIf you want to use the [Prevision SDK](https://prevision-python.readthedocs.io/en/latest/source/getting_started.html) yoy may setup an `.env` file with the following fields :\n\n```\nDOMAIN=https://cloud.prevision.io\nPIO_MASTER_TOKEN=\u003cMASTER_TOKEN\u003e\n``` \n\n( see [the API doc to get your master token](https://previsionio.readthedocs.io/fr/latest/API/using.html))\n\n## Usage\n\nNote : a small subset of a fraud transaction dataset is provided in the `data` folder.\n\nYou can use sktoonnx.py for a basic sklearn classifier exportation to onnx :\n\n```sh\npython sktoonnx.py\n``` \n\nThe scripts build a ( very ) basic classifier and export it to onnx model. You can then use the content of `data/assets` folder into your [Prevision Account](https://cloud.prevision.io). Then see [the documentation for importing your own model](https://previsionio.readthedocs.io/fr/latest/studio/experiments/external-model.html)\n\n\n### Using the SDK\n\nYou can use ( and inspect )  the `sdkimport.py` script to export your models and pipeline programmatically. This script uses several basic sklearn pipeline ( feature engineering + modelisation) , converts them  to onnx and create an experiment to benchmark them altogether inside the same experiment into your [prevision account](https://cloud.prevision.io)\n\n\n**Warning : this scripts uses ressources generated from the previous one so be sure to launch it before\n\n```sh\npython sktoonnx.py\npython sdkimport.py\n``` \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprevisionio%2Fprevision-onnx-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprevisionio%2Fprevision-onnx-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprevisionio%2Fprevision-onnx-templates/lists"}