Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

What is target variable and independent variable in machine learning

Target Variables

The target variable, also known as the dependent variable or response variable, is the variable that the machine learning model is trying to predict or classify. It is the outcome or result variable.

Examples of target variables:

  • In a housing price prediction model, the target variable might be the price of a house.
  • In a spam email classification model, the target variable could be whether an email is spam (1) or not spam (0).

Independent Variables

Independent variables, also known as features or predictors, are the input variables used by the machine learning model to make predictions or classifications.

Examples of independent variables:

  • Continuing with the examples mentioned earlier, in a housing price prediction model, independent variables might include features like the number of bedrooms, square footage, location, etc.
  • In a spam email classification model, the features could include w