← 返回题库
中级

特征选择:递归特征消除

未完成
中级参考 代码结构已给出,请填写 ____ 处
def solve():
    from sklearn.datasets import load_wine
    from sklearn.feature_selection import RFE
    from sklearn.linear_model import LogisticRegression
    import numpy as np
    wine = load_wine()
    estimator = LogisticRegression(____)
    selector = RFE(____)
    selector = selector.fit(____)
    print(____)
    for name, selected, rank in zip(____):
        status = '____' if selected else '____'
        print(____)
    print(____)
Python 代码 🔒 登录后使用
🔒

登录后即可练习

注册免费账号,在浏览器中直接运行 Python 代码