I see that both functions are part of data mining methods such as Gradient Boosting Regressors. I see that those are separate objects too.
How is the relationship between both in general?
Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. It only takes a minute to sign up.
Sign up to join this communityI see that both functions are part of data mining methods such as Gradient Boosting Regressors. I see that those are separate objects too.
How is the relationship between both in general?
A decision function is a function which takes a dataset as input and gives a decision as output. What the decision can be depends on the problem at hand. Examples include:
Typically, there are an infinite number of decision functions available for a problem. If we for instance are interested in estimating the height of Swedish males based on ten observations $\mathbf{x}=(x_1,x_2,\ldots,x_{10})$, we can use any of the following decision functions $d(\mathbf{x})$:
How then can we determine which of these decision functions to use? One way is to use a loss function, which describes the loss (or cost) associated with all possible decisions. Different decision functions will tend to lead to different types of mistakes. The loss function tells us which type of mistakes we should be more concerned about. The best decision function is the function that yields the lowest expected loss. What is meant by expected loss depends on the setting (in particular, whether we are talking about frequentist or Bayesian statistics).
In summary:
The loss function is what is minimized to obtain a model which is optimal in some sense. The model itself has a decision function which is used to predict.
For example, in SVM classifiers: