From 526525b854276ab958859832396210ee40e386ad Mon Sep 17 00:00:00 2001 From: Martin Jullum Date: Sun, 13 Oct 2024 23:28:42 +0200 Subject: [PATCH] Workaround for failing test on macOS-latest on GHA (#407) --- .../_snaps/asymmetric-causal-output.md | 7 +++---- ...tput_categorical_asym_causal_mixed_cat.rds | Bin 5208 -> 6850 bytes .../testthat/test-asymmetric-causal-output.R | 9 ++++++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/tests/testthat/_snaps/asymmetric-causal-output.md b/tests/testthat/_snaps/asymmetric-causal-output.md index dfe44a39..69d88372 100644 --- a/tests/testthat/_snaps/asymmetric-causal-output.md +++ b/tests/testthat/_snaps/asymmetric-causal-output.md @@ -659,7 +659,7 @@ * Approach: categorical * Adaptive estimation: FALSE * Number of feature-wise Shapley values: 4 - * Number of observations to explain: 3 + * Number of observations to explain: 2 * Causal ordering: {Solar.R_factor, Wind_factor}, {Ozone_sub30_factor}, {Month_factor} * Components with confounding: {Solar.R_factor, Wind_factor} @@ -670,9 +670,8 @@ Output explain_id none Month_factor Ozone_sub30_factor Solar.R_factor Wind_factor - 1: 1 42.44 -11.613 12.57 -8.702 7.235 - 2: 2 42.44 -3.868 -10.67 23.074 -23.367 - 3: 3 42.44 22.619 -14.62 -4.992 -21.367 + 1: 1 42.44 -10.128 15.35 -10.26 4.526 + 2: 2 42.44 -4.316 -10.80 21.06 -20.769 # output_cat_asym_causal_mixed_cat_ad diff --git a/tests/testthat/_snaps/asymmetric-causal-output/output_categorical_asym_causal_mixed_cat.rds b/tests/testthat/_snaps/asymmetric-causal-output/output_categorical_asym_causal_mixed_cat.rds index 5af69e7106c5ea3e126dd8a6cc340379d2329f4b..adf82daafa17999aafebb0b460d468d692221e03 100644 GIT binary patch literal 6850 zcmV;z8a?G7iwFP!000001MNKvbQDFlJ-;NA&txEgfUu%`g&31bNFpfHK>~_Kzz_iy z+s>qu3`}N*nMnvBD=X`NWqm8I3yMz{SNz~_SADCi1jW^LMe+00b(LL@$U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