From c0b930c1b95793b03a607d3472f4f89091880740 Mon Sep 17 00:00:00 2001 From: Stephen Privitera Date: Wed, 26 Jun 2024 16:21:45 +0200 Subject: [PATCH] Revert "fix formatting for docs" This reverts commit 8e89eccb47e638336807fbf0d8f5418f10840319. --- pybalance/lp/matcher.py | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/pybalance/lp/matcher.py b/pybalance/lp/matcher.py index 30a3365..22c6eab 100644 --- a/pybalance/lp/matcher.py +++ b/pybalance/lp/matcher.py @@ -154,22 +154,22 @@ class ConstraintSatisfactionMatcher(object): options pool_size, target_size, and max_mismatch. The behavior of the solver is as given in the table below: - +----------------------------------------------------------------------------------------+ - |pool_size |target_size |max_mismatch |optimize | - +----------------------------------------------------------------------------------------+ - |N |N |Y |pool_size subject to target_size = n_target | - | | | | and balance constraints | - |Y |Y |Y |balance subject to size and balance | - | | | | constraints | - |Y |Y |N |balance subject to size constraints | - |N |N |N |balance subject to size constraints; default| - | | | | to pool_size = target_size = n_target | - +----------------------------------------------------------------------------------------+ - |Y |N |Y |not suported | - |N |Y |Y |not suported | - |Y |N |N |not suported | - |N |Y |N |not suported | - +----------------------------------------------------------------------------------------+ + ------------------------------------------------------------------------------ + pool_size target_size max_mismatch optimize + ------------------------------------------------------------------------------ + N N Y pool_size subject to target_size = n_target + and balance constraints + Y Y Y balance subject to size and balance + constraints + Y Y N balance subject to size constraints + N N N balance subject to size constraints; default + to pool_size = target_size = n_target + ------------------------------------------------------------------------------ + Y N Y not suported + N Y Y not suported + Y N N not suported + N Y N not suported + ------------------------------------------------------------------------------ Optimizing pool_size subject to balance constraint is known as "cardinality matching". See https://kosukeimai.github.io/MatchIt/reference/method_cardinality.html