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

Create estimation validation loop #136

Merged
merged 20 commits into from
May 6, 2020
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
remove redundant variables
  • Loading branch information
Tanmay-Kulkarni101 committed Apr 30, 2020
commit ea9de4dd68e804991f943c4b84ece97168e694cb
3 changes: 1 addition & 2 deletions dowhy/causal_refuters/dummy_outcome_refuter.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def data_preprocess(self):
data_chunks.append( ~self._data[ self._data[treatment_variable_name] ])
Tanmay-Kulkarni101 marked this conversation as resolved.
Show resolved Hide resolved

# We use string arguments to account for both 32 and 64 bit varaibles
elif 'float' in variable_type.name or
elif 'float' in variable_type.name or\
'int' in variable_type.name:
# action for continuous variables
data_copy = copy.deepcopy( self._data )
Tanmay-Kulkarni101 marked this conversation as resolved.
Show resolved Hide resolved
Expand All @@ -227,7 +227,6 @@ def data_preprocess(self):

elif 'categorical' in variable_type.name:
# Action for categorical variables
categories = list( self._data[treatment_variable_name].cat.categories )
groups = data_copy.groupby(treatment_variable_name)
Tanmay-Kulkarni101 marked this conversation as resolved.
Show resolved Hide resolved
data_chunks = [groups.get_group(group) for group in groups ]
else:
Expand Down