Want to know the function of double parentheses in python

ds = Dataset.from_tensor_slices ((features,targets))

as shown in the above figure code, what is the function of double parentheses

Mar.02,2021
The parenthesis in

defines tuple.


there is no such thing as "double parentheses". In the code you posted, the parameter of the Dataset.from_tensor_slices function is a tuple.
if the parameter is a list, will you ask the role of ([]) in python? HHHH

Menu