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

ITEA.Config

Description

Configuration parsing and report generation.

Synopsis

Documentation

class Monoid a => Valid a b | a -> b, b -> a where Source #

Class of types that can be validate

Methods

validateConfig :: a -> b Source #

data Param a Source #

A parameter is either empty (None) or Has something

Constructors

None 
Has a 

Instances

Instances details
Show a => Show (Param a) Source # 
Instance details

Defined in ITEA.Config

Methods

showsPrec :: Int -> Param a -> ShowS

show :: Param a -> String

showList :: [Param a] -> ShowS

Semigroup (Param a) Source # 
Instance details

Defined in ITEA.Config

Methods

(<>) :: Param a -> Param a -> Param a

sconcat :: NonEmpty (Param a) -> Param a

stimes :: Integral b => b -> Param a -> Param a

Monoid (Param a) Source # 
Instance details

Defined in ITEA.Config

Methods

mempty :: Param a

mappend :: Param a -> Param a -> Param a

mconcat :: [Param a] -> Param a

fromParam :: Param a -> a Source #

Extract parameter. This is a partial function.

data MutationCfg Source #

Validated mutation config

Constructors

MCfg (Int, Int) (Int, Int) Int [Transformation] [String] 

Instances

Instances details
Show MutationCfg Source # 
Instance details

Defined in ITEA.Config

Methods

showsPrec :: Int -> MutationCfg -> ShowS

show :: MutationCfg -> String

showList :: [MutationCfg] -> ShowS

Valid UncheckedMutationCfg MutationCfg Source # 
Instance details

Defined in ITEA.Config

exponents :: Int -> Int -> UncheckedMutationCfg Source #

Generates a configuration with only _expLim holding a value.

termLimit :: Int -> Int -> UncheckedMutationCfg Source #

Generates a configuration with only _termLim holding a value.

nonzeroExps :: Int -> UncheckedMutationCfg Source #

Generates a configuration with only _nzExp holding a value.

transFunctions :: [Transformation] -> UncheckedMutationCfg Source #

Generates a configuration with only _transFun holding a value.

measures :: [String] -> UncheckedMutationCfg Source #

Generates a configuration with only _measures holding a value.

parseFile :: String -> (Matrix Double, Vector) Source #

Parse a numerical csv file into predictors and target variables

withMutation :: MutationCfg -> Int -> (Mutation, Rnd Term) Source #

Creates the mutation function and also returns the random term generator (for initialization)

Datasets configuration

data UncheckedDatasets Source #

Constructors

UD 

Fields

data Datasets Source #

Constructors

D String String 

Instances

Instances details
Show Datasets Source # 
Instance details

Defined in ITEA.Config

Methods

showsPrec :: Int -> Datasets -> ShowS

show :: Datasets -> String

showList :: [Datasets] -> ShowS

Valid UncheckedDatasets Datasets Source # 
Instance details

Defined in ITEA.Config

trainingset :: String -> UncheckedDatasets Source #

sets the training and test data set names

testset :: String -> UncheckedDatasets Source #

sets the training and test data set names