Nonuniform random feature models using derivative information