From cd5b2ed2e9a27de44082ba45cd6bcb57180d239e Mon Sep 17 00:00:00 2001 From: Adrienucl <adrien.payen@student.uclouvain.be> Date: Thu, 2 May 2024 18:14:07 +0200 Subject: [PATCH] commit --- constants.py | 2 +- loaders.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/constants.py b/constants.py index 3d4d9221..8c11f22c 100644 --- a/constants.py +++ b/constants.py @@ -6,7 +6,7 @@ class Constant: """Constants for dataset paths and column names.""" - DATA_PATH = Path('data/tiny') # -- fill here the dataset size to use + DATA_PATH = Path('data/test') # -- fill here the dataset size to use # Content CONTENT_PATH = DATA_PATH / 'content' # Path to content data diff --git a/loaders.py b/loaders.py index d4cc224f..9e0c74c6 100644 --- a/loaders.py +++ b/loaders.py @@ -45,7 +45,7 @@ def export_evaluation_report(report): DataFrame: Merged ratings and items data. """ report_name = f"evaluation_report_{pd.Timestamp.now().strftime('%Y-%m-%d')}.csv" - export_path = os.path.join("data", "tiny", "evaluations", report_name) + export_path = os.path.join(C.CONTENT_PATH/C.EVALUATION_PATH, report_name) report.to_csv(export_path, index=False) print("The data has been exported to the evaluation report") return report \ No newline at end of file -- GitLab