From 2f6675e9f5ebb5421ee841754d746d5cf7b555d6 Mon Sep 17 00:00:00 2001 From: Rowan Torbitzky-Lane Date: Tue, 25 Feb 2025 18:47:50 -0600 Subject: [PATCH] add downsample --- HushGP.cabal | 1 + src/HushGP/GP/Downsample.hs | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 src/HushGP/GP/Downsample.hs diff --git a/HushGP.cabal b/HushGP.cabal index d0eb20d..3c95d40 100644 --- a/HushGP.cabal +++ b/HushGP.cabal @@ -63,6 +63,7 @@ library , HushGP.GP , HushGP.GP.PushArgs , HushGP.GP.Variation + , HushGP.GP.Downsample , HushGP.Problems.IntegerRegression diff --git a/src/HushGP/GP/Downsample.hs b/src/HushGP/GP/Downsample.hs new file mode 100644 index 0000000..06dc43e --- /dev/null +++ b/src/HushGP/GP/Downsample.hs @@ -0,0 +1,7 @@ +module HushGP.GP.Downsample where + +import HushGP.State +import HushGP.Genome + +updateCaseDistances :: [Individual] -> ([[Gene]], [Gene]) -> ([[Gene]], [Gene]) -> String -> Double -> ([[Gene]], [Gene]) +updateCaseDistances evaledPop downsampleData trainingData informedDownsamplingType solutionThreshold = undefined