Я попытался запустить мою программу, но получил ошибку:
SyntaxError: (unicode error)
'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
Вот мой код:
import sklearn.datasets as skd
categories = ['alt.atheism', 'soc.religion.christian','comp.graphics', 'sci.med']
news_train = skd.load_files('C:\Users\ahmir\Downloads\Compressed\SkdLearnDataSet\20news-bydate-train', categories= categories, encoding= 'ISO-8859-1')
news_test = skd.load_files('C:\Users\ahmir\Downloads\Compressed\SkdLearnDataSet\20news-bydate-test',categories= categories, encoding= 'ISO-8859-1')