Project demo: https://www.bilibili.com/video/BV1zN411A7Mc/?spm_id_from=333.999.0.0&vd_source=8f3cf4ad6c08a40d40ca6809c9c9e8ca
The complete data code is attached to this blog:
Main code:
# coding:utf-8
from math import log
import operator
import treePlotter
from collections import Counter
pre_pruning = True
post_pruning = True