Ensemble Learning for AI Developers by Alok Kumar & Mayank Jain

Ensemble Learning for AI Developers by Alok Kumar & Mayank Jain

Author:Alok Kumar & Mayank Jain
Language: eng
Format: epub
ISBN: 9781484259405
Publisher: Apress


3.Add the metalearner, which is LogisticRegression here.

4.Call the fit method and do the predictions. Visually, it can be represented as shown in Figure 5-1.

Figure 5-1Single layer stacked ensemble

Doesn’t it feel like setting up a neural network where we stack layers to build the network?

To check the performance of the estimator in the layers, call the data attribute.print("Fit data:\n%r" % ensemble.data)

Fit data:

score-m score-s ft-m ft-s pt-m pt-s

layer-1 randomforestclassifier 0.84 0.00 0.06 0.00 0.01 0.00

layer-1 svc 0.86 0.00 0.14 0.00 0.06 0.00



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.