This question might be stupid but I don't know Python well enough to know what's going on. So I was trying to learn TensorFlow and noticed this weird invocation:
model = Sequential(
# ...
)
predictions = model(x_train[:1]).numpy()
Can someone please explain what model(x_train[:1]) is doing here? From what I can tell, model is an object that's already constructed above? Is this using the object as a method/function? Or is something else going on here?