项目视频讲解:房价预测:基于机器学习的北京房价预测数据分析_哔哩哔哩_bilibili
结果展示:
完整代码:
import pandas as pd import matplotlib.pyplot as plt import numpy as np import seaborn as sns from sklearn.model_selection import train_test_split #这里是引用了交叉验证 from sklearn.linear_model import LinearRegression #线性回归 from sklearn.tree import DecisionTreeRegressor#决策树 from sklearn.neighbors import KNeighborsClass