我不知道为什么查了半天都查不见这样的词条,可能没啥用?最终在https://datascience.stackexchange.com/questions/82217/how-to-find-parameters-used-in-decision-tree-algorithm这里找到了。
最简单的方式就是estimator.get_params()。estimator是你的模型。
在简单说一下呢个文章里写了啥, 在sklearn0.23之前,你直接打个estimator就能出来,但在这个版本之后你需要输入下面这句,然后再打estimator
sklearn.set_config(print_changed_only=False)