python - 熊猫数据转换为对象的 numpy dtype
问题描述
我正在尝试使用 uber 库来构建隆起树。 https://github.com/uber/causalml/blob/master/examples/feature_selection.ipynb
这是一个通过 Fisher 标准选择特征的示例
filter_f = FilterSelect()
method = 'F'
f_imp = filter_f.get_importance(df, X_names, y_name, method,
treatment_group = 'treatment1')
print(f_imp)
当我尝试执行它时,我得到了错误
也许有人已经有这个问题?
我也检查df
了object
,但object
类型只有treatment_group_key
在示例中
解决方案
推荐阅读
- python - 当它应该显示更改的列表时,python给出的输出值为none
- c# - 发布后 ASP.net 相对路径损坏
- r - 在r中的glob2rx函数中添加变量
- node.js - expressjs中路由器之间的转发请求
- python - 根据字符串的存在过滤 Django 查询集
- python - 遍历列表以查找项目
- javascript - Javascript:如何制作同步循环?
- python-3.x - python dict中的ttk按钮引用同一个对象,生成问题?
- ios - UIDatePicker EventValueChanged 未显示实际日期/时间
- python - 将 utf-8 字符打印到控制台