use sample to compare with recommenderlab package