Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add causal analysis notebook #466

Merged
merged 2 commits into from
May 17, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion econml/solutions/causal_analysis/_causal_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def _first_stage_reg(X, y, *, automl=True):

def _first_stage_clf(X, y, *, make_regressor=False, automl=True):
if automl:
model = GridSearchCVList([make_pipeline(StandardScaler(), LogisticRegression()),
model = GridSearchCVList([make_pipeline(StandardScaler(), LogisticRegression(max_iter=1000)),
RandomForestClassifier(
n_estimators=100, random_state=123),
GradientBoostingClassifier(random_state=123)],
Expand Down
2 changes: 1 addition & 1 deletion econml/tests/test_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import traitlets

_nbdir = os.path.join(os.path.dirname(__file__), '..', '..', 'notebooks')
_nbsubdirs = ['.', 'CustomerScenarios'] # TODO: add AutoML notebooks
_nbsubdirs = ['.', 'CustomerScenarios', 'Solutions'] # TODO: add AutoML notebooks
_notebooks = [
os.path.join(subdir, path) for subdir
in _nbsubdirs for path in os.listdir(os.path.join(_nbdir, subdir)) if
Expand Down
Loading