Skip to content

Commit

Permalink
Renamed all the imports to be correct
Browse files Browse the repository at this point in the history
  • Loading branch information
chewxy committed Dec 17, 2017
1 parent d71cfa7 commit 3aa5b50
Show file tree
Hide file tree
Showing 22 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion 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 ##

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTORS.md
Expand Up @@ -22,4 +22,4 @@



For more contributors, check out the [github contributors page](https://github.com/chewxy/gorgonia/graphs/contributors)
For more contributors, check out the [github contributors page](https://github.com/gorgonia/graphs/contributors)
26 changes: 13 additions & 13 deletions 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)
#

<img src="https://raw.githubusercontent.com/chewxy/gorgonia/master/media/mascot_small.jpg" align="right" />
<img src="https://raw.githubusercontent.com/gorgonia/gorgonia/master/media/mascot_small.jpg" align="right" />

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.

Expand All @@ -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

Expand Down Expand Up @@ -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)|
Expand Down Expand Up @@ -88,7 +88,7 @@ import (
"fmt"
"log"

. "github.com/chewxy/gorgonia"
. "gorgonia.org/gorgonia"
)

func main() {
Expand Down Expand Up @@ -154,7 +154,7 @@ import (
"fmt"
"log"

. "github.com/chewxy/gorgonia"
. "gorgonia.org/gorgonia"
)

func main() {
Expand Down Expand Up @@ -211,7 +211,7 @@ import (
"fmt"
"log"

. "github.com/chewxy/gorgonia"
. "gorgonia.org/gorgonia"
)

func main() {
Expand Down Expand Up @@ -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.

Expand Down Expand Up @@ -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.

Expand All @@ -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() {
Expand Down Expand Up @@ -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 #

Expand Down
2 changes: 1 addition & 1 deletion cmd/cudagen/main.go
Expand Up @@ -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")

Expand Down
2 changes: 1 addition & 1 deletion example_autodiff_test.go
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"log"

. "github.com/chewxy/gorgonia"
. "gorgonia.org/gorgonia"
)

// Autodiff showcases automatic differentiation
Expand Down
2 changes: 1 addition & 1 deletion example_basic_test.go
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"runtime"

. "github.com/chewxy/gorgonia"
. "gorgonia.org/gorgonia"
)

// Basic example of representing mathematical equations as graphs.
Expand Down
2 changes: 1 addition & 1 deletion example_concurrent_training_test.go
Expand Up @@ -7,7 +7,7 @@ import (
"runtime"
"sync"

. "github.com/chewxy/gorgonia"
. "gorgonia.org/gorgonia"
"gorgonia.org/tensor"
)

Expand Down
2 changes: 1 addition & 1 deletion example_linearregression_test.go
Expand Up @@ -6,7 +6,7 @@ import (
"math/rand"
"runtime"

. "github.com/chewxy/gorgonia"
. "gorgonia.org/gorgonia"
"gorgonia.org/tensor"
)

Expand Down
2 changes: 1 addition & 1 deletion example_symdiff_test.go
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"log"

. "github.com/chewxy/gorgonia"
. "gorgonia.org/gorgonia"
)

// SymbolicDiff showcases symbolic differentiation
Expand Down
2 changes: 1 addition & 1 deletion examples/charRNN/main.go
Expand Up @@ -11,7 +11,7 @@ import (
"syscall"
"time"

T "github.com/chewxy/gorgonia"
T "gorgonia.org/gorgonia"

"net/http"
_ "net/http/pprof"
Expand Down
2 changes: 1 addition & 1 deletion examples/charRNN/model.go
Expand Up @@ -8,7 +8,7 @@ import (
"math/rand"
"strconv"

. "github.com/chewxy/gorgonia"
. "gorgonia.org/gorgonia"
"gorgonia.org/tensor"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/charRNN/util.go
@@ -1,7 +1,7 @@
package main

import (
. "github.com/chewxy/gorgonia"
. "gorgonia.org/gorgonia"
"gorgonia.org/tensor"
)

Expand Down
4 changes: 2 additions & 2 deletions examples/convnet/main.go
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/cuda/main.go
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"log"

T "github.com/chewxy/gorgonia"
T "gorgonia.org/gorgonia"
"gorgonia.org/tensor"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/logisticregression/main.go
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion examples/stacked autoencoder/denoisingautoencoder.go
Expand Up @@ -3,7 +3,7 @@ package main
import (
"log"

. "github.com/chewxy/gorgonia"
. "gorgonia.org/gorgonia"
)

type DenoisingAutoencoder struct {
Expand Down
2 changes: 1 addition & 1 deletion examples/stacked autoencoder/layer.go
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

. "github.com/chewxy/gorgonia"
. "gorgonia.org/gorgonia"
)

type ActivationFunction func(*Node) (*Node, error)
Expand Down
4 changes: 2 additions & 2 deletions examples/stacked autoencoder/main.go
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/stacked autoencoder/neuron.go
Expand Up @@ -5,7 +5,7 @@ import (
"encoding/gob"
"errors"

. "github.com/chewxy/gorgonia"
. "gorgonia.org/gorgonia"
"gorgonia.org/tensor"
)

Expand Down
4 changes: 2 additions & 2 deletions examples/stacked autoencoder/pretrain_mkl.go
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion examples/stacked autoencoder/pretrain_native.go
Expand Up @@ -3,8 +3,8 @@
package main

import (
. "github.com/chewxy/gorgonia"
"gonum.org/v1/gonum/blas/gonum"
. "gorgonia.org/gorgonia"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion examples/stacked autoencoder/stackedDA.go
Expand Up @@ -7,7 +7,7 @@ import (
"io"
"os"

. "github.com/chewxy/gorgonia"
. "gorgonia.org/gorgonia"
"gorgonia.org/tensor"
)

Expand Down

0 comments on commit 3aa5b50

Please sign in to comment.