Parameters
Learn about machine learning models' parameters, hyperparameters, and their importance.
Parametric model
Parametric models are functions defined by a fixed set of parameters in machine learning. These are assumed to be able to approximate the underlying pattern of the data. By adjusting the values of the parameters during the training process, these models can learn to fit the data and make accurate predictions on new inputs. Consider this function: with inputs and . This function is an instance of a class of functions of the form , where , and . Here, , and are the parameters, also known as weights, and any choice of these parameters results in an instance from the function class. Notice that the function is also an instance of the following different function class:
where , and
Examples
- is a function class parametrized by and , and it represents all the lines in 2D.
- is a class of functions that represents the weighted average of a set of objects . In this case, all the parameters are non-negative and add up to .
Note: In general if represents the input and represents the set of parameters, then is the representation of the parametric model.
Let’s take a simple example of a line in 2D as a parametric model and implement it. Try to visualize different instances of this class by changing parameters m
and c
in line 15 of the code.
Get hands-on with 1400+ tech skills courses.