Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigToWorkflow ¶
func ConfigToWorkflow(config *Configuration, tree *schematree.SchemaTree) (wf *strategy.Workflow, err error)
ConfigToWorkflow converts a configuration to a workflow
Types ¶
type Configuration ¶
type Configuration struct { Testset string // testset to apply (only relevant for batch evaluation. Inrelevant for standard usage) Layers []Layer // layers to apply }
Configuration defines one workflow configuration
func ReadConfigFile ¶
func ReadConfigFile(name *string) (conf *Configuration, err error)
ReadConfigFile reads json config file <name> to Configuration struct
func (*Configuration) Test ¶
func (conf *Configuration) Test() (err error)
Test if the configuration is well formatted and all attributes for the chosen strategy are set. Check for correct attribution happens in configToWorkflow()
type Layer ¶
type Layer struct { Condition string // executed condition aboveThreshold, tooManyRecommendations,tooFewRecommendations Backoff string // executed backoff splitProperty, deleteLowFrequency Threshold int // neeeded for conditions ThresholdFloat float32 // needed for condition TooUnlikelyRecommendationsCondition Merger string // needed for splitintosubsets backoff; max, avg Splitter string // needed for splitintosubsets backoff everySecondItem, twoSupportRanges Stepsize string // needed for deletelowfrequentitmes backoff stepsizeLinear, stepsizeProportional ParallelExecutions int // needed for deletelowfrequentitmes backoff }
Layer defines configuration of one layer (condition, backoff pair) in the workflow
Click to show internal directories.
Click to hide internal directories.