Code Monkey home page Code Monkey logo

adamw-and-sgdw's Introduction

πŸ‘‹Hello, I'm Shao-An!

Twitter Badge Linkedin Badge Wordpress Badge

  • Working as a Control Software Engineer.
  • Grew up in Taiwan, residing in the vibrant city of Tokyo, Japan.
  • Interested in Control Systems, Optimization, and Deep Generative Models.
  • Currently engaged in the exploration of Software Architecture within Robotic Systems.

Recent Activity

  1. πŸŽ‰ Merged PR #1 in shaoanlu/CBF_QP_safety_filter
  2. πŸ’ͺ Opened PR #1 in shaoanlu/CBF_QP_safety_filter
  3. πŸ’ͺ Opened PR #234 in qpsolvers/qpsolvers
  4. πŸŽ‰ Merged PR #6 in shaoanlu/qpsolvers
  5. πŸ’ͺ Opened PR #6 in shaoanlu/qpsolvers

Projects

adamw-and-sgdw's People

Contributors

shaoanlu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

adamw-and-sgdw's Issues

Is w_norm a hyperparameter?

Thank you for your implementation.
What do you mean that " (w is the normalized one)'" in your sentence "w_norm: designed weight decay factor (w is the normalized one)"
In your example, you chose w_norm as 0.0025. I think it is a hyperparameter. Am I right?

TypeError: __init__() missing 1 required positional argument: 'name'

Hi while working East model, I have the following issue with adamw.py

Error I am getting is:
**super(AdamW, self).init(kwargs)
TypeError: init() missing 1 required positional argument: 'name'

Code is as below:
class AdamW(Optimizer):
"""Adam optimizer.
Default parameters follow those provided in the original paper.
# Arguments
lr: float >= 0. Learning rate.
beta_1: float, 0 < beta < 1. Generally close to 1.
beta_2: float, 0 < beta < 1. Generally close to 1.
epsilon: float >= 0. Fuzz factor.
decay: float >= 0. Learning rate decay over each update.
weight_decay: float >= 0. Decoupled weight decay over each update.
# References
- Adam - A Method for Stochastic Optimization
- Optimization for Deep Learning Highlights in 2017
- Fixing Weight Decay Regularization in Adam
"""

def __init__(self,lr=0.001, beta_1=0.9, beta_2=0.999, weight_decay=1e-4, epsilon=1e-8, decay=0., **kwargs):
    super(AdamW, self).__init__(**kwargs)
    with K.name_scope(self.__class__.__name__):
        self.iterations = K.variable(0, dtype='int64', name='iterations')
        self.lr = K.variable(lr, name='lr')
        self.beta_1 = K.variable(beta_1, name='beta_1')
        self.beta_2 = K.variable(beta_2, name='beta_2')
        self.decay = K.variable(decay, name='decay')
        self.wd = K.variable(weight_decay, name='weight_decay') # decoupled weight decay (2/4)
    self.epsilon = epsilon

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.