predict func, dataset loads enable path and ndarray