Przykład enkoder docelowy Sklearn
encoder = TargetEncoder()df['Animal Encoded'] = encoder.fit_transform(df['Animal'], df['Target'])
Eager Eland
encoder = TargetEncoder()df['Animal Encoded'] = encoder.fit_transform(df['Animal'], df['Target'])