From a5b9ec83d868a927e9d168bd12bb7340bafa9ad5 Mon Sep 17 00:00:00 2001 From: Villu Ruusmann Date: Wed, 30 Oct 2024 10:35:06 +0200 Subject: [PATCH] Updated documentation --- NEWS.md | 37 +++++++++++++++++++++++++++++++++++++ README.md | 6 +++--- 2 files changed, 40 insertions(+), 3 deletions(-) diff --git a/NEWS.md b/NEWS.md index 7b0e850..075fb1f 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,40 @@ +# 0.111.1 # + +## Breaking changes + +* Refactored the downgrading of PMML schema versions. + +Previously, the downgrade failed if the generated PMML document was not strictly compatible with the requested PMML schema version. Also, the downgrade failed if there were any vendor extension attributes or elements around (ie. attributes prefixed with `x-` or elements prefixed with `X-`). + +The new behaviour is to allow the downgrade to run to completion, and display a grave warning (together with the full list of incompatibilities) in the end. + +See [SkLearn2PMML-433](https://github.com/jpmml/sklearn2pmml/issues/433#issuecomment-2442652934) + +* Updated logging configuration. + +The Java backend used to employ SLF4J's default logging configuration, which prints two lines per logging event - the first line being metadata, and the second line being the actual data. + +The new logging configuration prints one line per logging event. +The decision was to drop the leading metadata line in order to de-clutter the console. + +## New features + +* Added support for using `pcre2` module functions in expressions and predicates. + +For example, performing text replacement operation on a string column: + +``` python +from sklearn2pmml.preprocessing import ExpressionTransformer + +# Replace sequences of one or more 'B' characters with a single 'c' character +transformer = ExpressionTransformer("pcre2.substitute('B+', 'c', X[0])") +``` + +## Minor improvements and fixes + +* Added support for single-quoted multiline strings in expressions and predictions. + + # 0.111.0 # ## Breaking changes diff --git a/README.md b/README.md index 738499d..090c91a 100644 --- a/README.md +++ b/README.md @@ -9,13 +9,13 @@ This package is a thin Python wrapper around the [JPMML-SkLearn](https://github. # News and Updates # -The current version is **0.111.0** (21 October, 2024): +The current version is **0.111.1** (28 October, 2024): ``` -pip install sklearn2pmml==0.111.0 +pip install sklearn2pmml==0.111.1 ``` -See the [NEWS.md](https://github.com/jpmml/sklearn2pmml/blob/master/NEWS.md#01110) file. +See the [NEWS.md](https://github.com/jpmml/sklearn2pmml/blob/master/NEWS.md#01111) file. # Prerequisites #