Change MinPts calculation
This commit is contained in:
parent
53d46a0385
commit
b2d664c63c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user