decision-tree

partykit: justify text in terminal node when unequal regressors' name lengths are included

对着背影说爱祢 提交于 2021-01-05 07:29:29
问题 I am trying to edit the esthetics of the terminal node to: Increase the size of the box such that the full names are listed inside of it. If possible, justify the text inside when in the presence of unequal regressors' name lengths to produce a table-like view of the terminal nodes. Below I listed my attempts, using the gp option (fontsize = 10, boxwidth = 10) , but I suspect that I am using the wrong esthetics options. The mysummary function is highly inspired in this question. library(

partykit: justify text in terminal node when unequal regressors' name lengths are included

喜你入骨 提交于 2021-01-05 07:26:46
问题 I am trying to edit the esthetics of the terminal node to: Increase the size of the box such that the full names are listed inside of it. If possible, justify the text inside when in the presence of unequal regressors' name lengths to produce a table-like view of the terminal nodes. Below I listed my attempts, using the gp option (fontsize = 10, boxwidth = 10) , but I suspect that I am using the wrong esthetics options. The mysummary function is highly inspired in this question. library(

Tidymodel Package: General linear models (glm) and decision tree (bagged trees, boosted trees, and random forest) models in R

邮差的信 提交于 2020-12-13 03:13:18
问题 Issue I am attempting to undertake an analysis using the Tidymodels Package in R . I am following this tutorial below regarding decision tree learning in R:- Tutorial https://bcullen.rbind.io/post/2020-06-02-tidymodels-decision-tree-learning-in-r/ I have a data frame called FID (see below) where the dependent variable is the frequency (numeric) , and the predictor variables are:- Year (numeric), Month (factor), Monsoon (factor), and Days (numeric). I believe I have successfully followed the

Catboost plot_tree understanding

风格不统一 提交于 2020-08-26 06:57:46
问题 When plotting a tree from catboost, it shows val in leaves; what do these values represent? I can't find the answer in their official tutorial on plotting, nor are there any such questions answered anywhere that I could find. Like: LightGBM plot_tree() Leaf numbers What' the meaning of "Val" in the visualization of a lightgbm tree? https://github.com/catboost/catboost/issues?q=plot_tree 来源: https://stackoverflow.com/questions/63407613/catboost-plot-tree-understanding

Catboost plot_tree understanding

我是研究僧i 提交于 2020-08-26 06:57:46
问题 When plotting a tree from catboost, it shows val in leaves; what do these values represent? I can't find the answer in their official tutorial on plotting, nor are there any such questions answered anywhere that I could find. Like: LightGBM plot_tree() Leaf numbers What' the meaning of "Val" in the visualization of a lightgbm tree? https://github.com/catboost/catboost/issues?q=plot_tree 来源: https://stackoverflow.com/questions/63407613/catboost-plot-tree-understanding

Using GridSearchCV with AdaBoost and DecisionTreeClassifier

。_饼干妹妹 提交于 2020-08-20 18:33:29
问题 I am attempting to tune an AdaBoost Classifier ("ABT") using a DecisionTreeClassifier ("DTC") as the base_estimator. I would like to tune both ABT and DTC parameters simultaneously, but am not sure how to accomplish this - pipeline shouldn't work, as I am not "piping" the output of DTC to ABT. The idea would be to iterate hyper parameters for ABT and DTC in the GridSearchCV estimator. How can I specify the tuning parameters correctly? I tried the following, which generated an error below. [IN