-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Evaluate generation #4
Conversation
python3.9 -m venv venv-dev | ||
source venv-dev/bin/activate | ||
pip install -r requirements-dev.txt | ||
|
||
python3.9 -m venv venv | ||
source venv/bin/activate | ||
pip install -r requirements.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it needed to have 2 environments instead of 1? Are there conflicting library versions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I considered unnecesary to install boto3, clearml, python-dotenv, pandas, tqdm and tiktoken in the main environment, what do you think?
load_dotenv() | ||
|
||
# Load config | ||
INPUT_PATH = os.path.dirname(__file__) + "/data/input_get_metrics.json" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer to use os.path.join
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
DATA_DIR, "openai_outputs", config["CORRECTNESS_RESULTS_CSV"]) | ||
FAITHFULNESS_RESULTS_CSV = os.path.join( | ||
DATA_DIR, "openai_outputs", config["FAITHFULNESS_RESULTS_CSV"]) | ||
RESULT_METRICS_TXT = os.path.dirname( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
This PR includes the generation evaluation metrics