分类树实例:分类树在合成数据集上的表现
代码分解 在不同结构的据集上测试一下决策树的效果(二分型,月亮形,环形) 导入 import numpy as np
from matplotlib import pyplot as plt
from matplotlib.colors import Li…
训练图片:mnist160
测试结果:1000次训练学习率为0.1时,准确率在60%以上
学习的图片越多,训练的时候越长(比如把 epochs*10 10000或更高时)效果越好 using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Windo…