In the following code, the shape of state is (4,1). I am aware with the .reshape() command, but cannot understand the (-1, *state.shape) in the following expression. (I am using a tutorial to understand Deep Q-Learning and this command is part of that tutorial.). I can see what it does, but the syntax is new to me
self.model.predict(np.array(state).reshape(-1, *state.shape))[0]
Furthermore, is there any particular shape we should use for .predict()