Compare commits

..

3 Commits

Author SHA1 Message Date
6e9b9a4827 ormolu and threadscope 2025-02-25 14:17:29 -06:00
538178ccfa start of [individual] 2025-02-25 14:15:15 -06:00
164765aa23 comment out base gpLoop' 2025-02-25 14:02:39 -06:00
2 changed files with 3 additions and 2 deletions

View File

@ -52,7 +52,7 @@
# Programs you want to make available in the shell.
# Default programs can be disabled by setting to 'null'
# tools = hp: { fourmolu = hp.fourmolu; ghcid = null; };
tools = hp: { ormolu = hp.ormolu; threadscope = hp.threadscope; };
# Check that haskell-language-server works
# hlsCheck.enable = true; # Requires sandbox to be disabled

View File

@ -58,6 +58,7 @@ gpLoop' pushArgs generation evaluations population indexedTrainingData = do
print "Incomplete Run, saving the best so far."
| otherwise = gpLoop' pushArgs (succ generation)
(evaluations + (populationSize pushArgs * length (fst $ trainingData pushArgs)) + (if generation `mod` downsampleParentsGens pushArgs == 0 then length parentReps * (length (fst indexedTrainingData) - length (fst $ trainingData pushArgs)) else 0) + (if bestIndPassesDownsample then length (fst indexedTrainingData) - length (fst $ trainingData pushArgs) else 0))
(if elitism then )
nextAction
where
-- \| This will have downsampling added to it later.
@ -77,4 +78,4 @@ gpLoop' pushArgs generation evaluations population indexedTrainingData = do
bestIndPassesDownsample = False -- TODO: fix this later
epsilonPushArgs :: PushArgs
epsilonPushArgs = pushArgs {epsilons = Nothing} -- TODO: And this
gpLoop' _ _ _ _ _ = error "How did this happen?"
--gpLoop' _ _ _ _ _ = error "How did this happen?"