Compare commits

...

4 Commits

Author SHA1 Message Date
Johannes Merl
02c372bef0 fix Iris 2024-05-09 10:53:57 +02:00
Johannes Merl
d0243b331d weights #3 2024-05-09 10:44:09 +02:00
Johannes Merl
1e916bd6c4 reduce population to fix memory issues in higher depth case 2024-05-09 10:12:47 +02:00
Johannes Merl
dcfe1ee497 switch to nursery Dataset 2024-05-09 09:01:57 +02:00
4 changed files with 18 additions and 18 deletions

View File

@@ -89,10 +89,10 @@ lE =
maxDepth = 5, maxDepth = 5,
weights = weights =
ExpressionWeights ExpressionWeights
{ lambdaSpucker = 1, { lambdaSpucker = 0,
lambdaSchlucker = 2, lambdaSchlucker = 10,
symbol = 30, symbol = 100,
variable = 10, variable = 5,
constant = 5 constant = 5
} }
} }

View File

@@ -56,10 +56,10 @@ lE =
maxDepth = 5, maxDepth = 5,
weights = weights =
ExpressionWeights ExpressionWeights
{ lambdaSpucker = 1, { lambdaSpucker = 0,
lambdaSchlucker = 2, lambdaSchlucker = 10,
symbol = 30, symbol = 100,
variable = 10, variable = 5,
constant = 5 constant = 5
} }
} }
@@ -68,7 +68,7 @@ lEE :: LamdaExecutionEnv
lEE = lEE =
LamdaExecutionEnv LamdaExecutionEnv
{ -- For now these need to define all available functions and types. Generic functions can be used. { -- For now these need to define all available functions and types. Generic functions can be used.
imports = ["LambdaDatasets.IrisDataset"], imports = ["LambdaDatasets.IrisDefinition"],
training = True, training = True,
trainingData = trainingData =
( map fst (takeFraktion 0.8 irisTrainingData), ( map fst (takeFraktion 0.8 irisTrainingData),
@@ -89,7 +89,7 @@ shuffledLEE = do
itD <- smpl $ shuffle irisTrainingData itD <- smpl $ shuffle irisTrainingData
return LamdaExecutionEnv return LamdaExecutionEnv
{ -- For now these need to define all available functions and types. Generic functions can be used. { -- For now these need to define all available functions and types. Generic functions can be used.
imports = ["LambdaDatasets.IrisDataset"], imports = ["LambdaDatasets.IrisDefinition"],
training = True, training = True,
trainingData = trainingData =
( map fst (takeFraktion 0.8 itD), ( map fst (takeFraktion 0.8 itD),

View File

@@ -77,10 +77,10 @@ lE =
maxDepth = 5, maxDepth = 5,
weights = weights =
ExpressionWeights ExpressionWeights
{ lambdaSpucker = 1, { lambdaSpucker = 0,
lambdaSchlucker = 2, lambdaSchlucker = 10,
symbol = 30, symbol = 100,
variable = 10, variable = 5,
constant = 5 constant = 5
} }
} }

View File

@@ -8,8 +8,8 @@ import Pipes
import Pretty import Pretty
import Protolude hiding (for) import Protolude hiding (for)
import System.IO import System.IO
import LambdaDatasets.IrisDataset -- import LambdaDatasets.IrisDataset
-- import LambdaDatasets.NurseryDataset import LambdaDatasets.NurseryDataset
-- import LambdaDatasets.GermanDataset -- import LambdaDatasets.GermanDataset
import Debug.Trace as DB import Debug.Trace as DB
import qualified Data.Map.Strict as Map import qualified Data.Map.Strict as Map
@@ -35,7 +35,7 @@ options =
( long "population-size" ( long "population-size"
<> short 'p' <> short 'p'
<> metavar "N" <> metavar "N"
<> value 400 <> value 100
<> help "Population size" <> help "Population size"
) )
@@ -59,7 +59,7 @@ main =
selectionType = Tournament 3, selectionType = Tournament 3,
termination = (steps (iterations opts)), termination = (steps (iterations opts)),
poulationSize = (populationSize opts), poulationSize = (populationSize opts),
stepSize = 120, stepSize = 90,
elitismRatio = 5/100 elitismRatio = 5/100
} }
pop' <- runEffect (for (run cfg) logCsv) pop' <- runEffect (for (run cfg) logCsv)