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

Violin Plot p.98 #15

Open
FutureGoose opened this issue Nov 6, 2023 · 0 comments
Open

Violin Plot p.98 #15

FutureGoose opened this issue Nov 6, 2023 · 0 comments

Comments

@FutureGoose
Copy link

The violinplot function in seaborn doesn't need a kind parameter because it's already clear what kind of plot you want—a violin plot. You may have confused this with the catplot or factorplot functions, which do require a kind parameter because those functions can generate different kinds of plots.

The corrected line should simply remove the kind argument:

sns.violinplot(x='max_depth', y='loss', data=hyper2hr, ax=ax)

Please note: To replicate the color-coded output as shown in the example from the book, you will need to incorporate color distinctions, which can be achieved by utilizing the 'hue' parameter in your code.

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

No branches or pull requests

1 participant