Skip to content
Extraits de code Groupes Projets
Valider cd5b2ed2 rédigé par Adrien Payen's avatar Adrien Payen
Parcourir les fichiers

commit

parent bc2c2155
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -6,7 +6,7 @@ class Constant: ...@@ -6,7 +6,7 @@ class Constant:
"""Constants for dataset paths and column names.""" """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
CONTENT_PATH = DATA_PATH / 'content' # Path to content data CONTENT_PATH = DATA_PATH / 'content' # Path to content data
......
...@@ -45,7 +45,7 @@ def export_evaluation_report(report): ...@@ -45,7 +45,7 @@ def export_evaluation_report(report):
DataFrame: Merged ratings and items data. DataFrame: Merged ratings and items data.
""" """
report_name = f"evaluation_report_{pd.Timestamp.now().strftime('%Y-%m-%d')}.csv" 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) report.to_csv(export_path, index=False)
print("The data has been exported to the evaluation report") print("The data has been exported to the evaluation report")
return report return report
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter