From 797c21e8ebc46490e4a24c751db235071050ca6e Mon Sep 17 00:00:00 2001 From: Cade Mack <24661281+cademack@users.noreply.github.com> Date: Tue, 28 Apr 2026 09:57:59 -0400 Subject: [PATCH] add_feature API changes --- .../advanced_capabilities/editing_case_weighting.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/user_guide/advanced_capabilities/editing_case_weighting.rst b/source/user_guide/advanced_capabilities/editing_case_weighting.rst index f04575d..48148c8 100644 --- a/source/user_guide/advanced_capabilities/editing_case_weighting.rst +++ b/source/user_guide/advanced_capabilities/editing_case_weighting.rst @@ -100,7 +100,7 @@ Adding features to a :class:`~Trainee` can be done with a single call to :meth:` .. code-block:: python - trainee.add_feature("gender", feature_value="nb", feature_attributes={"type": "nominal"}) + trainee.add_feature("gender", default_value="nb", feature_attributes={"type": "nominal"}) In this example, we use it to add a nominal feature to each case in the model with a default value of ``"nb"``. In addition, @@ -114,7 +114,7 @@ Adding & Using Case Weights .. code-block:: python - trainee.add_feature("my_case_weight", feature_value=1.0) + trainee.add_feature("my_case_weight", default_value=1.0) Note that we do not add any feature attributes here, since they are assumed to be continuous by default. Once added, the case