fixed an indexing problem where the indexing endpoints for training, test, validation sets were not integers (float array multiplied by int without cast).