You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/documentation/_sources/api.md.txt
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -807,8 +807,7 @@ _See the [examples](https://github.com/PAIR-code/lit/blob/main/lit_nlp/examples)
807
807
808
808
### Available types
809
809
810
-
The full set of `LitType`s is defined in
811
-
[types.py](https://github.com/PAIR-code/lit/blob/main/lit_nlp/api/types.py), and summarized
810
+
The full set of `LitType`s is defined in [types.py](https://github.com/PAIR-code/lit/blob/main/lit_nlp/api/types.py). Numeric types such as `Integer` and `Scalar` have predefined ranges that can be overridden using corresponding `min_val` and `max_val` attributes as seen [here](https://github.com/PAIR-code/lit/blob/main/lit_nlp/examples/datasets/penguin_data.py;l=19-22;rcl=574999438). The different types available in LIT are summarized
812
811
in the table below.
813
812
814
813
Note: Bracket syntax, such as `<float>[num_tokens]`, refers to the shapes of
@@ -828,7 +827,7 @@ Name | Description
828
827
`TokenTopKPreds` | Predicted tokens and their scores, as from a language model or seq2seq model. | `list[list[tuple[str, float]]]`
829
828
`Boolean` | Boolean value. | `bool`
830
829
`Scalar` | Scalar numeric value. | `float`
831
-
`Integer` | Integer value. | `int`
830
+
`Integer` | Integer, with a default range from -32768 to +32767. value. | `int`
832
831
`ImageBytes` | Image, represented by a base64 encoded string. LIT also provides `JPEGBytes` and `PNGBytes` types for those specific encodings. | `str`
833
832
`RegressionScore` | Scalar value, treated as a regression target or prediction. | `float`
834
833
`ReferenceScores` | Scores for one or more reference texts. | `list[float]`
0 commit comments