From b2d664c63c061e06ed6b136792146d57c8ffabe8 Mon Sep 17 00:00:00 2001 From: elintornquist <107926911+elintornquist@users.noreply.github.com> Date: Fri, 26 Aug 2022 18:57:27 +0200 Subject: [PATCH] Change MinPts calculation --- freqtrade/freqai/data_kitchen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/freqai/data_kitchen.py b/freqtrade/freqai/data_kitchen.py index e480ab135..102a4857e 100644 --- a/freqtrade/freqai/data_kitchen.py +++ b/freqtrade/freqai/data_kitchen.py @@ -635,7 +635,7 @@ class FreqaiDataKitchen: cos(angle) * (point[1] - origin[1]) return (x, y) - MinPts = len(self.data_dictionary['train_features'].columns) * 2 + MinPts = int(len(self.data_dictionary['train_features'].index) * 0.25) # measure pairwise distances to train_features.shape[1]*2 nearest neighbours neighbors = NearestNeighbors( n_neighbors=MinPts, n_jobs=self.thread_count)