data

package
v0.0.0-...-9e2d205 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

handles data providing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	X            [][]float64 `json:"X"`
	Y            []int       `json:"Y"`
	BatchSize    int
	NumBatches   int
	CurrentBatch int
	// contains filtered or unexported fields
}

func LoadData

func LoadData(path string) *Data

Load data from json file

func (*Data) Batch

func (data *Data) Batch() ([][]float64, []int, error)

returns batch of data

func (*Data) Init

func (data *Data) Init(batchSize int) error

Set batch size

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL