You can use numpy.genfromtxt() or numpy.loadtxt() as follows:
from sklearn.cross_validation import KFold Xy = numpy.genfromtxt('yourfile.csv', delimiter=",")
In the code snippet, we ignored passing test .
Now you can import your data set into the main module or script or something else, but keep in mind that you also delete the entire test part.
Or you can just pass valid sets as test :
In the latter case, we do not need to worry about the sections of the main modules related to the excluded test set, but as estimates (if any) you will get validation scores twice, i.e. test scores .
Note. . I donβt know what mnist example is this, but probably after you have prepared your data as indicated above, you also need to make additional changes to your trainer module to match your data. For example: a data entry form, an output form, that is, the number of classes, for example. in your case the first 773 , the last 2 .
source share