# Automatic Linear Regression

**URL:** <https://forum.knime.com/t/automatic-linear-regression/30430>\
**Category:** KNIME Analytics Platform\
**Created:** [February 4, 2021, 4:49pm UTC](https://forum.knime.com/t/automatic-linear-regression/30430 "2021-02-04T16:49:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gshikha16](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/g/a183cd/32.png) [@gshikha16](https://forum.knime.com/u/gshikha16)\
**Post date:** [February 4, 2021, 4:49pm UTC](https://forum.knime.com/t/automatic-linear-regression/30430/1 "2021-02-04T16:49:25Z")

</div>

Hi,

I have recently started learning about KNIME functionalities and I need help finding a way of doing the automatic data preparation and automatic variable selection in KNIME.  
For the same purpose, I have used SPSS before with the Automatic Linear Modeling feature includes (Data preparation feature - on and best model selections method, Automatic variable selection).  
How this can be done in KNIME?

Thanks,  
Shikha

---

<div class="post-metadata">

**Author:** ![Daniel\_Weikert](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/d/e47c2d/32.png) [@Daniel\_Weikert](https://forum.knime.com/u/Daniel_Weikert)\
**Post date:** [February 4, 2021, 5:57pm UTC](https://forum.knime.com/t/automatic-linear-regression/30430/2 "2021-02-04T17:57:04Z")

</div>

Hi Shikha,  
in KNIME there are several nodes which might help you. E.g. Feature Selection Node, Parameter Optimization loop are the ones I can currently think of. You might have a look at them  
br

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [February 4, 2021, 6:36pm UTC](https://forum.knime.com/t/automatic-linear-regression/30430/3 "2021-02-04T18:36:30Z")

</div>

@gshikha16 welcome to the KNIME forum

Concerning automatic model building I would like to point you to two approaches. One I built a wrapper for H2O.ai AutoML module - and one version with the added benefit of using R’s vtreat to prepare the data.

You would have to [install R on you machine and make it work with KNIME](https://hub.knime.com/mlauber71/spaces/Public/latest/_r_installation_on_knime_collection). Yes not the most comfortable setup, but hey: you get some very powerful tools that could help you with these tasks.

> [@H2O.ai AutoML in KNIME for regression problems](https://forum.knime.com/t/h2o-ai-automl-in-knime-for-regression-problems/20924):
>
> H2O.ai Automl - a powerful auto-machine-learning framework wrapped with KNIME It features various models like Random Forest or XGBoost along with Deep Learning. It has wrappers for R and Python but also could be used from KNIME. The results will be written to a folder and the models will be stored in MOJO format to be used in KNIME (as well as on a Big Data cluster via Sparkling Water). One major parameter to set is the running time the model has to test various models and do some hyperparam…

> **[H2O.ai AutoML (wrapped with R) with vtreat data preparation in KNIME for...](https://hub.knime.com/mlauber71/spaces/Public/automl/kn_automl_h2o_regression_r_vtreat~cEiWLSOKQRhqwftq/current-state)**
>
> H2O.ai AutoML (wrapped with R) with vtreat data preparation in KNIME for regression problems (with R vtreat) - a powerful auto-machine-learning framework (http…

Then KNIME is working to deploy Guided analytics and automated machine learning. I am not sure if there currently is a component for regression tasks. Maybe @paolotamag can say something about that.

> **[Blog | KNIME](https://www.knime.com/blog)**
>
> Free and open source with all your data analysis tools. Create data science solutions with the visual workflow builder, & put them into production in the enterprise.

> **[knime/Examples – Automation](https://hub.knime.com/knime/spaces/Examples/00_Components/Automation~wQtYkxMxQBgZUiYo/)**
>
> Explore this space for workflows and verified components provided by us at KNIME to use as blueprints and building blocks for creating workflows to solve your own data science use cases. – contains 14 items

---

<div class="post-metadata">

**Author:** ![paolotamag](https://forum-cdn.knime.com/user_avatar/forum.knime.com/paolotamag/32/1061_2.png) [@paolotamag](https://forum.knime.com/u/paolotamag)\
**Post date:** [February 5, 2021, 10:31am UTC](https://forum.knime.com/t/automatic-linear-regression/30430/4 "2021-02-05T10:31:46Z")

</div>

Hi there,  
KNIME Workflows and [Verified Components](https://knime.com/verified-components) offer automated machine learning only for classification task at the moment. That is:

> **[Guided Automation – simons](https://hub.knime.com/knime/spaces/Examples/latest/50_Applications/36_Guided_Analytics_for_ML_Automation/01_Guided_Analytics_for_ML_Automation/01_Guided_Analytics_for_ML_Automation)**
>
> Download the entire workflow group from the Example Server. This Guided Analytics application is made of this main workflow, which calls minor workflows within…

as well as the most recent and simplified one:

> **[AutoML Component via Interactive Views – knime](https://hub.knime.com/knime/spaces/Examples/latest/09_Enterprise/04_Integrated_Deployment/03_AutoML_Deployment/01_AutoML_Component_via_Interactive_Views)**
>
> This application is a simple example of AutoML with KNIME Software for binary and multiclass classification. The key of this example is the AutoML Component ve…

using:

> **[AutoML – knime](https://hub.knime.com/knime/spaces/Examples/latest/00_Components/Automation/AutoML)**
>
> This Component automatically trains supervised machine learning models for both binary and multiclass classification. The component is able to automate the who…

The AutoML component is made to work with other components to cover the many use cases:

> **[eXplainable Artificial Intelligence (XAI) - Simple – knime](https://hub.knime.com/knime/spaces/Examples/latest/09_Enterprise/04_Integrated_Deployment/05_Explainable_Artificial_Intelligence_(XAI)/01_Explainable_Artificial_Intelligence_(XAI)_Simple)**
>
> This application is a simple example of AutoML with KNIME Software for binary and multiclass classification. The output models are then explained via the inter…

> **[Model Monitoring with AutoML and MLOps – corey](https://hub.knime.com/knime/spaces/Examples/latest/09_Enterprise/04_Integrated_Deployment/06_Model_Monitoring_with_MLOps/01_Model_Monitoring_with_AutoML_and_MLOps)**
>
> This is an example showing how you can monitor a deployed model using Integrated Deployment and Guided Analytics. When training a classification model with the…

**Regarding AutoML for Regression Models:**

We are still working on it. For now we have an example you can look at to take inspiration that we use for education purposes in our KNIME Pros Learnathon. This is the solution of the exercise we give there to solve AutoML for regression. This is not a Verified Components and it is not recommended to work in a real use case: it does not have parameter optimization for example.

> **[KNIME Pros Learnathon - Group 3 : Automation - Solution – knime](https://hub.knime.com/knime/spaces/Education/latest/Learnathons/KNIME_Pros_Learnathon/Group_3-Automation/Group_3-Solution-Automation_Component)**
>
> Workshop content for the KNIME Pros Learnathon: Come to our new Learnathon for Advanced Users of KNIME! Today's topic is... components! Are you ready to learn …

Hopefully we will supply a more refined versions this year.

Cheers  
Paolo
