repository

package
v0.0.0-...-b2170da Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

This repository allows to save the training results

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBrainRepository

func NewBrainRepository(db *gorm.DB) BrainRepositoryInterface

func NewClassRepository

func NewClassRepository(db *gorm.DB) ClassRepositoryInterface

func NewResultRepository

func NewResultRepository(db *gorm.DB) resultRepository

Types

type BrainRepository

type BrainRepository struct {
	// contains filtered or unexported fields
}

func (*BrainRepository) Create

func (repo *BrainRepository) Create(name string, description string) (BrainInterface, error)

func (*BrainRepository) Delete

func (repo *BrainRepository) Delete(id int64) error

func (*BrainRepository) GetAll

func (repo *BrainRepository) GetAll() ([]BrainInterface, error)

func (*BrainRepository) GetByReference

func (repo *BrainRepository) GetByReference(reference string) (BrainInterface, error)

type ClassRepository

type ClassRepository struct {
	// contains filtered or unexported fields
}

func (*ClassRepository) Create

func (repo *ClassRepository) Create(brainID int64, label string) (ClassInterface, error)

func (*ClassRepository) FindByBrainAndLabel

func (repo *ClassRepository) FindByBrainAndLabel(brainID int64, label string) (ClassInterface, error)

func (*ClassRepository) FindByID

func (repo *ClassRepository) FindByID(classID int64) (ClassInterface, error)

type TokenRepository

type TokenRepository struct {
	// contains filtered or unexported fields
}

func NewTokenRepository

func NewTokenRepository(db *gorm.DB) *TokenRepository

func (*TokenRepository) Create

func (repo *TokenRepository) Create(brainID int64, text string) (TokenInterface, error)

func (*TokenRepository) FindByBrainAndText

func (repo *TokenRepository) FindByBrainAndText(brainID int64, text string) (TokenInterface, error)

func (*TokenRepository) GetTokenIDs

func (repo *TokenRepository) GetTokenIDs(brainID int64, tokens []string) ([]int64, error)

Jump to

Keyboard shortcuts

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