RITerm.mapping#
- property RITerm.mapping: CategoryMapping#
A label-integer mapping for the clusters in this term.
Examples
>>> import pandas as pd >>> import liesel_gam as gam >>> df = pd.DataFrame({"group": ["a", "b", "a"]}) >>> term = gam.TermBuilder.from_df(df).ri("group", scale=1.0) >>> term.mapping.labels_to_integers(["a"]).tolist() [0]