gorgonia /gorgonia
Gorgonia is a library that helps facilitate machine learning in Go.
★ 5,927⑂ 450👁 179⑃ 296● 283▤ 29
+0
日增长
5,927
stars
450
forks
179
watchers
296
prs
283
issues
29
releases
README
!Logo !Build and Tests Gorgonia is a library that helps facilitate machine learning in Go. Write and evaluate mathematical equations involving multidimensional arrays easily. If this sounds like Theano or TensorFlow, it's because the idea is quite similar. Specifically, the library is pretty low-level, like Theano, but has higher goals like Tensorflow. Gorgonia: Can perform automatic differentiation Can perform symbolic differentiation Can perform gradient descent optimizations Can perform numerical stabilization Provides a number of convenience functions to help create neural networks Is fairly quick (comparable to Theano and TensorFlow speed) Supports CUDA/GPGPU computation (OpenCL not yet supported, send a pull request) Will support distributed computing Goals The primary goal for Gorgonia is to be a highly performant machine learning/graph computation-based library that can scale across multiple machines. It should bring the appeal of Go (simple compilation and deployment process) to the ML world. It's a long way from there currently, however, the baby steps are already there. The secondary goal for Gorgonia is to provide a platform for the exploration of non-standard deep-learning and neural network-related things. This includes things like neo-hebbian learning, corner-cutting algorithms, evolutionary algorithms, and the like. Why Use Gorgonia? The main reason to use Gorgonia is developer comfort. If you're using a Go stack extensively, now you have access to the ability to create production-ready machine learning systems in an environment that you are already familiar with and comfortable with. ML/AI at large is usually split into two stages: the experimental stage where one builds various models, tests, and retests; and the deployed state where a model after being tested and played with, is deployed. This necessitates different roles like data scientist and data engineer. Typically the two phases have different tools: Python (PyTorch, etc) is commonly used for the experimental stage, and then the model is rewritten in some more performant language like C++ (using dlib, mlpack etc). Of course, nowadays the gap is closing and people frequently share the tools between them. Tensorflow is one such tool that bridges the gap. Gorgonia aims to do the same but for the Go environment. Gorgonia is currently fairly performant - its speeds are comparable to PyTorch's and Tensorflow's CPU implementations. GPU implementations are a bit finicky to compare due to the heavy CGO tax, but rest assured that this is an area of active improvement. Getting started Installation The package is go-gettable: go get -u gorgonia.org/gorgonia. Gorgonia is compatible with Go modules. Documentation Up-to-date documentation, references, and tutorials are present on the official Gorgonia website at https://gorgonia.org. Keeping Updated Gorgonia's project has a Slack channel on gopherslack, as well as a Twitter account. Official
Top issues
#378convnet performance17 comments · 2020-02-15#297CUDA Results are Inconsistent15 comments · 2019-06-16#508Unexpected Concat behaviour11 comments · 2021-10-20#390Implement Op PRelu11 comments · 2020-04-05#301Add More Tests For Broadcast Operations11 comments · 2019-07-01#523panic: Something in this program imports go4.org/unsafe/assume-no-moving-gc10 comments · 2022-04-27#428Mean is returning a Float32 matrix not a Node10 comments · 2020-08-13#33Break all the User Unfriendly API (and replace them with better ones)10 comments · 2016-10-01
Discussions
#570When will this feature-Conv3d be implemented?0 comments · 2025-08-14#561Linear regression model shows b > 0 where it should be (close to) 00 comments · 2024-01-12#556AVX20 comments · 2023-10-04#546OpenCL Support0 comments · 2023-05-11
Latest release
v0.9.18 v0.9.18 2023-12-03Possibly last release of the 0.9 branch before the huge changes coming from v0.10.0