Edit scikit-learn decisionTree
<p>I would like to edit sklearn decisionTree, 
e.g. change conditions or cut node/leaf etc.</p>

<p>But there seems to be no functions to do that, if I could export to a file, edit it to import.</p>

<p>How can I edit decisionTree?</p>

<p>Environment:</p>

<ul>
<li>Windows10</li>
<li>python3.3</li>
<li>sklearn 0.17.1</li>
</ul>

<p>If you are thinking of editing a model, I don't think there's an easy way of doing this. There's been discussions on exporting (rather visualising) the rule set<a href="http://stackoverflow.com/questions/20224526/how-to-extract-the-decision-rules-from-scikit-learn-decision-tree"> [1]</a>,<a href="http://stackoverflow.com/questions/20156951/how-do-i-find-which-attributes-my-tree-splits-on-when-using-scikit-learn"> [2]</a>, but not on importing the rule set. However, what's the point of manually trying to edit the rule set, when it fits for the most optimal solution? Then again if you really know the conditions, you can simply use a set of nested if-else conditions without using scikit-learn at all.</p>

<p>If you need to change the Impl of the splitter, you can do as @zemekeneng suggested.</p>

python scikit-learn