Python Bytes - Machine Learning Correlation Matrix #coding #datascience #python Code in Description

preview_player
Показать описание
#Coded by Andrew C

import pandas as pd

from sklearn import datasets

print(corr_matrix)

#To understand the relationship among features (columns), a correlation matrix is very useful in the exploratory data analysis. Correlation measures linear relationships between variables. We can construct a correlation matrix to show correlation coefficients between variables. It is symmetric where each element is a correlation coefficient ranging from -1 and 1. A value near 1 (resp. -1) indicates a strong positive (resp. negative) correlation between variables.
Рекомендации по теме