You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NumericalEncoder currently encodes categories to integers, without considering the integer type. Downcasting integers to int8 or int16 when possible could sometimes significantly reduce memory and avoid some memory overhead.
import pandas as pd
from aikit.transformers import NumericalEncoder
df = pd.DataFrame(data={'a': ['a', 'b', 'c'] * 1000})
x = NumericalEncoder().fit_transform(df)
x.dtypes
The text was updated successfully, but these errors were encountered:
NumericalEncoder currently encodes categories to integers, without considering the integer type. Downcasting integers to int8 or int16 when possible could sometimes significantly reduce memory and avoid some memory overhead.
The text was updated successfully, but these errors were encountered: