一:model.fit()报错
1、IndexError: tuple index out of range
主要错误信息:
num_samples = set(int(i.shape[0]) for i in tree.flatten(data))
~~~~~~~^^^
IndexError: tuple index out of range
解决问题:
x和y的数据类型不一样。需要统一为np.narray()。不能一个是narray,一个是list类型。