Skip to content

Commit

Permalink
Remove plot library
Browse files Browse the repository at this point in the history
  • Loading branch information
itsubaki committed Oct 27, 2023
1 parent 00fdff3 commit c4f4137
Show file tree
Hide file tree
Showing 9 changed files with 2,011 additions and 231 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
[![tests](https://github.com/itsubaki/neu/workflows/tests/badge.svg?branch=main)](https://github.com/itsubaki/neu/actions)
[![codecov](https://codecov.io/gh/itsubaki/neu/branch/main/graph/badge.svg?token=KMJ2GUC1FJ)](https://codecov.io/gh/itsubaki/neu)

- Deep Learning framework for Go from scratch.
- pure Go implementation.
- using only the `plot` library for testing.
- Deep Learning framework for Go from scratch
- pure Go implementation
- using only the standard library

## MNIST

Expand Down
17 changes: 0 additions & 17 deletions activation/relu_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"fmt"

"github.com/itsubaki/neu/activation"
"github.com/itsubaki/neu/plot"
)

func ExampleReLU() {
Expand All @@ -22,19 +21,3 @@ func ExampleReLU() {
// 1

}

func ExampleReLU_plot() {
x := plot.Range(-6, 6, 0.1)
y := make([]float64, 0)

for _, xi := range x {
y = append(y, activation.ReLU(xi))
}

if err := plot.Save(x, y, "ExampleReLU.png"); err != nil {
panic(err)
}

// Output:

}
17 changes: 0 additions & 17 deletions activation/sigmoid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"fmt"

"github.com/itsubaki/neu/activation"
"github.com/itsubaki/neu/plot"
)

func ExampleSigmoid() {
Expand All @@ -18,19 +17,3 @@ func ExampleSigmoid() {
// 1

}

func ExampleSigmoid_plot() {
x := plot.Range(-6, 6, 0.1)
y := make([]float64, 0)

for _, xi := range x {
y = append(y, activation.Sigmoid(xi))
}

if err := plot.Save(x, y, "ExampleSigmoid.png"); err != nil {
panic(err)
}

// Output:

}
17 changes: 0 additions & 17 deletions activation/step_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"fmt"

"github.com/itsubaki/neu/activation"
"github.com/itsubaki/neu/plot"
)

func ExampleStep() {
Expand All @@ -22,19 +21,3 @@ func ExampleStep() {
// 1

}

func ExampleStep_plot() {
x := plot.Range(-6, 6, 0.1)
y := make([]float64, 0)

for _, xi := range x {
y = append(y, activation.Step(xi))
}

if err := plot.Save(x, y, "ExampleStep.png"); err != nil {
panic(err)
}

// Output:

}
17 changes: 0 additions & 17 deletions activation/tanh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"fmt"

"github.com/itsubaki/neu/activation"
"github.com/itsubaki/neu/plot"
)

func ExampleTanh() {
Expand All @@ -18,19 +17,3 @@ func ExampleTanh() {
// 1

}

func ExampleTanh_step() {
x := plot.Range(-6, 6, 0.1)
y := make([]float64, 0)

for _, xi := range x {
y = append(y, activation.Tanh(xi))
}

if err := plot.Save(x, y, "ExampleTanh.png"); err != nil {
panic(err)
}

// Output:

}
13 changes: 0 additions & 13 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
module github.com/itsubaki/neu

go 1.21

require gonum.org/v1/plot v0.12.0

require (
git.sr.ht/~sbinet/gg v0.3.1 // indirect
github.com/ajstarks/svgo v0.0.0-20211024235047-1546f124cd8b // indirect
github.com/go-fonts/liberation v0.2.0 // indirect
github.com/go-latex/latex v0.0.0-20210823091927-c0d11ff05a81 // indirect
github.com/go-pdf/fpdf v0.6.0 // indirect
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect
golang.org/x/image v0.5.0 // indirect
golang.org/x/text v0.7.0 // indirect
)
93 changes: 0 additions & 93 deletions go.sum

This file was deleted.

Loading

0 comments on commit c4f4137

Please sign in to comment.