print start and end date of the train/test data

This commit is contained in:
longyu 2022-07-16 15:02:30 +02:00
parent 7260a71ecb
commit 2fdea6d43a

View File

@ -39,7 +39,10 @@ class BaseRegressionModel(IFreqaiModel):
:model: Trained model which can be used to inference (self.predict)
"""
logger.info("--------------------Starting training " f"{pair} --------------------")
start_date = unfiltered_dataframe["date"].iloc[0]
end_date = unfiltered_dataframe["date"].iloc[-1]
logger.info("-------------------- Starting training " f"{pair} --------------------")
logger.info("-------------------- Using data " f"from {start_date} to {end_date}--------------------")
# filter the features requested by user in the configuration file and elegantly handle NaNs
features_filtered, labels_filtered = dk.filter_features(