Giter Club home page Giter Club logo

bellkoralgorithm's Introduction

Hello! I'm Dan. ๐Ÿ‘‹

  • ๐Ÿ”ญ Iโ€™m currently working as a Senior Backend Engineer at Sigma Financial
  • ๐ŸŒฑ Iโ€™m currently learning about Market Making and SIMD.
  • ๐Ÿค” Iโ€™m looking for help with Market Making and Linear Programming / Optimisation.
  • ๐Ÿ“ซ How to reach me: LinkedIn or Emails

bellkoralgorithm's People

Contributors

dandxy89 avatar dependabot[bot] 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

Watchers

 avatar  avatar  avatar  avatar  avatar

bellkoralgorithm's Issues

wrong gradient

hello @dandxy89
I think
b_u = 2 * error * (-1 + 2 * self.REGULARISATION.b_u * rs.b_u)
is wrong
and
b_u = -2 * error + 2 * self.REGULARISATION.b_u * rs.b_u
is correct

calculation of gradients maybe wrong

In Algorithm.py, get_gradients function, your code is shown as follow:

gradients = Gradients(b_u=-2 * error + 2 * self.REGULARISATION.b_u * rs.b_u,
alpha_u=2 * error * (-rs.Dev + 2 * self.REGULARISATION.alpha_u * rs.alpha_u),
b_ut=2 * error * (-1 + self.REGULARISATION.b_ut * rs.b_ut),
b_i=2 * error * (-rs.c_u - rs.c_ut + 2 * self.REGULARISATION.b_i * rs.b_i),
b_ibin=2 * error * (-rs.c_u - rs.c_ut + 2 * self.REGULARISATION.b_ibin * rs.b_ibin),
c_u=2 * error * (-rs.b_i - rs.b_ibin + 2 * self.REGULARISATION.c_u * (rs.c_u - 1)),
c_ut=2 * error * (-rs.b_i - rs.b_ibin + 2 * self.REGULARISATION.c_ut * rs.c_ut),
p=2 * error * (rs.q + 2 * self.REGULARISATION.p * rs.p),
q=2 * error * (rs.p + rs.alpha_p * rs.Dev + 2 * self.REGULARISATION.q * rs.q),
alpha_p=2 * error * (rs.q * rs.Dev + self.REGULARISATION.alpha_p * rs.alpha_p))
โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”

here's my version, which I think is correct.
+++++++++++++++++++++++++++++++++++++
gradients = Gradients(b_u=-2 * error + 2 * self.REGULARISATION.b_u * rs.b_u,
alpha_u=2 * error * (-rs.Dev) + 2 * self.REGULARISATION.alpha_u * rs.alpha_u,
b_ut=2 * error * (-1) + self.REGULARISATION.b_ut * rs.b_ut,
b_i=2 * error * (-rs.c_u - rs.c_ut) + 2 * self.REGULARISATION.b_i * rs.b_i,
b_ibin=2 * error * (-rs.c_u - rs.c_ut) + 2 * self.REGULARISATION.b_ibin * rs.b_ibin,
c_u=2 * error * (-rs.b_i - rs.b_ibin) + 2 * self.REGULARISATION.c_u * (rs.c_u - 1),
c_ut=2 * error * (-rs.b_i - rs.b_ibin) + 2 * self.REGULARISATION.c_ut * rs.c_ut,
p=2 * error * (-rs.q) + 2 * self.REGULARISATION.p * rs.p,
q=2 * error * (-rs.p - rs.alpha_p * rs.Dev) + 2 * self.REGULARISATION.q * rs.q,
alpha_p=2 * error * (-rs.q * rs.Dev) + self.REGULARISATION.alpha_p * rs.alpha_p)

Please check it. btw, this project is really impressive, thank you very much:)

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.