Documentation ¶
Index ¶
- type App
- func (app *App) BrainList() ([]BrainInterface, error)
- func (app *App) CreateBrain(name string, description string) (BrainInterface, error)
- func (app *App) DeleteBrain(id int64) error
- func (app *App) Destroy()
- func (app *App) GetBrainByReference(reference string) (BrainInterface, error)
- func (app *App) GetClassByID(classID int64) (entity.ClassInterface, error)
- func (app *App) HumanizedPredict(brainID int64, text string) (entity.HumanizedPrediction, error)
- func (app *App) Init()
- func (app *App) Migrate()
- func (app *App) Predict(brainID int64, text string) (prediction entity.Prediction, err error)
- func (app *App) Train(brainID int64, samples []entity.Sample) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is used to contains all services together and control their life
func (*App) CreateBrain ¶
func (*App) DeleteBrain ¶
func (*App) GetBrainByReference ¶
func (*App) GetClassByID ¶
func (app *App) GetClassByID(classID int64) (entity.ClassInterface, error)
func (*App) HumanizedPredict ¶
func (*App) Init ¶
func (app *App) Init()
Init runs initialization for all application components. Requires database and other external services are available.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.