DataCanvasIO / YLearn

YLearn, a pun of "learn why", is a python package for causal inference
https://ylearn.readthedocs.io
Apache License 2.0
391 stars 75 forks source link

fit不指定treatment时,进程闪退 #51

Closed wangjianqiao111 closed 1 year ago

wangjianqiao111 commented 1 year ago

Please make sure that this is a bug.

System information

**from ylearn import Why

why = Why() why.fit(data, outcome)**

报错: Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

说明:当训练why模型时,不指定treatment参数时,程序闪退

代码如下: ** from sklearn.datasets import fetch_california_housing

housing = fetch_california_housing(as_frame=True) data = housing.frame outcome = housing.target_names[0] data[outcome] = housing.target

from ylearn import Why

why = Why() why.fit(data, outcome) **