Registrations Closing Soon for DevOps Certification Training by CloudxLab | Registrations Closing inEnroll Now
Let us visualize the class-imbalance using Seaborn
sns.countplotshows the counts of observations in each categorical bin using bars.
Mention the colors of the bars to be displayed for each class in the count plot.
colors = ['blue','red']
sns.countplot and pass
palette=colors as input arguments.
<< your code comes here >>('Class', data=data, palette=colors)
We observe that the classes are highly imbalanced with most of the transactions are non-fraud.
No hints are availble for this assesment
Answer is not availble for this assesment
Note - Having trouble with the assessment engine? Follow the steps listed here