Skip to content
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

Merged
merged 4 commits into from
Sep 3, 2024
Merged

Evaluate generation #4

merged 4 commits into from
Sep 3, 2024

Conversation

dgbaenar
Copy link
Contributor

@dgbaenar dgbaenar commented Sep 3, 2024

This PR includes the generation evaluation metrics

@dgbaenar dgbaenar added the enhancement New feature or request label Sep 3, 2024
Comment on lines +12 to +18
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
Copy link
Contributor

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?

Copy link
Contributor Author

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"
Copy link
Contributor

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

Copy link
Contributor Author

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(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@dgbaenar dgbaenar merged commit 6ed90b3 into main Sep 3, 2024
2 checks passed
@dgbaenar dgbaenar deleted the evaluate_generation branch September 3, 2024 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants