我有一个非常简单的深度为1的决策树,我想计算一片叶子预测的准确性。
angular
树插图:
我想计算正确的子叶的准确性。
我尝试使用<button type="button" class="btn btn-primary" data-dismiss="modal"
ng-click="functionName()"> Do Something </button>
$scope.functionName = function () {
angular.element('#modalId').toggle();
$.ajax({ ajax call })
}
方法在clf = tree.DecisionTreeClassifier(criterion='entropy', max_depth=1, min_samples_split=0.005)
clf_fit = clf.fit( features_train, target_train)
tree.export_graphviz(clf_fit, out_file="tree.dot", feature_names=variables)
graph = pydotplus.graphviz.graph_from_dot_file("tree.dot")
Image(graph.create_png())
的基础上选择数据点但没有成功。