Skip to content

Commit

Permalink
Fix ValueError in test_svc for test_learning.py and test_learning4e.py
Browse files Browse the repository at this point in the history
Issue aimacode#1272: Updated optimizer parameter from lr to learning_rate in deep_learning4e.py to resolve Rank(A) < p error.
  • Loading branch information
mohsinmahmood12 committed Jun 11, 2024
1 parent 25f19c3 commit fcc85b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deep_learning4e.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ def AutoencoderLearner(inputs, encoding_size, epochs=200, verbose=False):
model.add(Dense(input_size, activation='relu', kernel_initializer='random_uniform', bias_initializer='ones'))

# update model with sgd
sgd = optimizers.SGD(lr=0.01)
sgd = optimizers.SGD(learning_rate=0.01)
model.compile(loss='mean_squared_error', optimizer=sgd, metrics=['accuracy'])

# train the model
Expand Down

0 comments on commit fcc85b8

Please sign in to comment.