Compare commits
4 Commits
iris_6
...
nurse_acc_
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e9b3dab83f | ||
|
|
aaafed113d | ||
|
|
1e916bd6c4 | ||
|
|
dcfe1ee497 |
@@ -89,10 +89,10 @@ lE =
|
||||
maxDepth = 5,
|
||||
weights =
|
||||
ExpressionWeights
|
||||
{ lambdaSpucker = 1,
|
||||
lambdaSchlucker = 2,
|
||||
symbol = 30,
|
||||
variable = 10,
|
||||
{ lambdaSpucker = 10,
|
||||
lambdaSchlucker = 1,
|
||||
symbol = 20,
|
||||
variable = 100,
|
||||
constant = 5
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,10 +56,10 @@ lE =
|
||||
maxDepth = 5,
|
||||
weights =
|
||||
ExpressionWeights
|
||||
{ lambdaSpucker = 1,
|
||||
lambdaSchlucker = 2,
|
||||
symbol = 30,
|
||||
variable = 10,
|
||||
{ lambdaSpucker = 10,
|
||||
lambdaSchlucker = 1,
|
||||
symbol = 20,
|
||||
variable = 100,
|
||||
constant = 5
|
||||
}
|
||||
}
|
||||
@@ -68,7 +68,7 @@ lEE :: LamdaExecutionEnv
|
||||
lEE =
|
||||
LamdaExecutionEnv
|
||||
{ -- For now these need to define all available functions and types. Generic functions can be used.
|
||||
imports = ["LambdaDatasets.IrisDataset"],
|
||||
imports = ["LambdaDatasets.IrisDefinition"],
|
||||
training = True,
|
||||
trainingData =
|
||||
( map fst (takeFraktion 0.8 irisTrainingData),
|
||||
@@ -89,7 +89,7 @@ shuffledLEE = do
|
||||
itD <- smpl $ shuffle irisTrainingData
|
||||
return LamdaExecutionEnv
|
||||
{ -- For now these need to define all available functions and types. Generic functions can be used.
|
||||
imports = ["LambdaDatasets.IrisDataset"],
|
||||
imports = ["LambdaDatasets.IrisDefinition"],
|
||||
training = True,
|
||||
trainingData =
|
||||
( map fst (takeFraktion 0.8 itD),
|
||||
|
||||
@@ -77,10 +77,10 @@ lE =
|
||||
maxDepth = 5,
|
||||
weights =
|
||||
ExpressionWeights
|
||||
{ lambdaSpucker = 1,
|
||||
lambdaSchlucker = 2,
|
||||
symbol = 30,
|
||||
variable = 10,
|
||||
{ lambdaSpucker = 10,
|
||||
lambdaSchlucker = 1,
|
||||
symbol = 20,
|
||||
variable = 100,
|
||||
constant = 5
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,8 +8,8 @@ import Pipes
|
||||
import Pretty
|
||||
import Protolude hiding (for)
|
||||
import System.IO
|
||||
import LambdaDatasets.IrisDataset
|
||||
-- import LambdaDatasets.NurseryDataset
|
||||
-- import LambdaDatasets.IrisDataset
|
||||
import LambdaDatasets.NurseryDataset
|
||||
-- import LambdaDatasets.GermanDataset
|
||||
import Debug.Trace as DB
|
||||
import qualified Data.Map.Strict as Map
|
||||
@@ -35,7 +35,7 @@ options =
|
||||
( long "population-size"
|
||||
<> short 'p'
|
||||
<> metavar "N"
|
||||
<> value 400
|
||||
<> value 100
|
||||
<> help "Population size"
|
||||
)
|
||||
|
||||
@@ -59,7 +59,7 @@ main =
|
||||
selectionType = Tournament 3,
|
||||
termination = (steps (iterations opts)),
|
||||
poulationSize = (populationSize opts),
|
||||
stepSize = 120,
|
||||
stepSize = 90,
|
||||
elitismRatio = 5/100
|
||||
}
|
||||
pop' <- runEffect (for (run cfg) logCsv)
|
||||
|
||||
Reference in New Issue
Block a user