ValueError: X needs to contain only non-negative integers.

for feature in short_cate_feature:   enc.fit(data[feature].values.reshape(-1, 1))   base_train_csr = sparse.hstack((base_train_csr, enc.transform(train_x[feature].values.reshape(-1, 1))), 'csr','bool'
相關文章
相關標籤/搜索