Which line of code threw this error?
Could you explain your confusion a bit?
Subset is a convenient way of using certain indices to specify subsets of your Dataset.
While in your example you can easily split the loaded data manually, this won’t be possible in a lot of cases, where you would have to lazily load the data.