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
  • #260
Closed
Open
Issue created Dec 10, 2020 by Julien Schuermans@julienschuermans

COPOD explain_outlier: add option to add feature names to plot

Currently, the generated plot just shows Dimension 1, 2, ... etc. as the labels on the x-axis. This is not very informative. It would be nice if you could optionally supply a list of strings to the function, to add labels to the xticks of the plot.

This could look something like this:

def explain_outlier(self, ind, cutoffs=None, feature_names=None):  # pragma: no cover

    ...

    if feature_names is not None:
        plt.xticks(ticks=range(1, self.O.shape[1] + 1),labels=feature_names)
    else:
        plt.xticks(ticks=range(1, self.O.shape[1] + 1))

    ...
Assignee
Assign to
Time tracking