Open leonardo-moraes-inbev opened 1 year ago
I was able to solve that issue by: downgrading the package to mlflow==2.2.1
and using ColumnTransformer
, or Pipeline
, instead the transformer directly.
def transformer_fn():
categorical_features = ["feat1", "feat2", ..., "featn"]
return ColumnTransformer(
transformers=[
("onehot", OneHotEncoder(categories="auto"), categorical_features),
]
)
Hello, I have tried to implement a simple transform using
OneHotEncoder
, but it is not working.I tested in both ways:
and
Error