concept learner in category machine learning

This is an excerpt from Manning's book Grokking Machine Learning.
Boosting is very similar to bagging, except now we don’t select the weak learners at random, but we select them in a more intelligent way. The way we do this is by training each learner to focus on the weaknesses of the previous ones. In other words, each learner tries really hard to correctly classify the points in which the previous classifiers. How do we do this? We start by training the first learner. We now look at which data points did the learner classify correctly. We shrink them by weighting them by a number smaller than 1. Then we look at the data points that the learner didn’t classify correctly. We enlarge them by weighting them by a number larger than 1. Now we have a new weighted dataset, where the errors of the first learner are weighted more heavily than the rest of the points. We now fit a second learner on this new dataset. The second learner, naturally, will try to fit the errors of the previous learner better. After the second learner, we now reweight the data based on which points it classified correctly and incorrectly. We now build a third learner on this new weighted dataset. We continue in this fashion, until we end up with a set of learners, each focusing on the previous learners’ weaknesses. As a final step, we make the classifiers vote. The voting canbe weighted if we need to. The best way to learn boosting is to look at a very famous example of it: AdaBoost.

This is an excerpt from Manning's book Machine Learning with R, the tidyverse, and mlr.
Imagine you are trying to get a toddler to learn about shapes by using blocks of wood. In front of them, they have a ball, a cube, and a star. You ask them to show you the cube, and if they point to the correct shape, you tell them they are correct; if they are incorrect, you also tell them. You repeat this procedure until the toddler can identify the correct shape almost all of the time. This is called supervised learning, because you, the person who already knows which shape is which, are supervising the learner by telling them the answers.
Now imagine a toddler is given multiple balls, cubes, and stars but this time is also given three bags. The toddler has to put all the balls in one bag, the cubes in another bag, and the stars in another, but you won’t tell them if they’re correct—they have to work it out for themselves from nothing but the information they have in front of them. This is called unsupervised learning, because the learner has to identify patterns themselves with no outside help.
Define the learner. The learner is simply the name of the algorithm we plan to use, along with any additional arguments the algorithm accepts. Train the model. This stage is what it sounds like: you pass the task to the learner, and the learner generates a model that you can use to make future predictions.
diabetesTask <- makeClassifTask(data = diabetesTib, target = "class") knn <- makeLearner("classif.knn", par.vals = list("k" = 2))Great! Before we train the final model on all the data, let’s cross-validate the learner. Ordinarily, you would decide on a CV strategy most appropriate for your data; but for the purposes of demonstration, I’m going to show you holdout, k-fold, and leave-one-out CV.
As you’ll see, the first and second components are combined together in a single character argument to define which algorithm will be used (for example, "classif.knn"). The components of a learner are shown in figure 3.7.
Figure 3.7. Defining a learner in mlr. A learner definition consists of the class of algorithm you want to use, the name of the individual algorithm, and, optionally, any additional arguments to control the algorithm’s behavior.
![]()
We use the makeLearner() function to define a learner. The first argument to the makeLearner() function is the algorithm that we’re going to use to train our model. In this case, we want to use the kNN algorithm, so we supply "classif.knn" as the argument. See how this is the class ("classif.) joined to the name (knn") of the algorithm?