From 25aece9089daeae80bf8dfa3b246cf8e7478661c Mon Sep 17 00:00:00 2001 From: ghyadav Date: Thu, 16 Jan 2025 21:04:11 +0530 Subject: [PATCH] Resolving path issues --- .../evaluations-built-in/context/evaluate_on_data.py | 2 +- .../context/{ => online_eval}/eval_common/__init__.py | 0 .../context/{ => online_eval}/eval_common/_ua_patcher.py | 0 .../context/online_eval/evaluate_online.py | 4 ---- 4 files changed, 1 insertion(+), 5 deletions(-) rename assets/evaluation_on_cloud/environments/evaluations-built-in/context/{ => online_eval}/eval_common/__init__.py (100%) rename assets/evaluation_on_cloud/environments/evaluations-built-in/context/{ => online_eval}/eval_common/_ua_patcher.py (100%) diff --git a/assets/evaluation_on_cloud/environments/evaluations-built-in/context/evaluate_on_data.py b/assets/evaluation_on_cloud/environments/evaluations-built-in/context/evaluate_on_data.py index 41900281b0..6368d105fd 100644 --- a/assets/evaluation_on_cloud/environments/evaluations-built-in/context/evaluate_on_data.py +++ b/assets/evaluation_on_cloud/environments/evaluations-built-in/context/evaluate_on_data.py @@ -12,7 +12,7 @@ import shutil import sys -from eval_common import _ua_patcher # noqa: F401 # Module imported but unused +from online_eval.eval_common import _ua_patcher # noqa: F401 # Module imported but unused from azure.ai.ml.identity import AzureMLOnBehalfOfCredential from azure.ai.evaluation import evaluate from save_evaluation import load_evaluator diff --git a/assets/evaluation_on_cloud/environments/evaluations-built-in/context/eval_common/__init__.py b/assets/evaluation_on_cloud/environments/evaluations-built-in/context/online_eval/eval_common/__init__.py similarity index 100% rename from assets/evaluation_on_cloud/environments/evaluations-built-in/context/eval_common/__init__.py rename to assets/evaluation_on_cloud/environments/evaluations-built-in/context/online_eval/eval_common/__init__.py diff --git a/assets/evaluation_on_cloud/environments/evaluations-built-in/context/eval_common/_ua_patcher.py b/assets/evaluation_on_cloud/environments/evaluations-built-in/context/online_eval/eval_common/_ua_patcher.py similarity index 100% rename from assets/evaluation_on_cloud/environments/evaluations-built-in/context/eval_common/_ua_patcher.py rename to assets/evaluation_on_cloud/environments/evaluations-built-in/context/online_eval/eval_common/_ua_patcher.py diff --git a/assets/evaluation_on_cloud/environments/evaluations-built-in/context/online_eval/evaluate_online.py b/assets/evaluation_on_cloud/environments/evaluations-built-in/context/online_eval/evaluate_online.py index b3cf97c22a..4b50f5d5d3 100644 --- a/assets/evaluation_on_cloud/environments/evaluations-built-in/context/online_eval/evaluate_online.py +++ b/assets/evaluation_on_cloud/environments/evaluations-built-in/context/online_eval/evaluate_online.py @@ -3,10 +3,6 @@ """Main script for the online evaluation context.""" import argparse -import os -import sys - -sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))) from eval_common import _ua_patcher # noqa: F401, E402 # Module imported but unused import preprocess # noqa: E402