Week Five: Machine Learning

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

correlation coefficient

a statistical index of the relationship between two things (from -1 to +1) 0.7 <= is considered high 0.5-0.7 is considered medium 0.3 >= is considered low.

df.corr()

Creates a correlation of the database.

sns.heatmap(df, cmap = "color", annot = True)

Creates a heatmap of a correlated database. Cmap selects color keep in mind that it is always plural (blues or greens etc.) annot = True shows the correlation coefficient. Default is off.

plt.plot(x, y)

Make a plot of x and y values. You can put in lists or dataframes or really anything in for x and y. Add a ; at the end to get rid of some annoying heading. If you put two .plot in the same cell they will both be added to the same graph.

import matplotlib.pyplot as plt

Python library like pandas that is used to visualize data.

plt.bar(x,y)

To create a bar chart, you will use plt.bar().

plt.scatter(x, y)

creates a scatter plot using x and y values


Ensembles d'études connexes

ENGT 2310 Chapter 3 Review (Safety, Health, & Environment)

View Set

Fluid, electrolyte, and Acid Base Balance Key Terms

View Set

Exam 3 EAQs: Ch. 24 - Burn Management

View Set