MCPcopy Create free account
hub / github.com/yzhao062/pyod / _build_decrease_contamination

Function _build_decrease_contamination

pyod/utils/_nl_feedback.py:333–339  ·  view source on GitHub ↗
(state: 'InvestigationState', _feedback_lower: str)

Source from the content-addressed store, hash-verified

331
332
333def _build_decrease_contamination(state: 'InvestigationState', _feedback_lower: str) -> dict:
334 current = (state.plans[0].get('params', {}).get('contamination', 0.1)
335 if state.plans else 0.1)
336 return {
337 'action': 'adjust_contamination',
338 'value': adjust_contamination_down(current),
339 }
340
341
342def _build_increase_contamination(state: 'InvestigationState', _feedback_lower: str) -> dict:

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…