Coder Social home page Coder Social logo

goras's People

Contributors

joshpattman avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

goras's Issues

Either softmax or CCE (or both) are broken

When trying to use softmax with MSE on the mnist example, I get a panic. When trying to use sigmoid with CCE, I get an extremely small loss and the model does not work. I do think that second one is just how CCE works though and it is not actually a bug. The softmax/MSE panic is as follows:

goroutine 52164 [running]:
gorgonia.org/gorgonia.(*maxPoolDiffOp).f32s(0xc2d770?, 0x10, 0x20, 0x4?, 0x4?, 0x31, 0x10, 0x10, {0xc01146a000, 0x6200, ...}, ...)
        /home/joshpattman/go/pkg/mod/gorgonia.org/[email protected]/op_nn.go:1047 +0x370
gorgonia.org/gorgonia.(*maxPoolDiffOp).do(0xc000074980, {0xc34a00, 0xc003758b00}, {0xc34a00, 0xc002525e00}, {0xc34a00, 0xc002525f00}, {0xc34a00, 0xc003758a00})
        /home/joshpattman/go/pkg/mod/gorgonia.org/[email protected]/op_nn.go:1017 +0x488
gorgonia.org/gorgonia.(*maxPoolDiffOp).Do(0xc00ee30000?, {0xc00019aec0?, 0x5?, 0xc001f4dd98?})
        /home/joshpattman/go/pkg/mod/gorgonia.org/[email protected]/op_nn.go:946 +0x385
gorgonia.org/gorgonia.(*execOp).exec(0xc00ee7b2c0, 0xc00ee30000)
        /home/joshpattman/go/pkg/mod/gorgonia.org/[email protected]/vm_tape_nocuda.go:82 +0x4e3
gorgonia.org/gorgonia.(*tapeMachine).runall(0xc00ee30000, 0x3dcccccd3dcccccd?, 0x3dcccccd3dcccccd?)
        /home/joshpattman/go/pkg/mod/gorgonia.org/[email protected]/vm_tape.go:239 +0x102
created by gorgonia.org/gorgonia.(*tapeMachine).RunAll in goroutine 1
        /home/joshpattman/go/pkg/mod/gorgonia.org/[email protected]/vm_tape.go:212 +0x145
exit status 2

Interestingly, the model actually trains for a small amount of batches before the panic occurs.

I will try to implement my own softmax function and see if this fixes it.

Strange panic when running example 4

I get a panic when running example 4, but only sometimes. The panic also does not happen immediately, but instead after some number of epochs. The weird part is, sometime the code runs absolutely fine. This may be an issue on my laptop, I have yet to test it on my PC.

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.