# Regression Model for Salary Prediction

**URL:** <https://forum.knime.com/t/regression-model-for-salary-prediction/76405>\
**Category:** KNIME Analytics Platform\
**Created:** [January 7, 2024, 7:11pm UTC](https://forum.knime.com/t/regression-model-for-salary-prediction/76405 "2024-01-07T19:11:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [January 7, 2024, 8:00pm UTC](https://forum.knime.com/t/regression-model-for-salary-prediction/76405/2 "2024-01-07T20:00:03Z")

</div>

@Karim_Amarouche these things come to mind:

- actually there is not that much data to get a precise amout of salary. You might be better off with rounding the numbers and maybe using them in groups. Depending on what is your goal.
- also you rely heavily on one-to-many transformations for the categorical data. There might be other options \*1). Also some data can be interpreted as numeric like age or years of experience. A model might benefit from having a real number (ordinal rank maybe) instead of a fixed point in time. 10 years of experience is significantly more than 2 and carries a meaning. Maybe use the mean of a ‘categorical’ column (2-10 years can be 6 or so)
- there might be more information in the descriptions of the roles. Maybe try to extract topics or industries from there or extract a set of key words that you might be able to standardize and assigne to each case
- also from what I saw you left out the additional benefits. Especially for managers they might form a relevant part of their compensation, so leaving them out might mislead the model in thinking someone with 20+ years of experience in a senior position would only earn less money when the rest is in the extras in this dataset (_edit: just saw you used the whole number_)

More examples how to deal with regression models here:

> **[mlauber71/Machine\_Learning – ml\_regression](https://hub.knime.com/mlauber71/spaces/Machine_Learning/ml_regression~RJjztcBScoNvgljb/)**
>
> A collection of Machine Learning related workflows for binary, regression and multi-class prediction tasks. Also some data preparation techniques. You will find further examples in the main Space.
> 
> Medium: KNIME — Machine Learning and Artificial...

\*1) some more advanced data preparation can be done for example with vtreat. I have code and an article about that:

> **[Data preparation for Machine Learning with KNIME and the Python “vtreat” package](https://medium.com/low-code-for-advanced-data-science/data-preparation-for-machine-learning-with-knime-and-the-python-vtreat-package-efcaf58fa783)**
>
> TL;DR: Speed up your ML data preparation with the great Python package vtreat and just a few lines of code — wrapped in a convenient KNIME…

If you want to learn more about machine learning there are some great KNIME ressources out there:

> [@exam based Kaggle case study](https://forum.knime.com/t/exam-based-kaggle-case-study/42740/2):
>
> @Everfresh000 welcome to the KNIME forum. As a basic remark: since this is an exam the topics should be covered in the course. But anyway… If you want to start about [learning KNIME](https://kni.me/w/0N7ZMol_O-kOUHox) and machine-learning I would recommend to take these two courses on the KNIME Learning platform [https://knime.learnupon.com/](https://knime.learnupon.com/). [L1-DS] KNIME Analytics Platform for Data Scientists: Basics [L2-DS] KNIME Analytics Platform for Data Scientists: Advanced (Examples and workflows for courses are provided here: [knime/Educ…](https://hub.knime.com/knime/spaces/Education/latest/Courses~dbcwlK6J40Hvuag6/)

> [@Knime-based machine learning course?](https://forum.knime.com/t/knime-based-machine-learning-course/21876/2):
>
> First there is the ML learning part of the official course of KNIME [https://www.knime.com/knime-introductory-course/chapter6](https://www.knime.com/knime-introductory-course/chapter6) Then you could check out the KNIME press if you like more reading about things: This entry could also be relevant for you. It will also point you to the (free) Udemy course which also has a part on machine learning: Then well I will point you to two entries about some automatic machine learning with the help of KNIME and R or Python an H2O.ai since I think this wil…

---

_[View the full topic](https://forum.knime.com/t/regression-model-for-salary-prediction/76405)._
