важность функции из моделей autoxgboost - PullRequest
0 голосов
/ 29 января 2020

У меня есть модели, которые автоматически настраиваются с помощью autoxgboost, который также использует mlr, и не могли бы вы посоветовать, как я могу использовать getFeatureImportance на обученной модели?

system.time(tuned.labeled.autoxgboost <- autoxgboost(labeled_task))
preds.labeled.autoxgboost <- predict(tuned.labeled.autoxgboost$final.model, newdata = labeled_test)
class(tuned.labeled.autoxgboost)
[1] "AutoxgbResult"
class(tuned.labeled.autoxgboost$final.model)
[1] "CPOModel" "BaseWrapperModel" "WrappedModel"
getFeatureImportance(tuned.labeled.autoxgboost$final.model)
Error in UseMethod("getFeatureImportanceLearner") :
no applicable method for 'getFeatureImportanceLearner' applied to an object of class "c('regr.xgboost.custom', 'RLearnerRegr', 'RLearner', 'Learner')"
sapply(tuned.labeled.autoxgboost$final.model,class)
$learner
[1] "CPOLearner" "BaseWrapper" "Learner"

$learner.model
[1] "CPOWrappedModel" "ChainModel" "WrappedModel"

$task.desc
[1] "RegrTaskDesc" "SupervisedTaskDesc" "TaskDesc"

$subset
[1] "integer"

$features
[1] "character"

$factor.levels
[1] "list"

$time
[1] "numeric"

$dump
[1] "NULL"

Должен ли я использовать оптимизированные параметры для установить ученика xgboost в mlr и затем запустить getFeatureImportance?

Спасибо.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...