watex.models.displayCVTables#
- watex.models.displayCVTables(cvres, cvmodels)[source]#
Display the cross-validation results from all models at each k-fold.
- Parameters:
cvres (dict of (str, Array-like)) – cross validation results after training the models of number of parameters equals to N. The str fits the each parameter stored during the cross-validation while the value is stored in Numpy array.
cvmnodels (list) – list of fined-tuned models.
Examples
>>> from watex.datasets import fetch_data >>> from watex.models import GridSearchMultiple, displayCVTables >>> X, y = fetch_data ('bagoue prepared') >>> gobj =GridSearchMultiple(estimators = estimators, grid_params = grid_params , cv =4, scoring ='accuracy', verbose =1, savejob=False , kind='GridSearchCV') >>> gobj.fit(X, y) >>> displayCVTables (cvmodels=[gobj.models.SVC] , cvres= [gobj.models.SVC.cv_results_ ]) ...