ML-For-Beginners
ML-For-Beginners copied to clipboard
Suggested Minor Correction for /2-Regression/4-Logistic/README.md
Dear Developers,
I've been engaging with your ML-For-Beginners project on GitHub and found it immensely helpful. Thank you for creating such valuable resources for beginners.
I would like to suggest a minor correction in the code found in this section. The existing code snippet:
palette = {
0: 'orange',
1: 'wheat'
}
sns.swarmplot(x="Color", y="ord__Item Size", data=encoded_pumpkins, palette=palette)
produces a ValueError due to mismatched dictionary keys. The keys should be strings to match the data types in the 'Color' column. Here is the corrected code:
palette = {
'0': 'orange',
'1': 'wheat'
}
sns.swarmplot(x="Color", y="ord__Item Size", data=encoded_pumpkins, palette=palette)
Thank you for considering this correction.
Best regards,
Misaraty