Skip to content

V1.2.2 fixed some non-critical bugs in previous versions

Latest
Compare
Choose a tag to compare
@Lantianzz Lantianzz released this 17 Jan 17:48
· 1 commit to master since this release
a90f13b

V1.2.2 fixed some non-critical bugs in previous versions.

  1. Corrected the use of deprecated parameters
  • When using plt.annotate() in previous versions, parameter s is used to pass in the text. However, this parameter has been renamed as text and from Python3.9 continuing using s may cause in TypeError annotate() missing 1 required positional argument: 'text'. In V1.2.2 parameter text is used when using plt.annotate()
  1. Change default parameter values: Change the default value of parameter min_intervals in ChiMerge from 1 to 2.

  2. Adjust the naming of private variables in classes:

  • Several classes in ScorecardBundle are inherited from the BaseEstimator and TransformerMixin 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 like cannot 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 andLogisticRegressionScoreCardto avoid such problem.