在使用新的ColumnTransformer特性时,我正在尝试使用SKLearn 0.20.2来创建管道。我正在尝试在我的管道中使用Countvectorizer,我认为这就是问题所在。如果能帮上忙的话会很感激。from sklearn.impute import SimpleImputer# plus other necessarytext_transformer = Pipeline(steps=[
在此之前,我想用CountVectorizer.转换一个特定的列。为此,我使用管道使其更简单。# Imported the libraries....fromsklearn.preprocessing import OneHotEncoder as ohe
from sklearn.compose import ColumnTransformer as
在此之前,我想用CountVectorizer转换一个特定的列。为此,我使用管道使其更简单。# Imported the libraries....fromsklearn.preprocessing import OneHotEncoder as ohe
from sklearn.compose import ColumnTransformer as c