解决AttributeError: module ‘sklearn.datasets‘ has no attribute ‘samples_generator‘
报错代码X, color = datasets.samples_generator.make_swiss_roll(n_samples=1500)报错信息AttributeError: module 'sklearn.datasets' has no attribute 'samples_generator'解决办法X, color = datasets.make_swiss_roll(n_samples=1500)=删除samples_generator=欢迎大家交流学习,任何问