Skip to content

Commit 2de8825

Browse files
docs(data): untangle the interleaved parameter descriptions
The add_terminal_composition and padding_length descriptions were spliced into each other in both DeepLCDataset.__init__ and from_psm_list, so each parameter carried half of the other one's text and two "Default is" lines. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 98ac37c commit 2de8825

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

‎deeplc/data.py‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,15 @@ def __init__(
4242
add_ccs_features
4343
Whether to include CCS features in the encoded representation. Default is False.
4444
add_terminal_composition
45-
Whether to append N- and C-terminal group composition to the global feature
45+
Whether to append the N- and C-terminal group composition to the global
46+
feature vector, lengthening it from 55 to 67. Required by models trained on
47+
that layout; see the ``feature_spec`` recorded in such a model. Default is
48+
False.
4649
padding_length
4750
Length the per-position matrices are padded or truncated to. Must match the
4851
value the model was trained with: the fused-trunk architecture pools rather
4952
than flattens, so a mismatch changes the representation without changing any
5053
shape and would not raise. Default is 60.
51-
vector, lengthening it from 55 to 67. Required by models trained on that
52-
layout; see the ``feature_spec`` recorded in such a model. Default is False.
5354
5455
Raises
5556
------
@@ -116,13 +117,13 @@ def from_psm_list(
116117
add_ccs_features
117118
Whether to include CCS features in the encoded representation. Default is False.
118119
add_terminal_composition
119-
Whether to append terminal group composition to the global feature vector.
120+
Whether to append the N- and C-terminal group composition to the global
121+
feature vector, lengthening it from 55 to 67. Default is False.
120122
padding_length
121123
Length the per-position matrices are padded or truncated to. Must match the
122124
value the model was trained with: the fused-trunk architecture pools rather
123125
than flattens, so a mismatch changes the representation without changing any
124126
shape and would not raise. Default is 60.
125-
Default is False.
126127
127128
Returns
128129
-------

0 commit comments

Comments
 (0)