Train scikit-learn based classical ML classifiers and regressors from Edge Impulse processing block features.
Only available on the Enterprise planThis feature is only available on the Enterprise plan. Review our plans and pricing or sign up for our free expert-led trial today.
Classical machine learning (ML) refers to traditional algorithms in machine learning that predate the current wave of deep learning. Deep learning usually involves large, complex neural networks. Classical ML techniques include various algorithms, such as logistic regression, support vector machines (SVMs), and decision trees. However, these techniques rely heavily on feature engineering to work well.Deep neural networks can discover or create features from the raw data automatically, but classical ML models often require human domain knowledge expertise to generate these features. This is where Edge Impulse can help! We offer a number of processing blocks to help generate features based on various use cases. You can also perform autoML with EON Tuner to see which combinations of processing and machine learning (including classical ML) blocks work best for your dataset.Traditional ML models are often easier to understand and interpret than their deep learning cousins. The simpler algorithms and structures used in traditional models make it easier to understand the relationship between input features and output predictions.We implement these modules using scikit-learn, which is an extremely popular ML package used in the creation of models for real-world applications. Once trained, models are converted to Jax, a linear algebra library. That model is then converted to a LiteRT (previously Tensorflow Lite) (float 32) model, which will run on a variety of platforms.The ability to convert Jax to LiteRT (previously Tensorflow Lite) models opens up a wide variety of possibilities when it comes to deploying different machine learning models to edge devices. If you are interested in developing a custom learning block, see here. You can also use this scikit-learn custom learning block source code as a starting point.You can select one of several algorithms depending on your project type: classification or regression. Here is a quick reminder about the difference between the two types:
Classification is used when you want to identify a sample as belonging to one particular grouping. It requires the number of possible outputs to be a discrete number. For example, classification is used if you want to determine if a picture is of a dog or a cat (2 possible outputs).
Regression is used to predict a continuous value based on the input data. For example, predicting the price of a house based on location, average neighborhood sell price, etc.
To start, select the Classificationlearning block when building your impulse.
Classical ML models are also available for Regression.
Select the classifier learning block
After generating features, head to the Classifier learn block page. Click Add an extra layer. Under Complete architectures, you can select one of the many available classical ML models.
Classical ML models available in Edge Impulse
See the Supported classical ML algorithms section below to learn about the different options.When training your classical ML model, you should configure the required hyperparameters. Note that some may require far more training cycles (epochs) than what you are used to with deep learning (e.g. 1000 epochs). However, note that these algorithms train much faster than most neural networks!
Training a classical ML model in Edge Impulse
Note that Expert mode is not available for classical ML models.
Once you have your trained model, you can deploy the impulse to a variety of devices, including microcontrollers.
Training a classical ML model in Edge Impulse
The gesture dataset is relatively simple. As a result, feature engineering and a classical ML model work very well. On more complex data, you might need to use deep learning to achieve your desired accuracy.
Edge Impulse supports a number of classical algorithms to get you started. If you are unsure of which algorithm to use, we recommend using the EON Tuner to guide you.
Logistic regression (despite its name) is a classifier; it is used to classify input data into one of several, discrete categories. It works by first fitting a line (or surface) to the data, just like in linear regression. From there, the predicted output (of linear regression) is fed into the sigmoid function to classify the input as belonging to one of several classes.Logistic regression is simple, fast, and efficient. However, it requires a linear relationship between the input and predicted class probabilities, which means it will not work well on complex data (e.g. non-linear relationships or many input dimensions).The source code for the logistic regression block can be found in this repository: sklearn-linear-models.
Support vector machines rely on a technique called the “kernel trick” for mapping points in low-dimensional to high-dimensional space. By doing this, groupings of data can often be separated into clearly defined categories.SVMs make for robust classification systems that work well with high-dimensional data (i.e. a single sample containing many values, such as different sensor values). However, they can struggle if classes in the dataset overlap significantly. If this is the case for your dataset, you may want to turn to neural networks.An example Edge Impulse project using an SVM can be found here: sklearn SVM Classification.The source code for the SVM block can be found in this repository: example-custom-ml-block-svm.
Extreme gradient boosting (XGBoost) for classification and regression
XGBoost is an open-source implementation of gradient boosting, which is a type of ensemble learning that uses a combination of simpler models, such as decision trees. It works well for classification and regression tasks. Tree-based methods, like XGBoost, compare values only between samples and not between values in a sample. As a result, they work well with features that have different magnitudes and scales.XGBoost is fast and efficient. It also has built-in methods for handling missing data, and it generally performs better with smaller datasets over LightGBM. However, it does not work as well as neural networks on complex data, and it is prone to overfitting.An example Edge Impulse project using XGBoost for regression can be found here: XGBoost Random Forest Regression.The source code for the XGBoost block can be found in this repository: example-custom-ml-block-xgboost.
Light gradient boosting machine (LightGBM) for classification and regression
Similar to XGBoost, LightGBM is another type of gradient-boosted ensemble model often constructed with decision trees, and it works well for both classification and regression tasks. Because it is a tree-based method, LightGBM compares values between samples rather than between features in a sample, thus making it robust when dealing with features that have different magnitudes.LightGBM is also fast and efficient, but slightly less so than XGBoost, making it a better choice for larger datasets. Like XGBoost, it may not work well with complex data and is prone to overfitting.An example Edge Impulse project using LightGBM for classification can be found here: LGBM Random Forest Classification.The source code for the LightGBM block can be found in this repository: example-custom-ml-block-lgbm.
If you want to implement your own learning block for Edge Impulse, see the guide here.
Was this page helpful?
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Edge Impulse Documentation","description":"Where you can find all the Edge Impulse documentation, and more!","colors":{"primary":"#5f76db","light":"#5f76db","dark":"#182896"},"logo":{"light":"https://mintcdn.com/edgeimpulse/-Yjt9HB8VCOXQC8H/.assets/logos/ei-logo-light.svg?fit=max\u0026auto=format\u0026n=-Yjt9HB8VCOXQC8H\u0026q=85\u0026s=a26ac03680700105c38fa0507df4fee2","dark":"https://mintcdn.com/edgeimpulse/K7zNEaqi2bZnNjVz/.assets/logos/ei-logo-dark.svg?fit=max\u0026auto=format\u0026n=K7zNEaqi2bZnNjVz\u0026q=85\u0026s=6c5887f8e79896f1ca3c3a63d5477761"},"favicon":"https://mintcdn.com/edgeimpulse/HzwDHenmvHu0xumg/.assets/favicon.svg?fit=max\u0026auto=format\u0026n=HzwDHenmvHu0xumg\u0026q=85\u0026s=5d3672f264e068f096f0ccfeff030489","appearance":{"default":"light"},"navbar":{"links":[{"href":"https://edgeimpulse.com/","label":"Website"},{"href":"https://studio.edgeimpulse.com","label":"Login"}],"primary":{"type":"button","label":"Sign up","href":"https://edgeimpulse.com/signup"}},"footer":{"socials":{"linkedin":"https://linkedin.com/company/edgeimpulse","youtube":"https://www.youtube.com/@EdgeImpulse","x":"https://x.com/edgeimpulse"},"links":[{"header":"Policies","items":[{"label":"Responsible AI","href":"https://www.qualcomm.com/site/responsible-ai-license"},{"label":"Privacy","href":"https://www.edgeimpulse.com/legal/privacy-policy"},{"label":"Cookies","href":"https://www.qualcomm.com/site/privacy/cookies"}]},{"header":"Legal","items":[{"label":"Terms of Use","href":"https://www.qualcomm.com/site/terms-of-use"},{"label":"Accessibility","href":"https://www.qualcomm.com/accessibility"}]}]},"seo":{"metatags":{"canonical":"https://docs.edgeimpulse.com"}},"icons":{"library":"fontawesome"},"styling":{"eyebrows":"breadcrumbs","codeblocks":"system","latex":true},"contextual":{"options":["copy","view","assistant"],"display":"header"},"navigation":{"global":{"anchors":[{"anchor":"Forum","icon":"discourse","href":"https://forum.edgeimpulse.com"},{"anchor":"Discord","icon":"discord","href":"https://discord.gg/edgeimpulse"},{"anchor":"GitHub","icon":"github","href":"https://github.com/edgeimpulse"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"edgeimpulse","hasAudioNarration":false,"actualSubdomain":"edgeimpulse","customDomains":["docs.edgeimpulse.com"],"gitSource":{"type":"github","owner":"edgeimpulse","repo":"documentation","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae2931d32d9b4ba8a7f5edf","collectionId":"0a3eb521-9a93-4591-9452-c58dcc143c16","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae2931d32d9b4ba8a7f5edf"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae2931d32d9b4ba8a7f5edf","clientVersion":"0.0.4006","searchFilterCounts":[{"language":"default","tag":"Tools","count":1305},{"language":"default","tag":"LIBRARIES","count":1279},{"language":"default","tag":"Studio Python API bindings","count":1245},{"language":"default","tag":"edgeimpulse-api","count":1244},{"language":"default","tag":"models","count":1211},{"language":"default","tag":"APIs","count":563},{"language":"default","tag":"STUDIO API ENDPOINTS","count":555},{"language":"default","tag":"Projects","count":272},{"language":"default","tag":"EXPERT NETWORK","count":211},{"language":"default","tag":"Hardware","count":123}]},"assistantConfig":{"enableStarterQuestions":true,"enableContextualStarterQuestions":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":".styles/styles.css","content":".cookie-settings-button{color:rgb(var(--gray-800))!important;background-color:rgb(var(--gray-950)/.03)!important;border-radius:var(--rounded-xl, .75rem);font-size:.875rem!important;line-height:1.25rem!important;width:fit-content!important;align-self:flex-end!important;margin-left:auto!important}.cookie-settings-button:hover{background-color:rgb(var(--gray-950)/.1)!important}"}],"page":{"pagePath":"studio/projects/learning-blocks/blocks/classical-ml","slug":"/studio/projects/learning-blocks/blocks/classical-ml","pageMetadata":{"title":"Classical ML","description":"Train scikit-learn based classical ML classifiers and regressors from Edge Impulse processing block features.","href":"/studio/projects/learning-blocks/blocks/classical-ml"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Train scikit-learn based classical ML classifiers and regressors from Edge Impulse processing block features.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Frame,Heading,Info,OptimizedImage}=_components;if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);return _jsxs(_Fragment,{children:[_jsxs(Info,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Only available on the Enterprise plan`})}),_jsxs(_components.p,{children:[`This feature is only available on the Enterprise plan. Review our `,_jsx(_components.a,{href:`https://edgeimpulse.com/pricing`,children:`plans and pricing`}),` or sign up for our free `,_jsx(_components.a,{href:`https://edgeimpulse.com/expert-led-trial`,children:`expert-led trial`}),` today.`]})]}),`\n`,_jsx(_components.p,{children:`Classical machine learning (ML) refers to traditional algorithms in machine learning that predate the current wave of deep learning. Deep learning usually involves large, complex neural networks. Classical ML techniques include various algorithms, such as logistic regression, support vector machines (SVMs), and decision trees. However, these techniques rely heavily on feature engineering to work well.`}),`\n`,_jsxs(_components.p,{children:[`Deep neural networks can discover or create features from the raw data automatically, but classical ML models often require human domain knowledge expertise to generate these features. This is where Edge Impulse can help! We offer a number of `,_jsx(_components.a,{href:`/studio/projects/processing-blocks`,children:`processing blocks`}),` to help generate features based on various use cases. You can also perform autoML with `,_jsx(_components.a,{href:`/studio/projects/eon-tuner`,children:`EON Tuner`}),` to see which combinations of processing and machine learning (including classical ML) blocks work best for your dataset.`]}),`\n`,_jsx(_components.p,{children:`Traditional ML models are often easier to understand and interpret than their deep learning cousins. The simpler algorithms and structures used in traditional models make it easier to understand the relationship between input features and output predictions.`}),`\n`,_jsx(_components.p,{children:`We implement these modules using scikit-learn, which is an extremely popular ML package used in the creation of models for real-world applications. Once trained, models are converted to Jax, a linear algebra library. That model is then converted to a LiteRT (previously Tensorflow Lite) (float 32) model, which will run on a variety of platforms.`}),`\n`,_jsxs(_components.p,{children:[`The ability to convert Jax to LiteRT (previously Tensorflow Lite) models opens up a wide variety of possibilities when it comes to deploying different machine learning models to edge devices. If you are interested in developing a custom learning block, see `,_jsx(_components.a,{href:`/studio/organizations/custom-blocks/custom-learning-blocks`,children:`here`}),`. You can also use this `,_jsx(_components.a,{href:`https://github.com/edgeimpulse/example-custom-ml-block-scikit`,children:`scikit-learn custom learning block source code`}),` as a starting point.`]}),`\n`,_jsx(_components.p,{children:`You can select one of several algorithms depending on your project type: classification or regression. Here is a quick reminder about the difference between the two types:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Classification is used when you want to identify a sample as belonging to one particular grouping. It requires the number of possible outputs to be a discrete number. For example, classification is used if you want to determine if a picture is of a dog or a cat (2 possible outputs).`}),`\n`,_jsx(_components.li,{children:`Regression is used to predict a continuous value based on the input data. For example, predicting the price of a house based on location, average neighborhood sell price, etc.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`getting-started-with-classical-ml`,children:`Getting started with classical ML`}),`\n`,_jsxs(_components.p,{children:[`To start, select the `,_jsx(_components.strong,{children:`Classification`}),` `,_jsx(_components.a,{href:`/studio/projects/learning-blocks`,children:`learning block`}),` when building your impulse.`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Classical ML models are also available for `,_jsx(_components.strong,{children:`Regression`}),`.`]})}),`\n`,_jsx(Frame,{caption:`Select the classifier learning block`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-01.png?fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=328650f01b0297d3689c0abcf27e0c1c`,alt:`Create impulse page with the classifier learning block selected`,\"data-og-width\":`1473`,width:`1473`,\"data-og-height\":`882`,height:`882`,\"data-path\":`.assets/images/classical-ml-01.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-01.png?w=280\u0026fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=4b37101e5ee7349073e80a1e10475ca6 280w, https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-01.png?w=560\u0026fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=dad63c1cca26100da76283a548e45cd4 560w, https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-01.png?w=840\u0026fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=b7f686f15f1f8eacb0ad22dbec30544f 840w, https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-01.png?w=1100\u0026fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=37fc6a68f112eb44998517df6b99215a 1100w, https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-01.png?w=1650\u0026fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=cfc200c026c85b35913035e869a859d8 1650w, https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-01.png?w=2500\u0026fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=f75a22a5cdbf19f6da206f2690e26d6b 2500w`})}),`\n`,_jsxs(_components.p,{children:[`After generating features, head to the `,_jsx(_components.strong,{children:`Classifier`}),` learn block page. Click `,_jsx(_components.strong,{children:`Add an extra layer`}),`. Under `,_jsx(_components.strong,{children:`Complete architectures`}),`, you can select one of the many available classical ML models.`]}),`\n`,_jsx(Frame,{caption:`Classical ML models available in Edge Impulse`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-04.png?fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=2e487b34841d31556a39500a2a4b57a6`,alt:`Classical ML settings page listing algorithms available in Edge Impulse`,\"data-og-width\":`1390`,width:`1390`,\"data-og-height\":`1000`,height:`1000`,\"data-path\":`.assets/images/classical-ml-04.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-04.png?w=280\u0026fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=0dd12ac65599d5c7be32cd168797d243 280w, https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-04.png?w=560\u0026fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=38d2542305ce0b7f02d59db58a71c819 560w, https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-04.png?w=840\u0026fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=9d0c45f0ca4e64a540458b58c7e340a5 840w, https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-04.png?w=1100\u0026fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=e7a156bf6b1784b110723ee49139a988 1100w, https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-04.png?w=1650\u0026fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=ebaf0363621990ebd0ec503f3d3c20f4 1650w, https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-04.png?w=2500\u0026fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=4156f1eec131b5efac267bcef225caf3 2500w`})}),`\n`,_jsxs(_components.p,{children:[`See the `,_jsx(_components.a,{href:`/studio/projects/learning-blocks/blocks/classical-ml#supported-classical-ml-algorithms`,children:`Supported classical ML algorithms`}),` section below to learn about the different options.`]}),`\n`,_jsx(_components.p,{children:`When training your classical ML model, you should configure the required hyperparameters. Note that some may require far more training cycles (epochs) than what you are used to with deep learning (e.g. 1000 epochs). However, note that these algorithms train much faster than most neural networks!`}),`\n`,_jsx(Frame,{caption:`Training a classical ML model in Edge Impulse`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-02.png?fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=347095d48f73c8c683fbb17be808f402`,alt:`Training output for a classical ML model with performance metrics`,\"data-og-width\":`1398`,width:`1398`,\"data-og-height\":`1000`,height:`1000`,\"data-path\":`.assets/images/classical-ml-02.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-02.png?w=280\u0026fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=beeccc02f49d732704f26d89c4a6df7f 280w, https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-02.png?w=560\u0026fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=d59ecb253d8bb2239ad2dba2cb58a23e 560w, https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-02.png?w=840\u0026fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=2124b70d70c929bdb0b12c3a5e6ddd92 840w, https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-02.png?w=1100\u0026fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=2d252283d370ec8d83c4454a3ec6a387 1100w, https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-02.png?w=1650\u0026fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=3d46a5419e57bef52c787a94f2e5f1d2 1650w, https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-02.png?w=2500\u0026fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=802b0acd56a445e6903054498234355d 2500w`})}),`\n`,_jsx(Info,{children:_jsx(_components.p,{children:`Note that Expert mode is not available for classical ML models.`})}),`\n`,_jsx(_components.p,{children:`Once you have your trained model, you can deploy the impulse to a variety of devices, including microcontrollers.`}),`\n`,_jsx(Frame,{caption:`Training a classical ML model in Edge Impulse`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-03.png?fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=d0e4cecf5f64f82692d825fedda6e934`,alt:`Trained classical ML model view with feature importance and validation results`,\"data-og-width\":`1441`,width:`1441`,\"data-og-height\":`883`,height:`883`,\"data-path\":`.assets/images/classical-ml-03.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-03.png?w=280\u0026fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=97a1f821daf9224705ee6c4ef568eda5 280w, https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-03.png?w=560\u0026fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=234d548e9bb6bf8da347420b67559907 560w, https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-03.png?w=840\u0026fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=098ae74a73e989d51a9cb68e27e55ede 840w, https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-03.png?w=1100\u0026fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=0cca92b4c024b7065f2fa1a561ecaf59 1100w, https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-03.png?w=1650\u0026fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=6ec07590c0a9b0c94a74cbc668e944af 1650w, https://mintcdn.com/edgeimpulse/BnOEP1CPlKpl2ntM/.assets/images/classical-ml-03.png?w=2500\u0026fit=max\u0026auto=format\u0026n=BnOEP1CPlKpl2ntM\u0026q=85\u0026s=7a83f490df61f744312d11f86ac6aeee 2500w`})}),`\n`,_jsx(_components.p,{children:`The gesture dataset is relatively simple. As a result, feature engineering and a classical ML model work very well. On more complex data, you might need to use deep learning to achieve your desired accuracy.`}),`\n`,_jsx(Heading,{level:`2`,id:`supported-classical-ml-algorithms`,children:`Supported classical ML algorithms`}),`\n`,_jsxs(_components.p,{children:[`Edge Impulse supports a number of classical algorithms to get you started. If you are unsure of which algorithm to use, we recommend using the `,_jsx(_components.a,{href:`/studio/projects/eon-tuner`,children:`EON Tuner`}),` to guide you.`]}),`\n`,_jsx(Heading,{level:`3`,id:`logistic-regression-for-classification`,children:`Logistic regression for classification`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/Logistic_regression`,children:`Logistic regression`}),` (despite its name) is a classifier; it is used to classify input data into one of several, discrete categories. It works by first fitting a line (or surface) to the data, just like in `,_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/Linear_regression`,children:`linear regression`}),`. From there, the predicted output (of linear regression) is fed into the `,_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/Sigmoid_function`,children:`sigmoid function`}),` to classify the input as belonging to one of several classes.`]}),`\n`,_jsx(_components.p,{children:`Logistic regression is simple, fast, and efficient. However, it requires a linear relationship between the input and predicted class probabilities, which means it will not work well on complex data (e.g. non-linear relationships or many input dimensions).`}),`\n`,_jsxs(_components.p,{children:[`The source code for the logistic regression block can be found in this repository: `,_jsx(_components.a,{href:`https://github.com/edgeimpulse/example-custom-ml-block-sklearn-linear-models`,children:`sklearn-linear-models`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`support-vector-machine-svm-for-classification`,children:`Support vector machine (SVM) for classification`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/Support_vector_machine`,children:`Support vector machines`}),` rely on a technique called the “kernel trick” for mapping points in low-dimensional to high-dimensional space. By doing this, groupings of data can often be separated into clearly defined categories.`]}),`\n`,_jsx(_components.p,{children:`SVMs make for robust classification systems that work well with high-dimensional data (i.e. a single sample containing many values, such as different sensor values). However, they can struggle if classes in the dataset overlap significantly. If this is the case for your dataset, you may want to turn to neural networks.`}),`\n`,_jsxs(_components.p,{children:[`An example Edge Impulse project using an SVM can be found here: `,_jsx(_components.a,{href:`https://studio.edgeimpulse.com/public/357674/latest`,children:`sklearn SVM Classification`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`The source code for the SVM block can be found in this repository: `,_jsx(_components.a,{href:`https://github.com/edgeimpulse/example-custom-ml-block-svm/`,children:`example-custom-ml-block-svm`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`random-forest-for-classification-and-regression`,children:`Random forest for classification and regression`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/Random_forest`,children:`Random forest`}),` is a type of machine learning model that employs multiple `,_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/Decision_tree_learning`,children:`decision trees`}),`. Random forests are simple to train and offer relatively high accuracy for classical ML approaches.`]}),`\n`,_jsxs(_components.p,{children:[`An example Edge Impulse project using a random forest classifier can be found here: `,_jsx(_components.a,{href:`https://studio.edgeimpulse.com/public/357645/latest`,children:`sklearn Random Forest Classification`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`The source code for the random forest block can be found in this repository: `,_jsx(_components.a,{href:`https://github.com/edgeimpulse/example-custom-ml-block-sklearn-random-forest`,children:`example-custom-ml-block-sklearn-random-forest`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`extreme-gradient-boosting-xgboost-for-classification-and-regression`,children:`Extreme gradient boosting (XGBoost) for classification and regression`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/XGBoost`,children:`XGBoost`}),` is an open-source implementation of gradient boosting, which is a type of ensemble learning that uses a combination of simpler models, such as decision trees. It works well for classification and regression tasks. Tree-based methods, like XGBoost, compare values only between samples and not between values in a sample. As a result, they work well with features that have different magnitudes and scales.`]}),`\n`,_jsx(_components.p,{children:`XGBoost is fast and efficient. It also has built-in methods for handling missing data, and it generally performs better with smaller datasets over LightGBM. However, it does not work as well as neural networks on complex data, and it is prone to overfitting.`}),`\n`,_jsxs(_components.p,{children:[`An example Edge Impulse project using XGBoost for regression can be found here: `,_jsx(_components.a,{href:`https://studio.edgeimpulse.com/public/316774/latest`,children:`XGBoost Random Forest Regression`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`The source code for the XGBoost block can be found in this repository: `,_jsx(_components.a,{href:`https://github.com/edgeimpulse/example-custom-ml-block-xgboost/`,children:`example-custom-ml-block-xgboost`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`light-gradient-boosting-machine-lightgbm-for-classification-and-regression`,children:`Light gradient boosting machine (LightGBM) for classification and regression`}),`\n`,_jsxs(_components.p,{children:[`Similar to XGBoost, `,_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/LightGBM`,children:`LightGBM`}),` is another type of gradient-boosted ensemble model often constructed with decision trees, and it works well for both classification and regression tasks. Because it is a tree-based method, LightGBM compares values between samples rather than between features in a sample, thus making it robust when dealing with features that have different magnitudes.`]}),`\n`,_jsx(_components.p,{children:`LightGBM is also fast and efficient, but slightly less so than XGBoost, making it a better choice for larger datasets. Like XGBoost, it may not work well with complex data and is prone to overfitting.`}),`\n`,_jsxs(_components.p,{children:[`An example Edge Impulse project using LightGBM for classification can be found here: `,_jsx(_components.a,{href:`https://studio.edgeimpulse.com/public/245576/latest`,children:`LGBM Random Forest Classification`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`The source code for the LightGBM block can be found in this repository: `,_jsx(_components.a,{href:`https://github.com/edgeimpulse/example-custom-ml-block-lgbm/`,children:`example-custom-ml-block-lgbm`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`going-further`,children:`Going Further`}),`\n`,_jsxs(_components.p,{children:[`If you want to implement your own learning block for Edge Impulse, see the guide `,_jsx(_components.a,{href:`/studio/organizations/custom-blocks/custom-learning-blocks`,children:`here`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Classical ML","description":"Train scikit-learn based classical ML classifiers and regressors from Edge Impulse processing block features.","href":"/studio/projects/learning-blocks/blocks/classical-ml"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Getting started with classical ML","slug":"getting-started-with-classical-ml","depth":2,"children":[]},{"title":"Supported classical ML algorithms","slug":"supported-classical-ml-algorithms","depth":2,"children":[{"title":"Logistic regression for classification","slug":"logistic-regression-for-classification","depth":3,"children":[]},{"title":"Support vector machine (SVM) for classification","slug":"support-vector-machine-svm-for-classification","depth":3,"children":[]},{"title":"Random forest for classification and regression","slug":"random-forest-for-classification-and-regression","depth":3,"children":[]},{"title":"Extreme gradient boosting (XGBoost) for classification and regression","slug":"extreme-gradient-boosting-xgboost-for-classification-and-regression","depth":3,"children":[]},{"title":"Light gradient boosting machine (LightGBM) for classification and regression","slug":"light-gradient-boosting-machine-lightgbm-for-classification-and-regression","depth":3,"children":[]}]},{"title":"Going Further","slug":"going-further","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/edgeimpulse/3a20e79a9abf6af7/.scripts/adobe-analytics.js"],"subdomain":"edgeimpulse","siteName":"Edge Impulse Documentation","title":"Classical ML - Edge Impulse Documentation","contextualStarterQuestions":[{"_id":"6ac78d51407b2b5b5aa3945c","deploymentId":"6888ecea7bd5ed3e5d2f677d","questionText":"Can I deploy to edge devices?","status":"active","generatedBy":"contextual","path":"studio/projects/learning-blocks/blocks/classical-ml","createdAt":"2026-10-08T12:32:17.824Z","updatedAt":"2026-10-08T12:32:17.824Z","__v":0},{"_id":"6ac78d51407b2b5b5aa3945b","deploymentId":"6888ecea7bd5ed3e5d2f677d","questionText":"How do I use processing blocks?","status":"active","generatedBy":"contextual","path":"studio/projects/learning-blocks/blocks/classical-ml","createdAt":"2026-10-08T12:32:17.824Z","updatedAt":"2026-10-08T12:32:17.824Z","__v":0},{"_id":"6ac78d51407b2b5b5aa3945a","deploymentId":"6888ecea7bd5ed3e5d2f677d","questionText":"What classical ML models are supported?","status":"active","generatedBy":"contextual","path":"studio/projects/learning-blocks/blocks/classical-ml","createdAt":"2026-10-08T12:32:17.824Z","updatedAt":"2026-10-08T12:32:17.824Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-13T14:39:22.538Z","originalFileLocation":"studio/projects/learning-blocks/blocks/classical-ml.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Train scikit-learn based classical ML classifiers and regressors from Edge Impulse processing block features.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Edge Impulse Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/edgeimpulse/ZmtueQz3qIhQbHQ2/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/edgeimpulse/ZmtueQz3qIhQbHQ2/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/edgeimpulse/ZmtueQz3qIhQbHQ2/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/edgeimpulse/ZmtueQz3qIhQbHQ2/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/edgeimpulse/ZmtueQz3qIhQbHQ2/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/edgeimpulse/ZmtueQz3qIhQbHQ2/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/edgeimpulse/ZmtueQz3qIhQbHQ2/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/edgeimpulse/ZmtueQz3qIhQbHQ2/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/edgeimpulse/ZmtueQz3qIhQbHQ2/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Classical ML - Edge Impulse Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Train scikit-learn based classical ML classifiers and regressors from Edge Impulse processing block features.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Edge Impulse Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.edgeimpulse.com/studio/projects/learning-blocks/blocks/classical-ml\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://edgeimpulse.mintlify.app/_mintlify/api/og/v2?division=Blocks\u0026amp;title=Classical+ML\u0026amp;description=Train+scikit-learn+based+classical+ML+classifiers+and+regressors+from+Edge+Impulse+processing+block+features.\u0026amp;theme=c0871bc4d614d2e3b7bd2b2d\u0026amp;signature=3ba5d2c4d4ef41346a0f9b4827c33f2ea2eb48f7a841d9d0ced8dde5fd50e3fc\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Classical ML - Edge Impulse Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Train scikit-learn based classical ML classifiers and regressors from Edge Impulse processing block features.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://edgeimpulse.mintlify.app/_mintlify/api/og/v2?division=Blocks\u0026amp;title=Classical+ML\u0026amp;description=Train+scikit-learn+based+classical+ML+classifiers+and+regressors+from+Edge+Impulse+processing+block+features.\u0026amp;theme=c0871bc4d614d2e3b7bd2b2d\u0026amp;signature=3ba5d2c4d4ef41346a0f9b4827c33f2ea2eb48f7a841d9d0ced8dde5fd50e3fc\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/edgeimpulse/ZmtueQz3qIhQbHQ2/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Edge Impulse Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5f76db\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.edgeimpulse.com/studio/projects/learning-blocks/blocks/classical-ml\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/studio/projects/learning-blocks/blocks/classical-ml.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.edgeimpulse.com/#organization\",\"name\":\"Edge Impulse Documentation\",\"url\":\"https://docs.edgeimpulse.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/edgeimpulse/-Yjt9HB8VCOXQC8H/.assets/logos/ei-logo-light.svg?fit=max\u0026auto=format\u0026n=-Yjt9HB8VCOXQC8H\u0026q=85\u0026s=a26ac03680700105c38fa0507df4fee2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.edgeimpulse.com#website\",\"name\":\"Edge Impulse Documentation\",\"url\":\"https://docs.edgeimpulse.com\",\"publisher\":{\"@id\":\"https://docs.edgeimpulse.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.edgeimpulse.com/studio/projects/learning-blocks/blocks/classical-ml#webpage\",\"url\":\"https://docs.edgeimpulse.com/studio/projects/learning-blocks/blocks/classical-ml\",\"name\":\"Classical ML\",\"description\":\"Train scikit-learn based classical ML classifiers and regressors from Edge Impulse processing block features.\",\"dateModified\":\"2026-09-13T14:39:22.538Z\",\"isPartOf\":{\"@id\":\"https://docs.edgeimpulse.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.edgeimpulse.com/studio/projects/learning-blocks/blocks/classical-ml#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.edgeimpulse.com/studio/projects/learning-blocks/blocks/classical-ml#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"PROJECTS\",\"item\":\"https://docs.edgeimpulse.com/studio/projects/dashboard\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Learning blocks\",\"item\":\"https://docs.edgeimpulse.com/studio/projects/learning-blocks\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Blocks\",\"item\":\"https://docs.edgeimpulse.com/studio/projects/learning-blocks/blocks/anomaly-detection-custom\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Classical ML\",\"item\":\"https://docs.edgeimpulse.com/studio/projects/learning-blocks/blocks/classical-ml\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.edgeimpulse.com/studio/projects/learning-blocks/blocks/classical-ml#article\",\"headline\":\"Classical ML\",\"name\":\"Classical ML\",\"description\":\"Train scikit-learn based classical ML classifiers and regressors from Edge Impulse processing block features.\",\"url\":\"https://docs.edgeimpulse.com/studio/projects/learning-blocks/blocks/classical-ml\",\"mainEntityOfPage\":{\"@id\":\"https://docs.edgeimpulse.com/studio/projects/learning-blocks/blocks/classical-ml#webpage\"},\"dateModified\":\"2026-09-13T14:39:22.538Z\",\"publisher\":{\"@id\":\"https://docs.edgeimpulse.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.edgeimpulse.com#website\"}}]}\u003c/script>","siteName":"Edge Impulse Documentation","nav":{"global":{"anchors":[{"anchor":"Forum","icon":"discourse","href":"https://forum.edgeimpulse.com"},{"anchor":"Discord","icon":"discord","href":"https://discord.gg/edgeimpulse"},{"anchor":"GitHub","icon":"github","href":"https://github.com/edgeimpulse"}]},"tabs":[{"tab":"Knowledge","pages":[{"title":"Knowledge","href":""}]},{"tab":"Studio","groups":[{"group":"OVERVIEW","icon":"map","pages":[{"title":"Studio","href":"/studio"},{"title":"Account settings","sidebarTitle":"Account settings","href":"/studio/account-settings"}]},{"group":"PROJECTS","icon":"folder-tree","pages":[{"group":"Dashboard","pages":[{"title":"Dashboard","sidebarTitle":"Overview","href":"/studio/projects/dashboard"},{"title":"API keys","href":"/studio/projects/dashboard/api-keys"},{"title":"Target device","href":"/studio/projects/dashboard/target-device"},{"title":"Bring your own model (BYOM)","href":"/studio/projects/dashboard/byom"}]},{"title":"Devices","href":"/studio/projects/devices"},{"group":"Data acquisition","pages":[{"title":"Data acquisition","sidebarTitle":"Overview","href":"/studio/projects/data-acquisition"},{"group":"Dataset","pages":[{"title":"Dataset","sidebarTitle":"Overview","href":"/studio/projects/data-acquisition/dataset"},{"title":"Uploader","href":"/studio/projects/data-acquisition/dataset/uploader"},{"title":"Define dataset split","sidebarTitle":"Splits","href":"/studio/projects/data-acquisition/dataset/splits"},{"title":"Metadata","href":"/studio/projects/data-acquisition/dataset/metadata"},{"title":"Multi-label data","href":"/studio/projects/data-acquisition/dataset/multi-label"},{"title":"Tabular data","href":"/studio/projects/data-acquisition/dataset/tabular-data"},{"title":"Advanced dataset settings","sidebarTitle":"Advanced settings","href":"/studio/projects/data-acquisition/dataset/advanced-settings"}]},{"title":"Data explorer","href":"/studio/projects/data-acquisition/data-explorer"},{"title":"Data sources","href":"/studio/projects/data-acquisition/data-sources"},{"title":"Synthetic data","href":"/studio/projects/data-acquisition/synthetic-data"},{"title":"Labeling queue","href":"/studio/projects/data-acquisition/labeling-queue"},{"title":"AI labeling","href":"/studio/projects/data-acquisition/ai-labeling"},{"title":"CSV Wizard","href":"/studio/projects/data-acquisition/csv-wizard"}]},{"title":"Experiments","href":"/studio/projects/experiments"},{"group":"EON Tuner","pages":[{"title":"EON Tuner","sidebarTitle":"Overview","href":"/studio/projects/eon-tuner"},{"title":"Search space","href":"/studio/projects/eon-tuner/search-space"}]},{"title":"Impulse design","href":"/studio/projects/impulse-design"},{"group":"Processing blocks","pages":[{"title":"Processing blocks","sidebarTitle":"Overview","href":"/studio/projects/processing-blocks"},{"title":"Feature explorer","href":"/studio/projects/processing-blocks/feature-explorer"},{"group":"Blocks","pages":[{"title":"Audio MFCC","href":"/studio/projects/processing-blocks/blocks/audio-mfcc"},{"title":"Audio MFE","href":"/studio/projects/processing-blocks/blocks/audio-mfe"},{"title":"Audio Syntiant","href":"/studio/projects/processing-blocks/blocks/audio-syntiant"},{"title":"EEG","href":"/studio/projects/processing-blocks/blocks/eeg"},{"title":"Flatten","href":"/studio/projects/processing-blocks/blocks/flatten"},{"title":"HR/HRV","href":"/studio/projects/processing-blocks/blocks/hr-hrv"},{"title":"Image","href":"/studio/projects/processing-blocks/blocks/image"},{"title":"IMU Syntiant","href":"/studio/projects/processing-blocks/blocks/imu-syntiant"},{"title":"Raw data","href":"/studio/projects/processing-blocks/blocks/raw-data"},{"title":"Spectral analysis","href":"/studio/projects/processing-blocks/blocks/spectral-analysis"},{"title":"Spectrogram","href":"/studio/projects/processing-blocks/blocks/spectrogram"},{"title":"Custom processing blocks","href":"/studio/organizations/custom-blocks/custom-processing-blocks"}]}]},{"group":"Learning blocks","pages":[{"title":"Learning blocks","sidebarTitle":"Overview","href":"/studio/projects/learning-blocks"},{"title":"Expert mode","href":"/studio/projects/learning-blocks/expert-mode"},{"title":"Training graphs","href":"/studio/projects/learning-blocks/training-graphs"},{"group":"Blocks","pages":[{"title":"Anomaly detection","href":"/studio/projects/learning-blocks/blocks/anomaly-detection-custom"},{"title":"Anomaly detection (GMM)","href":"/studio/projects/learning-blocks/blocks/anomaly-detection-gmm"},{"title":"Anomaly detection (K-means)","href":"/studio/projects/learning-blocks/blocks/anomaly-detection-k-means"},{"title":"Classification","description":"Train neural network classifiers and review model performance after feature extraction.","href":"/studio/projects/learning-blocks/blocks/classification"},{"title":"Classical ML","href":"/studio/projects/learning-blocks/blocks/classical-ml"},{"group":"Object detection","pages":[{"title":"Object detection","sidebarTitle":"Overview","description":"Compare built-in object detection architectures and choose a model for bounding-box projects.","href":"/studio/projects/learning-blocks/blocks/object-detection"},{"title":"YOLO-Pro","href":"/studio/projects/learning-blocks/blocks/object-detection/yolo-pro"},{"title":"FOMO","href":"/studio/projects/learning-blocks/blocks/object-detection/fomo"},{"title":"MobileNetV2 SSD FPN","href":"/studio/projects/learning-blocks/blocks/object-detection/mobilenetv2-ssd-fpn"}]},{"title":"Regression","href":"/studio/projects/learning-blocks/blocks/regression"},{"title":"Transfer learning (images)","href":"/studio/projects/learning-blocks/blocks/transfer-learning-images"},{"title":"Transfer learning (keyword spotting)","href":"/studio/projects/learning-blocks/blocks/transfer-learning-keyword"},{"title":"Visual anomaly detection (FOMO-AD)","href":"/studio/projects/learning-blocks/blocks/visual-anomaly-detection-fomo-ad"},{"title":"Custom learning blocks","href":"/studio/organizations/custom-blocks/custom-learning-blocks"},{"title":"NVIDIA TAO","tag":"deprecated","href":"/studio/projects/learning-blocks/blocks/nvidia-tao"}]}]},{"title":"Retrain model","href":"/studio/projects/retrain-model"},{"title":"Live classification","href":"/studio/projects/live-classification"},{"title":"Model testing","href":"/studio/projects/model-testing"},{"title":"Performance calibration","href":"/studio/projects/performance-calibration"},{"group":"Post-processing","pages":[{"title":"Object tracking","href":"/studio/projects/post-processing/object-tracking"}]},{"group":"Deployment","pages":[{"title":"Deployment","sidebarTitle":"Overview","href":"/studio/projects/deployment"},{"title":"EON Compiler","href":"/studio/projects/deployment/eon-compiler"},{"title":"EON Operator Matrix (TensorFlow 2.19)","sidebarTitle":" Operator matrix (2.19)","mode":"wide","href":"/studio/projects/deployment/eon-compiler-operator-matrix-2-19"},{"title":"Custom deployment blocks","href":"/studio/organizations/custom-blocks/custom-deployment-blocks"},{"title":"Multi-project deployment","href":"/studio/organizations/multi-project-deployment"}]},{"title":"Versioning","href":"/studio/projects/versioning"}]},{"group":"ORGANIZATIONS","icon":"building","pages":[{"title":"Dashboard","href":"/studio/organizations/dashboard"},{"title":"Data campaigns","href":"/studio/organizations/data-campaigns"},{"title":"Users","href":"/studio/organizations/users"},{"title":"Projects","href":"/studio/organizations/projects"},{"title":"Multi-project deployment","href":"/studio/organizations/multi-project-deployment"},{"group":"Data","pages":[{"title":"Data","sidebarTitle":"Overview","href":"/studio/organizations/data"},{"title":"Cloud data storage","href":"/studio/organizations/data/cloud-data-storage"}]},{"title":"Data pipelines","href":"/studio/organizations/data-pipelines"},{"title":"Data transformation","href":"/studio/organizations/data-transformation"},{"group":"Transformation blocks","pages":[{"title":"Transformation blocks","sidebarTitle":"Overview","href":"/studio/organizations/transformation-blocks"},{"group":"Blocks","pages":[{"title":"Time-series data augmentation","href":"/studio/organizations/transformation-blocks/blocks/time-series-data-augmentation"}]}]},{"title":"Upload portals","href":"/studio/organizations/upload-portals"},{"group":"Custom blocks","pages":[{"title":"Custom blocks","sidebarTitle":"Overview","href":"/studio/organizations/custom-blocks"},{"title":"Custom AI labeling blocks","href":"/studio/organizations/custom-blocks/custom-ai-labeling-blocks"},{"title":"Custom deployment blocks","href":"/studio/organizations/custom-blocks/custom-deployment-blocks"},{"title":"Custom learning blocks","href":"/studio/organizations/custom-blocks/custom-learning-blocks"},{"title":"Custom processing blocks","href":"/studio/organizations/custom-blocks/custom-processing-blocks"},{"title":"Custom synthetic data blocks","href":"/studio/organizations/custom-blocks/custom-synthetic-data-blocks"},{"title":"Custom transformation blocks","href":"/studio/organizations/custom-blocks/custom-transformation-blocks"}]},{"title":"Secrets","href":"/studio/organizations/secrets"}]}]},{"tab":"Hardware","pages":[{"title":"Hardware","href":"/hardware"}]},{"tab":"Tools","pages":[{"title":"Tools","href":"/tools"}]},{"tab":"APIs","pages":[{"title":"APIs","href":"/apis"}]},{"tab":"Tutorials","pages":[{"title":"Tutorials","href":"/tutorials"}]},{"tab":"Projects","pages":[{"title":"Projects","href":"/projects"}]},{"tab":"Datasets","pages":[{"title":"Datasets","href":"/datasets"}]}]},"title":"Classical ML - Edge Impulse Documentation","buildId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","deploymentId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-DYplxqhs.js","DynamicMarkdown-Cc6AuSHS.js","zoom-image-lightbox-BNnMwe0F.js","lightbox-handle-r17bVUz3.js"]}