-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Make confusion_matrix and roc generic #1285
Conversation
/lgtm |
Can minio client not frontend any s3 type storage? Do we need them separately? |
Yes. Frontend will check protocol for file in |
I double check code. Actually,
Verified it's safe to remove this field on two files. Frontend will get storage service from file path. What do you think? |
|
Can you clarify this? What two files are you referring to? Like you mentioned, in |
two files I mean are These two files write unneeded
At the beginning, I think frontend may use |
I see. So you'll change this PR to just remove |
b5d9b76
to
f05a1d1
Compare
@@ -40,7 +41,8 @@ def main(argv=None): | |||
'If not set, the input must include a "target" column.') | |||
args = parser.parse_args() | |||
|
|||
on_cloud = args.output.startswith('gs://') | |||
storage_service_scheme = urlparse.urlparse(args.output).scheme |
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.
a few cases are
- minio://dir/file_path
- gs://dir/file_path
- s3://dir/file_path
- local path "/dir/file_path"
scheme for local path is empty, all rest we consider they are on_cloud
Cool. Make the change. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Ark-kun 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 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Ark-kun 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 |
Add s3 and minio storage options in confusion_matrix and roc components.
Frontend s3 support has been added in this PR #1278
This change is