...

Package service_learning

import "scheduler/service_learning"
Overview
Index

Overview ▾

Package service_learning implements routines for talking to the service_learning service

Constants

const SocketPoolSize = 20

func Start

func Start()

func Stop

func Stop()

func Train

func Train(entry *EntryLearning) error

type EntryAct

type EntryAct struct {
    State []float64
}

type EntryActOutput

type EntryActOutput struct {
    Action float64
    Eps    float64
}

func Act

func Act(entry *EntryAct) (*EntryActOutput, error)

func SocketAct

func SocketAct(act *EntryAct) (*EntryActOutput, error)

SocketAct executes the act by using the websocket to learner service

type EntryLearning

type EntryLearning struct {
    Eid    int
    State  []float64
    Action float64
    Reward float64
}

type SocketActRequest

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