changed the train from file method to get file path and changed extracted the not matrix sample data number into a constant SAMPLE_ROW_SHIFT