NeuralNine / neuralintents

A simple interface for working with intents and chatbots.
MIT License
249 stars 135 forks source link

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

Open pythonvishal opened 1 year ago

pythonvishal commented 1 year ago

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 commented 1 year ago

It is the exact same problem for me too

agilarasu commented 1 year ago

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

ghost commented 1 year ago

Exact problem here!

ghost commented 1 year ago

Fixed the problem, agilarasu was right.

samarth2411 commented 1 year ago

yes sir

On Mon, Mar 27, 2023 at 12:46 PM agilarasu @.***> wrote:

Are you running in a virtual environment?

— Reply to this email directly, view it on GitHub https://github.com/NeuralNine/neuralintents/issues/38#issuecomment-1484626470, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARRZRHTEEKDXTRSYUW6TS3DW6E5DFANCNFSM6AAAAAAUYYRIME . You are receiving this because you commented.Message ID: @.***>

agilarasu commented 1 year ago

@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 commented 1 year ago

this i have done but still it is not giving the reply of hello

On Mon, Mar 27, 2023 at 2:30 PM agilarasu @.***> wrote:

@samarth2411 https://github.com/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)

— Reply to this email directly, view it on GitHub https://github.com/NeuralNine/neuralintents/issues/38#issuecomment-1484766538, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARRZRHXZYINJWFJEEKOZWHTW6FJKTANCNFSM6AAAAAAUYYRIME . You are receiving this because you were mentioned.Message ID: @.***>

agilarasu commented 1 year ago

can you please share your error screen?

samarth2411 commented 1 year ago

[image: image.png] it is giving me like this sir On Mon, Mar 27, 2023 at 2:39 PM Samarth Porwal @.***> wrote:

this i have done but still it is not giving the reply of hello

On Mon, Mar 27, 2023 at 2:30 PM agilarasu @.***> wrote:

@samarth2411 https://github.com/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)

— Reply to this email directly, view it on GitHub https://github.com/NeuralNine/neuralintents/issues/38#issuecomment-1484766538, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARRZRHXZYINJWFJEEKOZWHTW6FJKTANCNFSM6AAAAAAUYYRIME . You are receiving this because you were mentioned.Message ID: @.***>

agilarasu commented 1 year ago

I think the image is not attached properly.

samarth2411 commented 1 year ago

[image: image.png]

On Mon, Mar 27, 2023 at 2:54 PM agilarasu @.***> wrote:

I think the image is not attached properly.

— Reply to this email directly, view it on GitHub https://github.com/NeuralNine/neuralintents/issues/38#issuecomment-1484804235, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARRZRHRGKHVXYVIDP7KPVU3W6FMDJANCNFSM6AAAAAAUYYRIME . You are receiving this because you were mentioned.Message ID: @.***>

samarth2411 commented 1 year ago

is it now fine sir

On Mon, Mar 27, 2023 at 3:02 PM Samarth Porwal @.***> wrote:

[image: image.png]

On Mon, Mar 27, 2023 at 2:54 PM agilarasu @.***> wrote:

I think the image is not attached properly.

— Reply to this email directly, view it on GitHub https://github.com/NeuralNine/neuralintents/issues/38#issuecomment-1484804235, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARRZRHRGKHVXYVIDP7KPVU3W6FMDJANCNFSM6AAAAAAUYYRIME . You are receiving this because you were mentioned.Message ID: @.***>

samarth2411 commented 1 year ago

Screenshot 2023-03-27 144449

samarth2411 commented 1 year ago

here it is sir

samarth2411 commented 1 year ago

Please respond , stuck at this very part

aaditya9feb commented 1 year ago

thanks

On Tue, Feb 21, 2023 at 9:45 PM agilarasu @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/NeuralNine/neuralintents/issues/38#issuecomment-1438749911, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZXM25BOACI43K55SSDQTRLWYTS27ANCNFSM6AAAAAAUYYRIME . You are receiving this because you commented.Message ID: @.***>

-- Thanks and Regards Aaditya