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

feat(tree): enable label select #852

Merged
merged 3 commits into from
Jul 21, 2021

Conversation

hangweiqiang-uestc
Copy link
Collaborator

  1. support label selection in tree model
  2. treat '' as 'nan'

@@ -357,7 +364,7 @@ def test_one_file(args, bridge, booster, data_file, output_file):
X, cat_X, X_names, cat_X_names, y, example_ids, raw_ids = \
read_data(
args.file_type, data_file, args.verify_example_ids,
False, args.ignore_fields, args.cat_fields)
False, args.ignore_fields, args.cat_fields, args.label_field)
Copy link
Collaborator

Choose a reason for hiding this comment

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

是因为label这个名字被占用了吗?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

不是,是想让用户选择哪个列做y

@tjulinfan
Copy link
Collaborator

LGTM

@duanbing duanbing merged commit 3b82e88 into bytedance:master Jul 21, 2021
chong1144 pushed a commit that referenced this pull request Dec 16, 2021
* feat(tree): select label

* feat(tree): fix

* feat(tree): add label_feild in script

Co-authored-by: 杭卫强 <hangweiqiang@bytedance.com>

Co-authored-by: Hang Weiqiang <56426022+hangweiqiang-uestc@users.noreply.github.com>
Co-authored-by: 杭卫强 <hangweiqiang@bytedance.com>
chong1144 added a commit that referenced this pull request Dec 20, 2021
chong1144 added a commit that referenced this pull request Dec 20, 2021
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.

3 participants