Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ar57m authored May 7, 2024
1 parent cbbd2cc commit fa0ed43
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions mergekit/merge_methods/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,20 @@ def get(method: str) -> MergeMethod:
default_rescale=True,
default_swapping=True,
)
elif method == "breadcrumbs":
return GeneralizedTaskArithmeticMerge(
consensus_method=None,
sparsification_method=SparsificationMethod.magnitude_outliers,
default_normalize=False,
default_rescale=False,
)
elif method == "breadcrumbs_ties":
return GeneralizedTaskArithmeticMerge(
consensus_method=ConsensusMethod.sum,
sparsification_method=SparsificationMethod.magnitude_outliers,
default_normalize=False,
default_rescale=False,
)
elif method == "model_stock":
return ModelStockMerge()
raise RuntimeError(f"Unimplemented merge method {method}")
Expand Down

0 comments on commit fa0ed43

Please sign in to comment.