Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about parameter bug in anomaly-detection-algorithm doc #477

Open
Shuimo03 opened this issue Jun 8, 2023 · 3 comments
Open

about parameter bug in anomaly-detection-algorithm doc #477

Shuimo03 opened this issue Jun 8, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Shuimo03
Copy link

Shuimo03 commented Jun 8, 2023

Describe this problem

In the example and parameters about inputTimeSeries parameters and holoinsight-AI in the algorithm parameters do not correspond:

{
  "inputTimeSeries": {
    "1681710540000": 559,
    "1681710600000": 597,
    "1681710660000": 505,
    "1681710720000": 572,
    "1681710780000": 515,
    "1681710840000": 552,
    "1681710900000": 549,
    "1681710960000": 521,
    "1681711020000": 500,
    "1681711080000": 564,
    "1681711140000": 517,
    "1681711200000": 5000
  },
    "intervalTime": 60000,
    "detectTime": 1681711200000,
    "algorithmConfig": {
    "algorithmType": "up",
    "sensitivity": "mid"
  },
    "ruleConfig": {
    "defaultDuration": 1,
    "customChangeRate": 0.1
  }
}

inputTimeSeries is lo lowercase, but holoinsight-AI is uppercase

    def build_req(self):
        """
        Builds and returns an AD request object based on the input body.

        @return: The built AD request object.
        """
        # Data processing
        ts = self.body.get("InputTimeSeries")
        print("ts:", ts)
        detect_time = self.body.get("detectTime")
        period = self.body.get("intervalTime")
        data_by_data = self.data_process(ts, detect_time, period, detect_length=self.period_mapper(period))

        # Detect information
        algorithm_type = self.body.get("algorithmConfig").get("algorithmType")
        detect_info = DetectInfo(sensitive=self.body.get("algorithmConfig").get("sensitivity", "mid"),
                                 algorithm_type=algorithm_type
                                 )

        # Rule information
        if self.body.get("ruleConfig") is None:

Steps to reproduce

  1. running holoinsight-AI service
  2. input example
  3. get error result
    image

Expected behavior

No response

Additional Information

No response

@Shuimo03 Shuimo03 added the bug Something isn't working label Jun 8, 2023
@xzchaoo
Copy link
Contributor

xzchaoo commented Jun 21, 2023

@wangsiyuan-code

@wangsiyuan-code
Copy link
Contributor

We have fixed this issue in holoinsight-ai, please pull the code again

@Shuimo03
Copy link
Author

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants