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