Skip to content

Fix optimizer initialization in NLPCA.create_model#5

Open
ManfangLiang wants to merge 3 commits into
artusoma:masterfrom
ManfangLiang:master
Open

Fix optimizer initialization in NLPCA.create_model#5
ManfangLiang wants to merge 3 commits into
artusoma:masterfrom
ManfangLiang:master

Conversation

@ManfangLiang

Copy link
Copy Markdown

This pull request addresses an issue in the NLPCA.create_model method where the deprecated optimizers.adam call was used, resulting in an AttributeError. The update replaces it with the correct TensorFlow Keras API usage by initializing the Adam optimizer with Adam(learning_rate=lr). This change ensures compatibility with the latest TensorFlow/Keras versions and allows the model to compile and train successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant