`n_samples` and `n_features` should be `np.npy_intp` instead of `int`.