Skip to content

Commit a35714f

Browse files
committed
Merge branch 'LARR-method' of https://github.com/HashirA123/recourse_benchmarks into LARR-method
2 parents 35c86c2 + 3170678 commit a35714f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

methods/catalog/larr/model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ def get_counterfactuals(self, factuals: pd.DataFrame) -> pd.DataFrame:
206206
"The model did not predict any failures in the original training data. It cannot search for the Lambda parameter"
207207
)
208208

209+
recourse_needed_X_train = df_train_processed.iloc[np.where(preds_gpu_probs == 0)]
209210
# recourse_needed_X_train = df_train_processed.values[:5]
210211

211212
# first choose the optimal lambda value

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ tensorflow==1.14.0
3333
torch==1.7.0 -f https://download.pytorch.org/whl/torch_stable.html
3434
torchvision==0.8.1
3535
xgboost==1.4.2
36-
tqdm
36+
tqdm = 4.67.1

0 commit comments

Comments
 (0)