Skip to content

Commit 77e4199

Browse files
authored
Update the stringdoc of FactorTerm in terms.py (#286)
The stringdoc for FactorTerm specifies that only 'one-hot' coding has been implemented but dummy has been implemented as well. Co-authored-by: nicoleta-kyosovska <36538203+nicoleta-kyosovska@users.noreply.github.com>
1 parent 854be02 commit 77e4199

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

pygam/terms.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -882,9 +882,8 @@ def __init__(
882882
883883
Custom penalties can be passed as a callable.
884884
885-
coding : {'one-hot'} type of contrast encoding to use.
886-
currently, only 'one-hot' encoding has been developed.
887-
this means that we fit one coefficient per category.
885+
coding : {'one-hot', 'dummy'} type of contrast encoding to use.
886+
'one-hot' keeps all columns while 'dummy' drops the first column.
888887
889888
Attributes
890889
----------

0 commit comments

Comments
 (0)