MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / _metric_inference

Function _metric_inference

api/experimentation/services.py:407–416  ·  view source on GitHub ↗
(
    spec: MetricSpec,
    variants: dict[str, VariantStats],
)

Source from the content-addressed store, hash-verified

405
406
407def _metric_inference(
408 spec: MetricSpec,
409 variants: dict[str, VariantStats],
410) -> dict[str, Inference | None]:
411 control = variants.get(CONTROL_VARIANT_KEY)
412 return {
413 variant_key: _infer_treatment(spec, control, treatment)
414 for variant_key, treatment in variants.items()
415 if variant_key != CONTROL_VARIANT_KEY
416 }
417
418
419def _infer_treatment(

Callers 1

build_results_summaryFunction · 0.85

Calls 2

_infer_treatmentFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…