-
Notifications
You must be signed in to change notification settings - Fork 35
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
log_metrics does not appear to work #151
Comments
I am experiencing exactly the same issue with |
For reference, I got this to work by setting |
Looks like swattstgt identified the root cause of
Ya, will add an example notebook.
Ya the behavior of |
In addition to training jobs, it would be very useful if metrics could also be logged from sagemaker processing jobs. I note that the Sagemaker API has been opened to log from anywhere except |
I too have this same issue. I have set the sk_model = SKLearn(
source_dir="src/",
entry_point="training/model.py",
role=sagemaker.get_execution_role(),
framework_version="0.23-1",
instance_count=1,
instance_type=instance_type,
output_path=model_s3_uri,
code_location=code_s3_uri,
base_job_name=model_id,
enable_sagemaker_metrics=True,
environment={"MODEL_ID": model_id},
tags=tags,
) and my with Tracker.create(display_name="evaluation", sagemaker_boto_client=sm) as tracker:
tracker.log_metric(metric_name="best_cv_score", value=cv_best_score, timestamp=t,)
tracker.log_metric(metric_name="score", value=scor, timestamp=t)
tracker.log_confusion_matrix(y_test, predictions, title="conf-mtrx")
tracker.log_metric(metric_name="roc", value=roc, timestamp=t)
tracker.log_roc_curve(y_test, predictions, title="roc-curve")
Trial.load(trial_name=model_id).add_trial_component(tracker.trial_component) I can see the |
@lorenzwalthert - Can you provide some additional detail on your use case for metrics in processing jobs? Create a new issue in this repo. Thanks. |
@jlloyd-widen the |
I have nearly exactly the same issue as @athewsey had originally in Issue #73.
I have been trying for several hours to save experiments, trials and trial components in various orders such that
log_metrics
actually logs any metrics. I am callinglog_metrics
from a tracker created usingload
rather thancreate
, inside a training job and no warnings are printed, but no matter what I do aws sagemaker studio and sagemaker experiments api seem unable to retrieve these metrics later (though parameters and artifacts are certainly logged).@danabens can you provide a code snippet or the full code you ran before august 8 2020 that indicated to you that metrics are working as intended? This would possibly allow me to determine the source of my issue.
Presently I am unable to find any similar code outlining the intended
log_metrics
workflow in either this repo or inamazon-sagemaker-examples
.The text was updated successfully, but these errors were encountered: