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

Update label docs and add validation #271

Merged
merged 4 commits into from
Dec 19, 2021
Merged

Update label docs and add validation #271

merged 4 commits into from
Dec 19, 2021

Conversation

matanper
Copy link
Contributor

No description provided.

@matanper matanper requested a review from shir22 December 16, 2021 18:18
@matanper matanper self-assigned this Dec 16, 2021
if label_name is None:
label_name = 'target'
if label_name in self._data.columns:
raise DeepchecksValueError(f'Data have column with name "{label_name}", use label_name parameter'
Copy link
Contributor

@shir22 shir22 Dec 16, 2021

Choose a reason for hiding this comment

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

Grammar - "Data has"

Copy link
Contributor

@shir22 shir22 Dec 16, 2021

Choose a reason for hiding this comment

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

Why is this validation nested inside the if label_name is None?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To write another message to the user based on he if passed label_name or not (if he didn't pass label_name but there is still a clash with the default name, target)

@matanper matanper enabled auto-merge (squash) December 16, 2021 18:42
@matanper matanper merged commit bb91727 into main Dec 19, 2021
@delete-merged-branch delete-merged-branch bot deleted the update-dataset-label branch December 19, 2021 12:26
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.

None yet

2 participants