set class names attribute in the general classifier testing strategy
This commit is contained in:
		| @@ -82,7 +82,7 @@ class freqai_test_classifier(IStrategy): | ||||
|         return dataframe | ||||
|  | ||||
|     def set_freqai_targets(self, dataframe: DataFrame, metadata: Dict, **kwargs): | ||||
|  | ||||
|         self.freqai.class_names = ["down", "up"] | ||||
|         dataframe['&s-up_or_down'] = np.where(dataframe["close"].shift(-100) > | ||||
|                                               dataframe["close"], 'up', 'down') | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user