【发布时间】:2022-01-06 20:16:51
【问题描述】:
我的初始导入看起来像这样,这个代码块运行良好。
# Libraries to help with reading and manipulating data
import numpy as np
import pandas as pd
# Libraries to help with data visualization
import matplotlib.pyplot as plt
import seaborn as sns
sns.set()
# Removes the limit for the number of displayed columns
pd.set_option("display.max_columns", None)
# Sets the limit for the number of displayed rows
pd.set_option("display.max_rows", 200)
# to split the data into train and test
from sklearn.model_selection import train_test_split
# to build linear regression_model
from sklearn.linear_model import LinearRegression
# to check model performance
from sklearn.metrics import mean_absolute_error, mean_squared_error, r2_score
但是当我尝试执行命令时,我收到错误 ModuleNotFoundError: No module named 'sklearn.externals.joblib'
我尝试使用 !pip 安装所有模块和其他针对此错误的建议,但它不起作用。这是 google colab,所以不确定我错过了什么
from mlxtend.feature_selection import SequentialFeatureSelector as SFS
【问题讨论】:
标签: python google-colaboratory sequentialfeatureselector