Skip to content

Commit

Permalink
Updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
vruusmann committed Oct 30, 2024
1 parent a4dbb6f commit a5b9ec8
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 3 deletions.
37 changes: 37 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 #

Expand Down

0 comments on commit a5b9ec8

Please sign in to comment.