joshpattman / goras Goto Github PK
View Code? Open in Web Editor NEWA higher level package for ML in go, based on Gorgonia, and comparable to Keras.
License: Apache License 2.0
A higher level package for ML in go, based on Gorgonia, and comparable to Keras.
License: Apache License 2.0
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.