FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

adding extrinsic eval notebook by ephamhung-oss · Pull Request #374 · NVIDIA/GenerativeAIExamples · GitHub

adding extrinsic eval notebook - #374

Open
ephamhung-oss wants to merge 5 commits into
NVIDIA:mainfrom
ephamhung-oss:add-extrinsic-eval
Open

adding extrinsic eval notebook#374
ephamhung-oss wants to merge 5 commits into
NVIDIA:mainfrom
ephamhung-oss:add-extrinsic-eval

Conversation

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Eric Pham-Hung <ephamhung@ephamhung-mlt.client.nvidia.com>
ephamhung-oss marked this pull request as ready for review October 20, 2025 20:20
Signed-off-by: Eric Pham-Hung <ephamhung@nvidia.com>
Signed-off-by: Eric Pham-Hung <ephamhung@nvidia.com>

nina-xu left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

overall it looks good! thanks so much for putting this together

"id": "630e3e17",
"metadata": {},
"source": [
"# 🎛️ NeMo Safe Synthesizer 101: Extrinsic Evaluation\n",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

102?

"metadata": {},
"outputs": [],
"source": [
"# This script defines a scikit-learn pipeline for a classification task.\n",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

For the extrinsic evaluation portion, there’s a bit of code repetition. Suggest to DRY it up by defining the train + eval steps into a function, and call that function twice with train_and_evaluate_logistic_regression(df, test_df); train_and_evaluate_logistic_regression(synthetic_df, test_df). This also makes it very clear to a user what we are doing here.

"from sklearn.metrics import classification_report, accuracy_score, roc_auc_score\n",
"\n",
"original_pipeline = full_pipeline \n",
"print(\"\\n--- Training Benchmark Model on Original Data (1000 rows) ---\")\n",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I don't think the 1000 here is accurate here?

Comment on lines +467 to +470
"| Accuracy | 0.9404 | 0.9278 |\n",
"| ROC AUC Score | 0.9782 | 0.9762 |\n",
"| Precision (Class 1) | 0.9626 | 0.9423 |\n",
"| Recall (Class 1) | 0.9646 | 0.9714 |\n",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This is amazing results. out of curiorsity what was the SQS?

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL