From d9d1d581378da791a15675202804c97df02fe25d Mon Sep 17 00:00:00 2001 From: jfrery Date: Fri, 13 Oct 2023 09:19:12 +0000 Subject: [PATCH] chore: prepare release 1.2.1 --- docs/conf.py | 2 +- docs/developer-guide/api/README.md | 1 + .../api/concrete.ml.sklearn.tree_to_numpy.md | 24 +++++++++++++++---- .../api/concrete.ml.sklearn.xgb.md | 14 +++++++++-- pyproject.toml | 2 +- src/concrete/ml/version.py | 2 +- 6 files changed, 36 insertions(+), 9 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index b1429bd67..8c30117e9 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -27,7 +27,7 @@ root_url = root_url if root_url.endswith("/") else root_url + "/" # The full version, including alpha/beta/rc tags -release = "1.2.0" +release = "1.2.1" # -- General configuration --------------------------------------------------- diff --git a/docs/developer-guide/api/README.md b/docs/developer-guide/api/README.md index e9bc4a324..59bdbf92d 100644 --- a/docs/developer-guide/api/README.md +++ b/docs/developer-guide/api/README.md @@ -356,6 +356,7 @@ - [`quantizers.fill_from_kwargs`](./concrete.ml.quantization.quantizers.md#function-fill_from_kwargs): Fill a parameter set structure from kwargs parameters. - [`p_error_search.compile_and_simulated_fhe_inference`](./concrete.ml.search_parameters.p_error_search.md#function-compile_and_simulated_fhe_inference): Get the quantized module of a given model in FHE, simulated or not. - [`tree_to_numpy.add_transpose_after_last_node`](./concrete.ml.sklearn.tree_to_numpy.md#function-add_transpose_after_last_node): Add transpose after last node. +- [`tree_to_numpy.assert_add_node_and_constant_in_xgboost_regressor_graph`](./concrete.ml.sklearn.tree_to_numpy.md#function-assert_add_node_and_constant_in_xgboost_regressor_graph): Assert if an Add node with a specific constant exists in the ONNX graph. - [`tree_to_numpy.get_onnx_model`](./concrete.ml.sklearn.tree_to_numpy.md#function-get_onnx_model): Create ONNX model with Hummingbird convert method. - [`tree_to_numpy.preprocess_tree_predictions`](./concrete.ml.sklearn.tree_to_numpy.md#function-preprocess_tree_predictions): Apply post-processing from the graph. - [`tree_to_numpy.tree_onnx_graph_preprocessing`](./concrete.ml.sklearn.tree_to_numpy.md#function-tree_onnx_graph_preprocessing): Apply pre-processing onto the ONNX graph. diff --git a/docs/developer-guide/api/concrete.ml.sklearn.tree_to_numpy.md b/docs/developer-guide/api/concrete.ml.sklearn.tree_to_numpy.md index d646955ea..43982a259 100644 --- a/docs/developer-guide/api/concrete.ml.sklearn.tree_to_numpy.md +++ b/docs/developer-guide/api/concrete.ml.sklearn.tree_to_numpy.md @@ -56,6 +56,22 @@ ______________________________________________________________________ +## function `assert_add_node_and_constant_in_xgboost_regressor_graph` + +```python +assert_add_node_and_constant_in_xgboost_regressor_graph(onnx_model: ModelProto) +``` + +Assert if an Add node with a specific constant exists in the ONNX graph. + +**Args:** + +- `onnx_model` (onnx.ModelProto): The ONNX model. + +______________________________________________________________________ + + + ## function `add_transpose_after_last_node` ```python @@ -70,7 +86,7 @@ Add transpose after last node. ______________________________________________________________________ - + ## function `preprocess_tree_predictions` @@ -94,7 +110,7 @@ Apply post-processing from the graph. ______________________________________________________________________ - + ## function `tree_onnx_graph_preprocessing` @@ -117,7 +133,7 @@ Apply pre-processing onto the ONNX graph. ______________________________________________________________________ - + ## function `tree_values_preprocessing` @@ -144,7 +160,7 @@ Pre-process tree values. ______________________________________________________________________ - + ## function `tree_to_numpy` diff --git a/docs/developer-guide/api/concrete.ml.sklearn.xgb.md b/docs/developer-guide/api/concrete.ml.sklearn.xgb.md index 1da667615..c7322e60c 100644 --- a/docs/developer-guide/api/concrete.ml.sklearn.xgb.md +++ b/docs/developer-guide/api/concrete.ml.sklearn.xgb.md @@ -240,7 +240,7 @@ Is None if the model is not fitted. ______________________________________________________________________ - + ### method `dump_dict` @@ -260,10 +260,20 @@ fit(X, y, *args, **kwargs) → Any ______________________________________________________________________ - + ### classmethod `load_dict` ```python load_dict(metadata: Dict) ``` + +______________________________________________________________________ + + + +### method `post_processing` + +```python +post_processing(y_preds: ndarray) → ndarray +``` diff --git a/pyproject.toml b/pyproject.toml index 1c51394eb..6112fc3ae 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "concrete-ml" -version = "1.2.0" +version = "1.2.1" description = "Concrete ML is an open-source set of tools which aims to simplify the use of fully homomorphic encryption (FHE) for data scientists." license = "BSD-3-Clause-Clear" authors = [ diff --git a/src/concrete/ml/version.py b/src/concrete/ml/version.py index 78fc8a3cc..16c66f903 100644 --- a/src/concrete/ml/version.py +++ b/src/concrete/ml/version.py @@ -1,3 +1,3 @@ """File to manage the version of the package.""" # Auto-generated by "make set_version" do not modify -__version__ = "1.2.0" +__version__ = "1.2.1"