Documentation ¶
Overview ¶
Package config centralizes the parsing of application configuration
Index ¶
Constants ¶
View Source
const ( FileParamStore = "file" RedisParamStore = "redis" )
Supported network parameter store types
View Source
const ( FileSeriesStore = FileParamStore ElasticsearchSeriesStore = "elasticsearch" )
Supported series store types
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { AppVersion string Logger LoggerParams ML MLParams Series SeriesParams }
Config holds all the configuration for the app
type LoggerParams ¶
LoggerParams holds the necessary configuration to initialize the logger
type MLParams ¶
type MLParams struct { Generations int // Number of cycles to run the genetic algorithm for in search of the optimal net params MaxEpoch int MaxHLayers int // Maximum starting number of hidden layers (the genetic algorithm can surpass it) MinHLayers int // Minimum starting number of hidden layers (the genetic algorithm can go down to 1) StoreType string StoreParams map[string]interface{} TestSet float32 Tolerance float32 Variations int // Number of different network configs to evaluate in each generation of the genetic algorithm }
MLParams holds the parameters that determine how the ML package will behave and how it will store its data
type SeriesParams ¶
type SeriesParams struct { FailLimit int Source Kafka StoreType string StoreParams map[string]interface{} StorePass string StoreUser string }
SeriesParams holds the parameters that determine how the series package will behave and how it will store its data
func (*SeriesParams) Check ¶ added in v0.4.0
func (seriesParams *SeriesParams) Check() error
Check will return an error if any of the series params have semantically incorrect values
Click to show internal directories.
Click to hide internal directories.