前言
第二天的还是CV,这一次直接用作者的代码和数据集没有问题。
数据集和代码都可以从下面的github开源项目中获取。
参考
github英文:https://github.com/Avik-Jain/100-Days-Of-ML-Code
github中文翻译版:https://github.com/Avik-Jain/100-Days-of-ML-Code-Chinese-Version
作者源代码
#第一步 数据预处理
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
dataset = pd.read_csv('studentscores.csv')
X = dataset.iloc[