{"id":21191803,"url":"https://github.com/edgeimpulse/sklearn-linear-models","last_synced_at":"2025-10-05T17:11:03.876Z","repository":{"id":179404951,"uuid":"645840021","full_name":"edgeimpulse/sklearn-linear-models","owner":"edgeimpulse","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-10T10:39:02.000Z","size":39,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-29T13:54:40.021Z","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":"bsd-3-clause-clear","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edgeimpulse.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,"zenodo":null}},"created_at":"2023-05-26T14:56:55.000Z","updated_at":"2025-02-10T10:39:05.000Z","dependencies_parsed_at":"2025-07-10T06:33:12.316Z","dependency_job_id":"cc5ce7af-f2b7-497d-bc76-c60d37dd6467","html_url":"https://github.com/edgeimpulse/sklearn-linear-models","commit_stats":null,"previous_names":["edgeimpulse/sklearn-linear-models"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/edgeimpulse/sklearn-linear-models","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeimpulse%2Fsklearn-linear-models","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeimpulse%2Fsklearn-linear-models/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeimpulse%2Fsklearn-linear-models/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeimpulse%2Fsklearn-linear-models/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edgeimpulse","download_url":"https://codeload.github.com/edgeimpulse/sklearn-linear-models/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgeimpulse%2Fsklearn-linear-models/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278486308,"owners_count":25994945,"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-10-05T02:00:06.059Z","response_time":54,"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-20T19:05:20.016Z","updated_at":"2025-10-05T17:11:03.854Z","avatar_url":"https://github.com/edgeimpulse.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Custom Scikit Learn linear model ML block examples for Edge Impulse\n\nDocumentation on the inner workings of these models is found on scikit-learns website [here](https://scikit-learn.org/stable/modules/classes.html#module-sklearn.linear_model).\n\nAs a primer, read the [Custom learning blocks](https://docs.edgeimpulse.com/docs/edge-impulse-studio/learning-blocks/adding-custom-learning-blocks) page in the Edge Impulse docs and see another example [here](https://github.com/edgeimpulse/example-custom-ml-block-scikit) which also shows how to test the block locally.\n\nFor more information read [Adding parameters to custom blocks](https://docs.edgeimpulse.com/docs/tips-and-tricks/adding-parameters-to-custom-blocks).\n\n## Fetching new data\n\nTo get up-to-date data from your project:\n\n1. Install the [Edge Impulse CLI](https://docs.edgeimpulse.com/docs/edge-impulse-cli/cli-installation) v1.16 or higher.\n2. Open a command prompt or terminal window.\n3. Fetch new data via:\n\n    ```\n    $ edge-impulse-blocks runner --download-data data/\n    ```\n\n## Pushing the block to Edge Impulse\n\n1. Install the [Edge Impulse CLI](https://docs.edgeimpulse.com/docs/edge-impulse-cli/cli-installation) v1.19.3 or higher.\n2. Navigate to the directory with the linear model you want to push to edge impulse.\n3. Initialize the block:\n\n    ```\n    $ edge-impulse-blocks init\n    # Answer the questions, select \"Classification\" or \"Regression\" based on the block you wish to install for 'What type of data does this model operate on?'\n    ```\n4. Push the block:\n\n    ```\n    $ edge-impulse-blocks push\n    ```\n5. The block is now available under any of your projects. Depending on the data your block operates on, you can add it via:\n    * Classification: **Create impulse \u003e Add learning block \u003e Classification**, then select the block via 'Add an extra layer' on the 'Classifier' page.\n    * Regression: **Create impulse \u003e Add learning block \u003e Regression**, then select the block via 'Add an extra layer' on the 'Regression' page.\n\n    Or you can select the block on the \"Impulse design\" page\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgeimpulse%2Fsklearn-linear-models","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedgeimpulse%2Fsklearn-linear-models","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgeimpulse%2Fsklearn-linear-models/lists"}