From 613aee9ab2a4be9faa810d04e28e01f122280be1 Mon Sep 17 00:00:00 2001 From: Maulik Patel <21225464+maupatel@users.noreply.github.com> Date: Mon, 17 Aug 2026 16:35:22 -0500 Subject: [PATCH] Fix incorrect precision example in GeometricWidthDiscretiser docs --- docs/user_guide/discretisation/GeometricWidthDiscretiser.rst | 2 +- feature_engine/discretisation/geometric_width.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/user_guide/discretisation/GeometricWidthDiscretiser.rst b/docs/user_guide/discretisation/GeometricWidthDiscretiser.rst index 6de50db31..74e150763 100644 --- a/docs/user_guide/discretisation/GeometricWidthDiscretiser.rst +++ b/docs/user_guide/discretisation/GeometricWidthDiscretiser.rst @@ -43,7 +43,7 @@ This discretisation technique is great when the distribution of the variable is to work properly, it might help to increase the precision value, that is, the number of decimal values allowed to define each bin. If the variable has a narrow range or you are sorting into several bins, allow greater precision - (i.e., if precision = 3, then 0.001; if precision = 7, then 0.0001). + (i.e., if precision = 3, then 0.001; if precision = 7, then 0.0000001). :class:`GeometricWidthDiscretiser()` works only with numerical variables. A list of variables to discretise can be indicated, or the discretiser will automatically select diff --git a/feature_engine/discretisation/geometric_width.py b/feature_engine/discretisation/geometric_width.py index 6da74339c..709381c71 100644 --- a/feature_engine/discretisation/geometric_width.py +++ b/feature_engine/discretisation/geometric_width.py @@ -84,7 +84,7 @@ class GeometricWidthDiscretiser(BaseDiscretiser): to work properly, it might help to increase the precision value, that is, the number of decimal values allowed to define each bin. If the variable has a narrow range or you are sorting into several bins, allow greater precision - (i.e., if precision = 3, then 0.001; if precision = 7, then 0.0001). + (i.e., if precision = 3, then 0.001; if precision = 7, then 0.0000001). The :class:`GeometricWidthDiscretiser()` works only with numerical variables. A list of variables to discretise can be indicated, or the discretiser will