From 3aa5b5050be6f224083ff14513e3b258064daf30 Mon Sep 17 00:00:00 2001 From: chewxy Date: Sun, 17 Dec 2017 21:57:22 +1100 Subject: [PATCH] Renamed all the imports to be correct --- CONTRIBUTING.md | 2 +- CONTRIBUTORS.md | 2 +- README.md | 26 +++++++++---------- cmd/cudagen/main.go | 2 +- example_autodiff_test.go | 2 +- example_basic_test.go | 2 +- example_concurrent_training_test.go | 2 +- example_linearregression_test.go | 2 +- example_symdiff_test.go | 2 +- examples/charRNN/main.go | 2 +- examples/charRNN/model.go | 2 +- examples/charRNN/util.go | 2 +- examples/convnet/main.go | 4 +-- examples/cuda/main.go | 2 +- examples/logisticregression/main.go | 2 +- .../denoisingautoencoder.go | 2 +- examples/stacked autoencoder/layer.go | 2 +- examples/stacked autoencoder/main.go | 4 +-- examples/stacked autoencoder/neuron.go | 2 +- examples/stacked autoencoder/pretrain_mkl.go | 4 +-- .../stacked autoencoder/pretrain_native.go | 2 +- examples/stacked autoencoder/stackedDA.go | 2 +- 22 files changed, 37 insertions(+), 37 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ce0b864f..ffd14e2d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ # Contributing # -We want to make contributing as easy as possible. There are a number of [issues](https://github.com/chewxy/gorgonia/issues) that can be solved. Most of the issues are labelled. +We want to make contributing as easy as possible. There are a number of [issues](https://github.com/gorgonia/gorgonia/issues) that can be solved. Most of the issues are labelled. ## Labels ## diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 695a5722..6c2d8671 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -22,4 +22,4 @@ -For more contributors, check out the [github contributors page](https://github.com/chewxy/gorgonia/graphs/contributors) \ No newline at end of file +For more contributors, check out the [github contributors page](https://github.com/gorgonia/graphs/contributors) \ No newline at end of file diff --git a/README.md b/README.md index 5163a239..df1adfbd 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -# Gorgonia [![GoDoc](https://godoc.org/github.com/chewxy/gorgonia?status.svg)](https://godoc.org/github.com/chewxy/gorgonia) [![Build Status](https://travis-ci.org/chewxy/gorgonia.svg?branch=master)](https://travis-ci.org/chewxy/gorgonia) [![Coverage Status](https://coveralls.io/repos/github/chewxy/gorgonia/badge.svg?branch=master)](https://coveralls.io/github/chewxy/gorgonia?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/chewxy/gorgonia)](https://goreportcard.com/report/github.com/chewxy/gorgonia) [![unstable](http://badges.github.io/stability-badges/dist/unstable.svg)](http://github.com/badges/stability-badges) +# Gorgonia [![GoDoc](https://godoc.org/gorgonia.org/gorgonia?status.svg)](https://godoc.org/gorgonia.org/gorgonia) [![Build Status](https://travis-ci.org/gorgonia/gorgonia.svg?branch=master)](https://travis-ci.org/gorgonia/gorgonia) [![Coverage Status](https://coveralls.io/repos/github/gorgonia/gorgonia/badge.svg?branch=master)](https://coveralls.io/github/gorgonia/gorgonia?branch=master) [![Go Report Card](https://goreportcard.com/badge/gorgonia.org/gorgonia)](https://goreportcard.com/report/gorgonia.org/gorgonia) [![unstable](http://badges.github.io/stability-badges/dist/unstable.svg)](http://github.com/badges/stability-badges) # - + 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](http://deeplearning.net/software/theano/) or [TensorFlow](https://www.tensorflow.org/), it's because the idea is quite similar. Specifically, the library is pretty low-level, like Theano, but has higher goals like Tensorflow. @@ -28,7 +28,7 @@ Gorgonia aims to do the same, but for the Go environment. Gorgonia is currently # Installation # -The package is go-gettable: `go get -u github.com/chewxy/gorgonia`. Additionally, Gorgonia uses [dep](https://github.com/golang/dep) as its vendoring tool. +The package is go-gettable: `go get -u gorgonia.org/gorgonia`. Additionally, Gorgonia uses [dep](https://github.com/golang/dep) as its vendoring tool. The current version is 0.8.x @@ -58,7 +58,7 @@ There are very few dependencies that Gorgonia uses - and they're all pretty stab |[cu](https://gorgonia.org/cu)| CUDA drivers | Needed for CUDA operations | Same maintainer as Gorgonia | MIT/BSD-like| |[math32](https://github.com/chewxy/math32)|`float32` operations|Can be replaced by `float32(math.XXX(float64(x)))`|Same maintainer as Gorgonia, same API as the built in `math` package|MIT/BSD-like| |[hm](https://github.com/chewxy/hm)|Type system for Gorgonia|Gorgonia's graphs are pretty tightly coupled with the type system | Same maintainer as Gorgonia | MIT/BSD-like| -|[vecf64](https://github.com/chewxy/vecf64)| optimized `[]float64` operations | Can be generated in the `tensor/genlib` package. However, plenty of optimizations have been made/will be made | Same maintainer as Gorgonia | MIT/BSD-like| +|[vecf64](https://gorgonia.org/vecf64)| optimized `[]float64` operations | Can be generated in the `tensor/genlib` package. However, plenty of optimizations have been made/will be made | Same maintainer as Gorgonia | MIT/BSD-like| |[vecf32](https://gorgonia.org/vecf32)| optimized `[]float32` operations | Can be generated in the `tensor/genlib` package. However, plenty of optimizations have been made/will be made | Same maintainer as Gorgonia | MIT/BSD-like| |[set](https://github.com/xtgo/set)|Various set operations|Can be easily replaced|Stable API for the past 1 year|[set licence](https://github.com/xtgo/set/blob/master/LICENSE) (MIT/BSD-like)| |[gographviz](https://github.com/awalterschulze/gographviz)|Used for printing graphs|Graph printing is only vital to debugging. Gorgonia can survive without, but with a major (but arguably nonvital) feature loss|Last update 12th April 2017|[gographviz licence](https://github.com/awalterschulze/gographviz/blob/master/LICENSE) (Apache 2.0)| @@ -88,7 +88,7 @@ import ( "fmt" "log" - . "github.com/chewxy/gorgonia" + . "gorgonia.org/gorgonia" ) func main() { @@ -154,7 +154,7 @@ import ( "fmt" "log" - . "github.com/chewxy/gorgonia" + . "gorgonia.org/gorgonia" ) func main() { @@ -211,7 +211,7 @@ import ( "fmt" "log" - . "github.com/chewxy/gorgonia" + . "gorgonia.org/gorgonia" ) func main() { @@ -273,11 +273,11 @@ Currently Gorgonia only performs backwards mode automatic differentiation (aka b A lot has been said about a computation graph or an expression graph. But what is it exactly? Think of it as an AST for the math expression that you want. Here's the graph for the examples (but with a vector and a scalar addition instead) above: -![graph1](https://raw.githubusercontent.com/chewxy/gorgonia/master/media/exprGraph_example1.png) +![graph1](https://raw.githubusercontent.com/gorgonia/gorgonia/master/media/exprGraph_example1.png) By the way, Gorgonia comes with nice-ish graph printing abilities. Here's an example of a graph of the equation `y = x²` and its derivation: -![graph1](https://raw.githubusercontent.com/chewxy/gorgonia/master/media/exprGraph_example2.png) +![graph1](https://raw.githubusercontent.com/gorgonia/gorgonia/master/media/exprGraph_example2.png) To read the graph is easy. The expression builds from bottom up, while the derivations build from top down. This way the derivative of each node is roughly on the same level. @@ -315,7 +315,7 @@ Furthermore, there are some additional requirements: 1. [CUDA toolkit 9.0](https://developer.nvidia.com/cuda-toolkit) is required. Installing this installs the `nvcc` compiler which is required to run your code with CUDA. 2. Be sure to follow the [post-installation steps](http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#post-installation-actions) -2. `go install github.com/chewxy/gorgonia/cmd/cudagen`. This installs the `cudagen` program. Running `cudagen` will generate the relevant CUDA related code for Gorgonia. +2. `go install gorgonia.org/gorgonia/cmd/cudagen`. This installs the `cudagen` program. Running `cudagen` will generate the relevant CUDA related code for Gorgonia. 3. The CUDA ops must be manually enabled in your code with the `UseCudaFor` option. 4. `runtime.LockOSThread()` must be called in the main function where the VM is running. CUDA requires thread affinity, and therefore the OS thread must be locked. @@ -331,8 +331,8 @@ import ( "log" "runtime" - T "github.com/chewxy/gorgonia" - "github.com/chewxy/gorgonia/tensor" + T "gorgonia.org/gorgonia" + "gorgonia.org/gorgonia/tensor" ) func main() { @@ -432,7 +432,7 @@ BenchmarkOneMil-8 50 33169036 ns/op # API Stability # Gorgonia's API is as of right now, not considered stable. It will be stable from version 1.0 forwards. -As we move towards 1.0, the github repository will be moved to the [organization gorgonia](https://github.com/chewxy/gorgonia/issues/98). See the issue for more updates. +As we move towards 1.0, the github repository will be moved to the [organization gorgonia](https://gorgonia.org/gorgonia/issues/98). See the issue for more updates. # Roadmap # diff --git a/cmd/cudagen/main.go b/cmd/cudagen/main.go index 6d267df7..8f2dd055 100644 --- a/cmd/cudagen/main.go +++ b/cmd/cudagen/main.go @@ -90,7 +90,7 @@ func main() { } gopath := os.Getenv("GOPATH") - gorgoniaLoc := path.Join(gopath, "src/github.com/chewxy/gorgonia") + gorgoniaLoc := path.Join(gopath, "src/gorgonia.org/gorgonia") cuLoc := path.Join(gorgoniaLoc, "cuda modules/src") ptxLoc := path.Join(gorgoniaLoc, "cuda modules/target") diff --git a/example_autodiff_test.go b/example_autodiff_test.go index b3764a3a..6987c142 100644 --- a/example_autodiff_test.go +++ b/example_autodiff_test.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - . "github.com/chewxy/gorgonia" + . "gorgonia.org/gorgonia" ) // Autodiff showcases automatic differentiation diff --git a/example_basic_test.go b/example_basic_test.go index 2a340759..a7fe9d52 100644 --- a/example_basic_test.go +++ b/example_basic_test.go @@ -5,7 +5,7 @@ import ( "log" "runtime" - . "github.com/chewxy/gorgonia" + . "gorgonia.org/gorgonia" ) // Basic example of representing mathematical equations as graphs. diff --git a/example_concurrent_training_test.go b/example_concurrent_training_test.go index 5f08df90..6781033e 100644 --- a/example_concurrent_training_test.go +++ b/example_concurrent_training_test.go @@ -7,7 +7,7 @@ import ( "runtime" "sync" - . "github.com/chewxy/gorgonia" + . "gorgonia.org/gorgonia" "gorgonia.org/tensor" ) diff --git a/example_linearregression_test.go b/example_linearregression_test.go index 3db7be08..ebf72e8c 100644 --- a/example_linearregression_test.go +++ b/example_linearregression_test.go @@ -6,7 +6,7 @@ import ( "math/rand" "runtime" - . "github.com/chewxy/gorgonia" + . "gorgonia.org/gorgonia" "gorgonia.org/tensor" ) diff --git a/example_symdiff_test.go b/example_symdiff_test.go index 5392e040..8fb24c99 100644 --- a/example_symdiff_test.go +++ b/example_symdiff_test.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - . "github.com/chewxy/gorgonia" + . "gorgonia.org/gorgonia" ) // SymbolicDiff showcases symbolic differentiation diff --git a/examples/charRNN/main.go b/examples/charRNN/main.go index e2c469f3..666a0da1 100644 --- a/examples/charRNN/main.go +++ b/examples/charRNN/main.go @@ -11,7 +11,7 @@ import ( "syscall" "time" - T "github.com/chewxy/gorgonia" + T "gorgonia.org/gorgonia" "net/http" _ "net/http/pprof" diff --git a/examples/charRNN/model.go b/examples/charRNN/model.go index 31d1b371..f1164121 100644 --- a/examples/charRNN/model.go +++ b/examples/charRNN/model.go @@ -8,7 +8,7 @@ import ( "math/rand" "strconv" - . "github.com/chewxy/gorgonia" + . "gorgonia.org/gorgonia" "gorgonia.org/tensor" ) diff --git a/examples/charRNN/util.go b/examples/charRNN/util.go index 27cb687a..ad73d7ae 100644 --- a/examples/charRNN/util.go +++ b/examples/charRNN/util.go @@ -1,7 +1,7 @@ package main import ( - . "github.com/chewxy/gorgonia" + . "gorgonia.org/gorgonia" "gorgonia.org/tensor" ) diff --git a/examples/convnet/main.go b/examples/convnet/main.go index ef5a04a5..4bbdb107 100644 --- a/examples/convnet/main.go +++ b/examples/convnet/main.go @@ -13,9 +13,9 @@ import ( "net/http" _ "net/http/pprof" - "github.com/chewxy/gorgonia" - "github.com/chewxy/gorgonia/examples/mnist" "github.com/pkg/errors" + "gorgonia.org/gorgonia" + "gorgonia.org/gorgonia/examples/mnist" "gorgonia.org/tensor" ) diff --git a/examples/cuda/main.go b/examples/cuda/main.go index 7b5461d1..2885f19f 100644 --- a/examples/cuda/main.go +++ b/examples/cuda/main.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - T "github.com/chewxy/gorgonia" + T "gorgonia.org/gorgonia" "gorgonia.org/tensor" ) diff --git a/examples/logisticregression/main.go b/examples/logisticregression/main.go index a8d1ca7d..f2839163 100644 --- a/examples/logisticregression/main.go +++ b/examples/logisticregression/main.go @@ -12,7 +12,7 @@ import ( "runtime/pprof" "time" - G "github.com/chewxy/gorgonia" + G "gorgonia.org/gorgonia" "gorgonia.org/tensor" // cblas "gonum.org/v1/netlib/blas/netlib" ) diff --git a/examples/stacked autoencoder/denoisingautoencoder.go b/examples/stacked autoencoder/denoisingautoencoder.go index b69b6629..233baa20 100644 --- a/examples/stacked autoencoder/denoisingautoencoder.go +++ b/examples/stacked autoencoder/denoisingautoencoder.go @@ -3,7 +3,7 @@ package main import ( "log" - . "github.com/chewxy/gorgonia" + . "gorgonia.org/gorgonia" ) type DenoisingAutoencoder struct { diff --git a/examples/stacked autoencoder/layer.go b/examples/stacked autoencoder/layer.go index 44cc78ed..24b3019c 100644 --- a/examples/stacked autoencoder/layer.go +++ b/examples/stacked autoencoder/layer.go @@ -3,7 +3,7 @@ package main import ( "fmt" - . "github.com/chewxy/gorgonia" + . "gorgonia.org/gorgonia" ) type ActivationFunction func(*Node) (*Node, error) diff --git a/examples/stacked autoencoder/main.go b/examples/stacked autoencoder/main.go index 5d8c0456..6d424713 100644 --- a/examples/stacked autoencoder/main.go +++ b/examples/stacked autoencoder/main.go @@ -13,9 +13,9 @@ import ( "os" "runtime/pprof" - T "github.com/chewxy/gorgonia" - "github.com/chewxy/gorgonia/examples/mnist" "gonum.org/v1/gonum/blas/gonum" + T "gorgonia.org/gorgonia" + "gorgonia.org/gorgonia/examples/mnist" "gorgonia.org/tensor" ) diff --git a/examples/stacked autoencoder/neuron.go b/examples/stacked autoencoder/neuron.go index 404d17ef..0cbd8037 100644 --- a/examples/stacked autoencoder/neuron.go +++ b/examples/stacked autoencoder/neuron.go @@ -5,7 +5,7 @@ import ( "encoding/gob" "errors" - . "github.com/chewxy/gorgonia" + . "gorgonia.org/gorgonia" "gorgonia.org/tensor" ) diff --git a/examples/stacked autoencoder/pretrain_mkl.go b/examples/stacked autoencoder/pretrain_mkl.go index b27aec24..fcb56eea 100644 --- a/examples/stacked autoencoder/pretrain_mkl.go +++ b/examples/stacked autoencoder/pretrain_mkl.go @@ -3,8 +3,8 @@ package main import ( - . "github.com/chewxy/gorgonia" - "github.com/chewxy/gorgonia/blase" + . "gorgonia.org/gorgonia" + "gorgonia.org/gorgonia/blase" ) func init() { diff --git a/examples/stacked autoencoder/pretrain_native.go b/examples/stacked autoencoder/pretrain_native.go index 23993e76..c910ada8 100644 --- a/examples/stacked autoencoder/pretrain_native.go +++ b/examples/stacked autoencoder/pretrain_native.go @@ -3,8 +3,8 @@ package main import ( - . "github.com/chewxy/gorgonia" "gonum.org/v1/gonum/blas/gonum" + . "gorgonia.org/gorgonia" ) func init() { diff --git a/examples/stacked autoencoder/stackedDA.go b/examples/stacked autoencoder/stackedDA.go index 07dffc79..3e0c5ce0 100644 --- a/examples/stacked autoencoder/stackedDA.go +++ b/examples/stacked autoencoder/stackedDA.go @@ -7,7 +7,7 @@ import ( "io" "os" - . "github.com/chewxy/gorgonia" + . "gorgonia.org/gorgonia" "gorgonia.org/tensor" )