archimedes.tree.is_leafΒΆ
- archimedes.tree.is_leaf(x: Any) boolΒΆ
Check if a value is a leaf in a tree.
Returns True if the value is not a container (i.e. is an array, a scalar, or None).
- Parameters:
x (Any) β The value to check.
- Returns:
True if the value is a leaf, False otherwise.
- Return type:
bool