Python class
Range
Rangeβ
class max.pipelines.modeling.types.Range(start, end)
Bases: object
Represents a range with start and end indices.
advance()β
advance()
Advance the range to the next token.
-
Return type:
-
None
bump_end()β
bump_end(amount)
Bump the end index by the given amount.
-
Parameters:
-
amount (int) β The amount to bump the end index by.
-
Return type:
-
None
bump_start()β
bump_start(amount)
Bump the start index by the given amount.
-
Parameters:
-
amount (int) β The amount to bump the start index by.
-
Raises:
-
ValueError β If the new start index would exceed the end index.
-
Return type:
-
None
endβ
end: int
startβ
start: int
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!