V1.2.2 fixed some non-critical bugs in previous versions.
- Corrected the use of deprecated parameters
- When using
plt.annotate()
in previous versions, parameters
is used to pass in the text. However, this parameter has been renamed astext
and from Python3.9 continuing usings
may cause in TypeErrorannotate() missing 1 required positional argument: 'text'
. In V1.2.2 parametertext
is used when usingplt.annotate()
-
Change default parameter values: Change the default value of parameter
min_intervals
in ChiMerge from 1 to 2. -
Adjust the naming of private variables in classes:
- Several classes in ScorecardBundle are inherited from the
BaseEstimator
andTransformerMixin
classess in Scikit-learn, and for each parameter Scikit-learn checks whether it is existed inside the class as an property with the exact same name. The previous codes set such parameters as private variables with two underscores as prefix. This resulted in errors likecannot found __xx in class xxxx
when users try to print the instance or access these private variables. Note that this problem won't stop you from getting the correct results. - V1.2.2 adjusted the use of OOP in
ChiMerge
,WOE
andLogisticRegressionScoreCard
to avoid such problem.