-
Notifications
You must be signed in to change notification settings - Fork 73
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
Update failure_type_classifier
#284
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
failure_type_classifier
failure_type_classifier
failure_type_classifier
/retest |
@@ -0,0 +1,343 @@ | |||
{ |
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.
View / edit / reply to this conversation on ReviewNB MichaelClifford commented on 2021-06-03T20:23:44Z "the image below" |
View / edit / reply to this conversation on ReviewNB MichaelClifford commented on 2021-06-03T20:23:45Z can the end of this notebook (before the saving to ceph) be to run the failure type classification for all grids? |
" dates = data[tab_name][grid_name][\"timestamps\"]\n", | ||
" infra_flake_dates = np.array(dates)[list([infra_flakes][0][1])]\n", | ||
" infra_flake_dates = [\n", | ||
" datetime.date.fromtimestamp(x // 1000) for x in infra_flake_dates #issue with x here...what is it referring to?\n", |
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.
@isabelizimm
I did some testing with pre-commit and I think the issue is with the comment in this line. Removing it seems to fix the issue.
Also, to answer the comment so that it can be removed, this is a list comprehension; works similar to a for loop in the form [ do_something_with_(x) for x in iterator] and returns a list. In this case we are converting items in infra_flake_dates into datetime format from timestamps.
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.
Ahhh yes. When I rearranged the functions I had to update a few things, but forgot I had put that comment in there. When I removed this comment, my pre-commit worked as well. Thank you for doing some detective work!
@@ -27,7 +27,7 @@ | |||
}, |
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.
Line #7. filename = f"report_local.json"
Should the locally saved file also have the same day.month.dashboard.job convention?
Reply via ReviewNB
@@ -0,0 +1,973 @@ | |||
{ |
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.
If we there is no option to call this notebook from its original location, can we customize it to be "helper for failure type" so it is its own notebook? And remove anything that's not needed for the workflow here?
Reply via ReviewNB
@@ -18,7 +18,7 @@ | |||
}, |
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.
8944f0c
to
c77188e
Compare
failure_type_classifier
failure_type_classifier
c77188e
to
133a443
Compare
…ipeline Co-authored-by: Shrey Anand <shanand@redhat.com> Co-authored-by: isabelizimm <izimmerman5298@floridapoly.edu>
133a443
to
7bb7060
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: MichaelClifford The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Co-authored-by: Shrey Anand shanand@redhat.com
Related Issues and Dependencies
#274
This introduces a breaking change
This Pull Request implements
code for running the failure type classification in a pipeline.
Description
Things that can be improved here: