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
  • #141
Closed
Open
Issue created Nov 12, 2019 by Administrator@rootContributor

generate_data: no variance in the outlier variance for some values of the random_seed

Created by: vnherdeiro

I was getting weird error values for some runs out of generated data through utils.data.generate_data. Plotting the data showed that sometimes all the outliers are distributed on the origin. See https://imgur.com/eZdfald

You can reproduce this with many values of the seed, for instance:

seed = 41
X, y = generate_data(n_features=2, contamination=5e-2, train_only=True, random_state=seed)
plt.scatter(*X.T, c=y);
print( X[y==1].var()) #==0.0

This collapse is really unwanted. The variance becomes zero and some methods suffer from numerical instability.

Assignee
Assign to
Time tracking