Analysis Of Dictionary Learning And Random Forest Under Data-Inspired Models