AttributeError: 'Sequential' object has no attribute 'model'
AttributeError: 'Sequential' object has no attribute 'model' Question: from tensorflow.keras.layers import Dense, Activation from tensorflow.keras.models import Sequential, load_model from tensorflow.keras.optimizers import Adam def build_dqn(lr, n_actions, input_dims, fc1_dims, fc2_dims): model = Sequential([ Dense(fc1_dims, input_shape=(input_dims,)), Activation(‘relu’), Dense(fc2_dims), Activation(‘relu’), Dense(n_actions)]) model.compile(optimizer=Adam(lr=lr), loss=’mse’) return model I am trying to understand Double Deep Q-Learning. There is a pretty good lecture …