Value range sometimes breaks if a variable is not longer numeric.
2026-07-21 14:38:38,946] ERROR detectmatelibrary.tools.logging: Non-numeric value 'SERVICE_STOP' appeared in training of ValueRangeDetector with the name ValueRangeDetector.
[2026-07-21 14:38:38,946] ERROR detectmatelibrary.tools.logging: Non-numeric value 'accounting' appeared in training of ValueRangeDetector with the name ValueRangeDetector.
[2026-07-21 14:38:38,946] ERROR detectmatelibrary.tools.logging: Non-numeric value 'PAM' appeared in training of ValueRangeDetector with the name ValueRangeDetector.
[2026-07-21 14:38:38,946] ERROR detectmatelibrary.tools.logging: Non-numeric value 'setcred' appeared in training of ValueRangeDetector with the name ValueRangeDetector.
[2026-07-21 14:38:38,946] ERROR detectmatelibrary.tools.logging: Non-numeric value 'PAM' appeared in training of ValueRangeDetector with the name ValueRangeDetector.
⏳ Running: 10%|▉ | 346/3473 [00:00<00:00, 9618.94log/s]
Traceback (most recent call last):
File "/home/garcia-gomeza/Documents/code/DetectMateExperiments/Benchmarks/src/benchmark.py", line 71, in <module>
for alert in From.polars(detector, df=df):
~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/home/user/Documents/code/DetectMateExperiments/Benchmarks/.venv/lib/python3.13/site-packages/detectmatelibrary/helper/from_to.py", line 200, in _yield
yield component.process(in_schema) # type: ignore
~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "/home/user/Documents/code/DetectMateExperiments/Benchmarks/.venv/lib/python3.13/site-packages/detectmatelibrary/common/core.py", line 217, in process
return_schema = self.run(input_=data_buffered, output_=output_)
File "/home/user/Documents/code/DetectMateExperiments/Benchmarks/.venv/lib/python3.13/site-packages/detectmatelibrary/common/detector.py", line 203, in run
if (anomaly_detected := self.detect(input_=input_, output_=output_)):
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/Documents/code/DetectMateExperiments/Benchmarks/.venv/lib/python3.13/site-packages/detectmatelibrary/detectors/value_range_detector.py", line 106, in detect
cast = self.cast_val_to_numeric(configured_variables, var_name, [], "detection")
File "/home/user/Documents/code/DetectMateExperiments/Benchmarks/.venv/lib/python3.13/site-packages/detectmatelibrary/detectors/value_range_detector.py", line 54, in cast_val_to_numeric
v = configured_variables[k]
~~~~~~~~~~~~~~~~~~~~^^^
KeyError: 'var_15'
Subject of the issue
Value range sometimes breaks if a variable is not longer numeric.
Your environment