0

In a Jupyter notebook I have this variable train_dataset.

I would like to see what is its class using this:

print train_dataset.__class__.__name__

However, I'm getting this error:

print train_dataset.__class__.__name__
                  ^
SyntaxError: invalid syntax

This print type(train_dataset) has the same result.

bsky
  • 17,746
  • 43
  • 135
  • 250

0 Answers0