Giter Club home page Giter Club logo

Comments (4)

ckcollab avatar ckcollab commented on July 24, 2024

From my understanding that sounds good.

Will there be an easy way to iterate over them? Neuron.ACTIVATION.get_all() or what have you? May not be helpful or needed.

Also, is there a way to "choose" one for you? Neuron.ACTIVATION.find_a_good_fit(some_parameters_i_dont_understand)

from anny.

levithomason avatar levithomason commented on July 24, 2024

Since it is just an object you can loop over them like:

// lodash
_.each(Neuron.Activation, (activation, name) => {...})

// vanilla js
Object.keys(Neuron.Activation).forEach(key => {
  Neuron.Activation[key]
})

// or
for (const key in Neuron.Activation) {
  if (Neuron.Activation.hasOwnProperty(key) {
    // do stuff
  }
}

There are possibly heuristics we can use to try and find an activation function for you. It might require asking some questions or something. Realistically, I think knowing what they do and what they are good at is essential to good machine learning. Also, experimenting is really fun and another great way to findTheBestFunction :)

from anny.

ckcollab avatar ckcollab commented on July 24, 2024

👍 thanks for explaining

So you'd make _.each ignore create()? Or does _.each only cover objects and not functions... but I thought functions are objects... how does that work? :)

from anny.

levithomason avatar levithomason commented on July 24, 2024

You're right, in these cases it would totally pick up create(). That is what I get for coding at this hour :P The implementation of this fix will be something different, but the goal is the same and remains good. Split out the activation function definition somewhere, validate it, and allow adding new ones.

Thanks for the dive in and catching that. Night night 🌝

from anny.

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.