Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P pyod
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 144
    • Issues 144
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Yue Zhao
  • pyod
  • Issues
  • #476
Closed
Open
Issue created Jan 30, 2023 by Mark Friedländer@markfried96

Error in hbos with auto for n_bins

I'm trying to use the hbos algorithm with the auto parameter for n_bins. PyOD creates the model without any problems. But when I'm trying to call the decision_function on the trained model with a new data point, I get the following error:

"attempt to get argmax of an empty sequence"

This happens in the following function: _calculate_outlier_scores_auto -> get_optimal_n_bins(X[:, i]) -> np.argmax(maximum_likelihood) ->attempt to get argmax of an empty sequence

Does anyone have a quick solution? Am I doing something wrong?

Assignee
Assign to
Time tracking