docstr: Test "sign test" algorithm with a threshold of 0%
docstr_tok: ["Test","``","sign","test","''","algorithm","with","a","threshold","of","0","%"]
code: def test_sign_test_algorithm_interface(self):
      """
      Test "sign test" algorithm with a threshold of 0%
      """
      bs = dict()
      bs.update((t, 1) for t in range(1, 30))
  
      # Simple tests
      algorithm_params = {
          "percent_threshold_upper": 0,
          "offset": 2,
          "scan_window": 24,
          "confidence": 0.01,
      }
      ts = dict(bs)
      # bigger than 10 percent but below bias
      ts.update((t, 3.1) for t in range(1, 21))
  
      # first no anomalies
      detector = AnomalyDetector(
          ts,
          baseline_time_series=bs,
          algorithm_name="sign_test",
          algorithm_params=algorithm_params,
      )
      anomalies = detector.get_anomalies()
  
      self.assertTrue(anomalies is not None)
      self.assertEqual(len(anomalies), 1)
  
      # try lower bound
      algorithm_params = {
          "percent_threshold_lower": 0,
          "offset": 2,
          "scan_window": 24,
          "confidence": 0.01,
      }
      ts = dict(bs)
      # less than baseline plus bias
      ts.update((t, 2.9) for t in range(1, 25))
  
      # first no anomalies
      detector = AnomalyDetector(
          ts,
          baseline_time_series=bs,
          algorithm_name="sign_test",
          algorithm_params=algorithm_params,
      )
      anomalies = detector.get_anomalies()
  
      self.assertTrue(anomalies is not None)
      self.assertEqual(len(anomalies), 1)
  
imports: import os
  import sys
  import unittest
  from luminol import exceptions
  from luminol.anomaly_detector import AnomalyDetector
  from luminol.modules.time_series import TimeSeries
  from luminol.algorithms.anomaly_detector_algorithms import AnomalyDetectorAlgorithm
label_desc: Use image node_id 5 for calling the TestAnomalyDetector obj's underlying member method code with example usage: obj.test_sign_test_algorithm_interface() without return types