A parameter is a named variable passed into a function in programming and data science. In machine learning, parameters are an internal component of an algorithm to be learned from the data. Some machine learning algorithms are parametric with a fixed set of parameters like linear and logistic regressions, whilst others are non-parametric like k-nearest neighbors.