@@ -2477,46 +2477,3 @@ def check_population_corr_raw_media(
24772477 explanation = eda_constants .POPULATION_CORRELATION_RAW_MEDIA_INFO ,
24782478 check_name = 'check_population_corr_raw_media' ,
24792479 )
2480-
2481- def _check_prior_probability (
2482- self ,
2483- ) -> eda_outcome .EDAOutcome [eda_outcome .PriorProbabilityArtifact ]:
2484- """Checks the prior probability of a negative baseline.
2485-
2486- Returns:
2487- An EDAOutcome object containing a PriorProbabilityArtifact. The artifact
2488- includes a mock prior negative baseline probability and a DataArray of
2489- mock mean prior contributions per channel.
2490- """
2491- # TODO: b/476128592 - currently, this check is blocked. for the meantime,
2492- # we will return mock data for the report.
2493- channel_names = self ._model_context .input_data .get_all_channels ()
2494- mean_prior_contribution = np .random .uniform (
2495- size = len (channel_names ), low = 0.0 , high = 0.05
2496- )
2497- mean_prior_contribution_da = xr .DataArray (
2498- mean_prior_contribution ,
2499- coords = {constants .CHANNEL : channel_names },
2500- dims = [constants .CHANNEL ],
2501- )
2502-
2503- artifact = eda_outcome .PriorProbabilityArtifact (
2504- level = eda_outcome .AnalysisLevel .OVERALL ,
2505- prior_negative_baseline_prob = 0.123 ,
2506- mean_prior_contribution_da = mean_prior_contribution_da ,
2507- )
2508-
2509- findings = [
2510- eda_outcome .EDAFinding (
2511- severity = eda_outcome .EDASeverity .INFO ,
2512- explanation = eda_constants .PRIOR_PROBABILITY_REPORT_INFO ,
2513- finding_cause = eda_outcome .FindingCause .NONE ,
2514- associated_artifact = artifact ,
2515- )
2516- ]
2517-
2518- return eda_outcome .EDAOutcome (
2519- check_type = eda_outcome .EDACheckType .PRIOR_PROBABILITY ,
2520- findings = findings ,
2521- analysis_artifacts = [artifact ],
2522- )
0 commit comments