“Kompilacja modelu regresji” Kod odpowiedzi

Kompilacja modelu regresji

# Necessary Imports
import pandas as pd
import matplotlib.pyplot as plt
import pickle
% matpllotlib inline

data= pd.read_csv('Example.csv') # Reading the data file
data.head() # checking the first five rows from the dataset
Disturbed Dugong

Kompilacja modelu regresji

data.info() # printing the summary of the dataframe
Disturbed Dugong

Kompilacja modelu regresji

data.shape
Disturbed Dugong

Kompilacja modelu regresji

# visualizing the relationship between features and response using scatterplots
fig, axs = plt.subplots(1, 3, sharey=True)
data.plot(kind='scatter', x='TV', y='sales', ax=axs[0], figsize=(16, 8))
data.plot(kind='scatter', x='radio', y='sales', ax=axs[1])
data.plot(kind='scatter', x='newspaper', y='sales', ax=axs[2])
Disturbed Dugong

Odpowiedzi podobne do “Kompilacja modelu regresji”

Pytania podobne do “Kompilacja modelu regresji”

Więcej pokrewnych odpowiedzi na “Kompilacja modelu regresji” w Python

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu