Coder Social home page Coder Social logo

Comments (4)

juntang-zhuang avatar juntang-zhuang commented on May 29, 2024 1

No idea with tensorflow, it's contributed by another user. Maybe you can try tensorflow addon https://www.tensorflow.org/addons/api_docs/python/tfa/optimizers/AdaBelief

from adabelief-optimizer.

juntang-zhuang avatar juntang-zhuang commented on May 29, 2024

Are you using pytorch or tensorflow version? I don't think I have written or used any function named _set_hyper

from adabelief-optimizer.

SamMohel avatar SamMohel commented on May 29, 2024

Tensorflow version with 2.15.0. The exact error is

s~/.local/lib/python3.10/site-packages/adabelief_tf/AdaBelief_tf.py:148, in AdaBeliefOptimizer.__init__(self, learning_rate, beta_1, beta_2, epsilon, weight_decay, rectify, amsgrad, sma_threshold, total_steps, warmup_proportion, min_lr, name, print_change_log, **kwargs)
    145     print(Style.RESET_ALL)
    146 # ------------------------------------------------------------------------------
--> 148 self._set_hyper("learning_rate", kwargs.get("lr", learning_rate))
    149 self._set_hyper("beta_1", beta_1)
    150 self._set_hyper("beta_2", beta_2)

https://github.com/juntang-zhuang/Adabelief-Optimizer/blob/update_0.2.0/pypi_packages/adabelief_tf0.2.1/adabelief_tf/AdaBelief_tf.py#L148

from adabelief-optimizer.

SamMohel avatar SamMohel commented on May 29, 2024

Thanks i already used optimizer = optim.AdaBelief(model.parameters(), lr=1e-3) and worked but the accuracy doesn't greater than using Adam optimizer. My task is for classification

from adabelief-optimizer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.