Skip to content

Commit

Permalink
Added outline of dataset abstraction
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamingRaven committed Jul 14, 2022
1 parent 1bed91b commit d909512
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
21 changes: 21 additions & 0 deletions dataset/dataset.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package dataset

import (
"fmt"
)

type dataset struct {
}

type Dataset interface {
}

// NewNeuralNet initialises a new neural network
func NewExampleDataset() Dataset {
return &dataset{}
}

func (ds *dataset) train() error {
fmt.Println("Tr")
return nil
}
11 changes: 11 additions & 0 deletions dataset/dataset_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package dataset

import (
"fmt"
"testing"
)

func TestDatasetInit(t *testing.T) {
ds := NewExampleDataset()
fmt.Println(ds)
}

0 comments on commit d909512

Please sign in to comment.