Can you help me with Machine Learning? I need to calculate correlations between features…
Jump to turn (9)
- 1Can you help me with Machine Learning? I need to calculate correlations between
- 2Can you make a simple visualisation? Just like this, but more effective: import
- 3Can you help me with next steps? Task: Select two variables. Plot and visualize
- 4can we add names of classes to the plot?
- 5Can you help me with another task?
- 6Task: Keep only two (least separable) classes. Build a linear discriminant on al
- 7Explain, please, what's giong on in loops
- 8Next: On two variables, calculate the quadratic separating function directly fro
- 9Not like you did. See this (some erros in code): X = irisdataset.data[irisdatase
- User
Can you help me with Machine Learning? I need to calculate correlations between features in the entire table and separately by classes (use pd.groupby) Here's my code: import numpy as np import pandas as pd from sklearn import datasets
load dataset
iris_ds = datasets.load_iris()
to Data Frame
iris_pd = pd.DataFrame(iris_ds.data,columns = iris_ds['feature_names'])
add taget and target_name columns
iris_pd['target'] = iris_ds['target'] iris_pd['target_name'] = iris_pd['target'].map(lambda x : iris_ds['target_names'][x]) iris_pd[::10]
- Assistant