Compare commits

...

3 Commits

Author SHA1 Message Date
Johannes Merl
e115ce48e1 fix Iris 2024-05-09 10:53:57 +02:00
Johannes Merl
f39901d73e reduce population to fix memory issues in higher depth case 2024-05-09 10:12:57 +02:00
Johannes Merl
f8bd299e3b variation 3 2024-05-09 09:21:37 +02:00
4 changed files with 7 additions and 7 deletions

View File

@@ -86,7 +86,7 @@ lE =
((Ref.SomeTypeRep (Ref.TypeRep @(Job))), [(fmap show (enumUniform UnemployedOrUnskilledNonResident HighlySkilled ))]) ((Ref.SomeTypeRep (Ref.TypeRep @(Job))), [(fmap show (enumUniform UnemployedOrUnskilledNonResident HighlySkilled ))])
], ],
targetType = (Ref.SomeTypeRep (Ref.TypeRep @(AccountStatus -> Int -> CreditHistory -> Purpose -> Int -> Savings -> EmploymentStatus -> Int -> StatusAndSex -> OtherDebtors -> Int -> Property -> Int -> OtherPlans -> Housing -> Int -> Job -> Int -> Bool -> Bool -> GermanClass))), targetType = (Ref.SomeTypeRep (Ref.TypeRep @(AccountStatus -> Int -> CreditHistory -> Purpose -> Int -> Savings -> EmploymentStatus -> Int -> StatusAndSex -> OtherDebtors -> Int -> Property -> Int -> OtherPlans -> Housing -> Int -> Job -> Int -> Bool -> Bool -> GermanClass))),
maxDepth = 5, maxDepth = 9,
weights = weights =
ExpressionWeights ExpressionWeights
{ lambdaSpucker = 1, { lambdaSpucker = 1,

View File

@@ -53,7 +53,7 @@ lE =
((Ref.SomeTypeRep (Ref.TypeRep @(IrisClass))), [(fmap show (enumUniform Setosa Versicolor :: RVar IrisClass))]) ((Ref.SomeTypeRep (Ref.TypeRep @(IrisClass))), [(fmap show (enumUniform Setosa Versicolor :: RVar IrisClass))])
], ],
targetType = (Ref.SomeTypeRep (Ref.TypeRep @(Float -> Float -> Float -> Float -> IrisClass))), targetType = (Ref.SomeTypeRep (Ref.TypeRep @(Float -> Float -> Float -> Float -> IrisClass))),
maxDepth = 5, maxDepth = 9,
weights = weights =
ExpressionWeights ExpressionWeights
{ lambdaSpucker = 1, { lambdaSpucker = 1,
@@ -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

@@ -74,7 +74,7 @@ lE =
((Ref.SomeTypeRep (Ref.TypeRep @(Health))), [(fmap show (enumUniform NotRecommendHealth PriorityHealth ))]) ((Ref.SomeTypeRep (Ref.TypeRep @(Health))), [(fmap show (enumUniform NotRecommendHealth PriorityHealth ))])
], ],
targetType = (Ref.SomeTypeRep (Ref.TypeRep @(Parents -> HasNurs -> Form -> Children -> Housing -> Finance -> Social -> Health -> NurseryClass))), targetType = (Ref.SomeTypeRep (Ref.TypeRep @(Parents -> HasNurs -> Form -> Children -> Housing -> Finance -> Social -> Health -> NurseryClass))),
maxDepth = 5, maxDepth = 9,
weights = weights =
ExpressionWeights ExpressionWeights
{ lambdaSpucker = 1, { lambdaSpucker = 1,

View File

@@ -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)