Copyright(c) Fabricio Olivetti de Franca 2022
LicenseGPL-3
Maintainerfabricio.olivetti@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred

MachineLearning.Utils.Config

Description

Configuration parsing and report generation.

Synopsis

Documentation

allFunctions :: [Function] Source #

data Task Source #

Task can be Regression, Classification and One-vs-All Classification

Constructors

Regression 
RegressionNL Int 
Classification Int 
ClassMult Int 

Instances

Instances details
Read Task Source # 
Instance details

Defined in MachineLearning.Utils.Config

Methods

readsPrec :: Int -> ReadS Task

readList :: ReadS [Task]

readPrec :: ReadPrec Task

readListPrec :: ReadPrec [Task]

Show Task Source # 
Instance details

Defined in MachineLearning.Utils.Config

Methods

showsPrec :: Int -> Task -> ShowS

show :: Task -> String

showList :: [Task] -> ShowS

Eq Task Source # 
Instance details

Defined in MachineLearning.Utils.Config

Methods

(==) :: Task -> Task -> Bool

(/=) :: Task -> Task -> Bool

data Algorithm Source #

Current algorithm implementation are traditional Evolutionary (GPTIR) and Feasible-Infeasible two-population for shape-constraint (SCTIR).

Constructors

GPTIR 
SCTIR 

Instances

Instances details
Read Algorithm Source # 
Instance details

Defined in MachineLearning.Utils.Config

Methods

readsPrec :: Int -> ReadS Algorithm

readList :: ReadS [Algorithm]

readPrec :: ReadPrec Algorithm

readListPrec :: ReadPrec [Algorithm]

Show Algorithm Source # 
Instance details

Defined in MachineLearning.Utils.Config

Methods

showsPrec :: Int -> Algorithm -> ShowS

show :: Algorithm -> String

showList :: [Algorithm] -> ShowS

Eq Algorithm Source # 
Instance details

Defined in MachineLearning.Utils.Config

Methods

(==) :: Algorithm -> Algorithm -> Bool

(/=) :: Algorithm -> Algorithm -> Bool

data Penalty Source #

Type of penalty function

Constructors

NoPenalty 
Len Double 
Shape Double 

Instances

Instances details
Read Penalty Source # 
Instance details

Defined in MachineLearning.Utils.Config

Methods

readsPrec :: Int -> ReadS Penalty

readList :: ReadS [Penalty]

readPrec :: ReadPrec Penalty

readListPrec :: ReadPrec [Penalty]

Show Penalty Source # 
Instance details

Defined in MachineLearning.Utils.Config

Methods

showsPrec :: Int -> Penalty -> ShowS

show :: Penalty -> String

showList :: [Penalty] -> ShowS

data Output Source #

Output configuration

Constructors

Screen 
PartialLog String 
EvoLog String 

Instances

Instances details
Read Output Source # 
Instance details

Defined in MachineLearning.Utils.Config

Methods

readsPrec :: Int -> ReadS Output

readList :: ReadS [Output]

readPrec :: ReadPrec Output

readListPrec :: ReadPrec [Output]

Show Output Source # 
Instance details

Defined in MachineLearning.Utils.Config

Methods

showsPrec :: Int -> Output -> ShowS

show :: Output -> String

showList :: [Output] -> ShowS

data Config Source #

Configuration data

Instances

Instances details
Show Config Source # 
Instance details

Defined in MachineLearning.Utils.Config

Methods

showsPrec :: Int -> Config -> ShowS

show :: Config -> String

showList :: [Config] -> ShowS

data MutationCfg Source #

Mutation config

Constructors

MutCfg 

Fields

Instances

Instances details
Read MutationCfg Source # 
Instance details

Defined in MachineLearning.Utils.Config

Methods

readsPrec :: Int -> ReadS MutationCfg

readList :: ReadS [MutationCfg]

readPrec :: ReadPrec MutationCfg

readListPrec :: ReadPrec [MutationCfg]

Show MutationCfg Source # 
Instance details

Defined in MachineLearning.Utils.Config

Methods

showsPrec :: Int -> MutationCfg -> ShowS

show :: MutationCfg -> String

showList :: [MutationCfg] -> ShowS

data IOCfg Source #

Dataset and logging configs

Constructors

IOCfg 

Fields

Instances

Instances details
Read IOCfg Source # 
Instance details

Defined in MachineLearning.Utils.Config

Methods

readsPrec :: Int -> ReadS IOCfg

readList :: ReadS [IOCfg]

readPrec :: ReadPrec IOCfg

readListPrec :: ReadPrec [IOCfg]

Show IOCfg Source # 
Instance details

Defined in MachineLearning.Utils.Config

Methods

showsPrec :: Int -> IOCfg -> ShowS

show :: IOCfg -> String

showList :: [IOCfg] -> ShowS

data AlgorithmCfg Source #

Algorithm configuration

Constructors

AlgCfg 

Fields

Instances

Instances details
Show AlgorithmCfg Source # 
Instance details

Defined in MachineLearning.Utils.Config

Methods

showsPrec :: Int -> AlgorithmCfg -> ShowS

show :: AlgorithmCfg -> String

showList :: [AlgorithmCfg] -> ShowS

data ConstraintCfg Source #

Constructors

CnsCfg 

Fields

Instances

Instances details
Read ConstraintCfg Source # 
Instance details

Defined in MachineLearning.Utils.Config

Methods

readsPrec :: Int -> ReadS ConstraintCfg

readList :: ReadS [ConstraintCfg]

readPrec :: ReadPrec ConstraintCfg

readListPrec :: ReadPrec [ConstraintCfg]

Show ConstraintCfg Source # 
Instance details

Defined in MachineLearning.Utils.Config

Methods

showsPrec :: Int -> ConstraintCfg -> ShowS

show :: ConstraintCfg -> String

showList :: [ConstraintCfg] -> ShowS

getSeed :: Config -> Maybe Int Source #

getTestName :: Config -> String Source #

getDomains :: Config -> [(Double, Double)] Source #

getImage :: Config -> Maybe (Double, Double) Source #

getShapes :: Config -> [Shape] Source #

readConfig :: String -> IO Config Source #

parseConfig :: IniParser Config Source #

Read the config file and run the algorithm.