Skip to content

Release: 0.1.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 21:27
  • Added LogitEncoder, which encodes categorical features with the log
    odds, coefficients, or marginal effects from a logit model of a binary or
    multiclass outcome.
    • Joint (one model for all columns, the default) and univariate (one
      model per column) models.
    • scikit-learn and statsmodels backends, which minimize the same
      penalized log loss.
    • L2, L1, and elastic net penalties, and a choice of reference category.
    • Multiclass outcomes, with a column per class against the most frequent
      class, fit as baseline-category logits.
    • return_uncertainty, which adds each value's standard error and each
      category's number of training rows.
    • interactions, which encodes combinations of columns as columns of
      their own.
    • Cross-fitting of the training rows in fit_transform, as in
      scikit-learn's TargetEncoder.
    • The category_encoders options for columns, invariant columns, output
      type, and missing and unknown categories.
    • Passes scikit-learn's check_estimator.
  • Added logit_encode.utils.BaseEncoder, SupervisedTransformerMixin, and
    OutputColumn, which mirror category_encoders' base classes but follow
    scikit-learn's estimator contract.
  • Added benchmarks against every category_encoders encoder and
    scikit-learn's TargetEncoder on 13 OpenML datasets, with the results in
    the documentation.
  • Added a citation file and a citation section in the README.