📌  相关文章
📜  for idx, col_name in enumerate(X_train.columns): print("The coefficient for {} is {}".format(file_name, regression_model.coef_[0][idx])) - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:19.088000             🧑  作者: Mango

代码示例1
for idx, col_name in enumerate(X_train.columns):
    print("The coefficient for {} is {}".format(col_name, regression_model.coef_[0][idx]))