Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WARNING:absl:lr is deprecated, please use learning_rate instead, or use the legacy optimizer. #38

Open
vishalchopra666 opened this issue Feb 11, 2023 · 16 comments

Comments

@vishalchopra666
Copy link

WARNING:absl:lr is deprecated, please use learning_rate instead, or use the legacy optimizer, e.g.,tf.keras.optimizers.legacy.SGD.

ValueError Traceback (most recent call last)
in
12
13 assistant = GenericAssistant('intents.json', intent_methods=mappings, model_name="test_model")
---> 14 assistant.train_model()
15 assistant.save_model()
16

4 frames
/usr/local/lib/python3.8/dist-packages/keras/optimizers/optimizer_experimental/optimizer.py in _process_kwargs(self, kwargs)
116 for k in kwargs:
117 if k in legacy_kwargs:
--> 118 raise ValueError(
119 f"{k} is deprecated in the new Keras optimizer, please"
120 "check the docstring for valid arguments, or use the "

ValueError: decay is deprecated in the new Keras optimizer, pleasecheck the docstring for valid arguments, or use the legacy optimizer, e.g., tf.keras.optimizers.legacy.SGD.

@aaditya9feb
Copy link

It is the exact same problem for me too

@agilarasu
Copy link

this can be solved by removing decay argument from line 109 of the main.py of the module.

@ghost
Copy link

ghost commented Feb 27, 2023

Exact problem here!

@ghost
Copy link

ghost commented Mar 4, 2023

Fixed the problem, agilarasu was right.

@samarth2411
Copy link

samarth2411 commented Mar 27, 2023 via email

@agilarasu
Copy link

@samarth2411 ,

You need to change line 109 of \.venv\Lib\site-packages\neuralintents\main.py
from : sgd = SGD(lr=0.01, decay=1e-6, momentum=0.9, nesterov=True)
to : sgd = SGD(lr=0.01, momentum=0.9, nesterov=True)

@samarth2411
Copy link

samarth2411 commented Mar 27, 2023 via email

@agilarasu
Copy link

can you please share your error screen?

@samarth2411
Copy link

samarth2411 commented Mar 27, 2023 via email

@agilarasu
Copy link

I think the image is not attached properly.

@samarth2411
Copy link

samarth2411 commented Mar 27, 2023 via email

@samarth2411
Copy link

samarth2411 commented Mar 27, 2023 via email

@samarth2411
Copy link

Screenshot 2023-03-27 144449

@samarth2411
Copy link

here it is sir

@samarth2411
Copy link

Please respond , stuck at this very part

@aaditya9feb
Copy link

aaditya9feb commented Apr 24, 2023 via email

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

No branches or pull requests

4 participants