GithubHelp home page GithubHelp logo

pygendata's Introduction

pygendata

Synthetic data set generation tools for machine learning experiments.

File overview

  • generate.py: the main data generation script
  • output/: empty directory for generated data sets

Usage

All configuration options are currently defined and documented within generate.py (although it is intended that this will change to external configuration files in future versions). Once these are set:

$ python3 generate.py

There is also a Makefile with targets data to run generate.py as above, and clean to remove generated data sets from output/. The latter should probably be used with care.

Output

Under output/, each generated data set has its own directory, with a naming convention based on its configuration. So for a data set named 2_10_1000_r_0.5_004, in order:

  • number of clusters
  • number of features
  • number of samples
  • cardinality (uniform or random)
  • within-cluster standard deviation
  • index ie. a counter, as we can generate multiple data sets for each configuration

For manageability, generated data sets are grouped into subdirectories based on number of clusters, ie. the current value from iterating OPTS_K.

Each dataset folder contains:

  • data.csv: the data set itself
  • labels.csv: the class labels of the data points

Contents of output/ are protected by a .gitignore file as it is not anticipated that users will commit them to this project on purpose.

Requirements

  • Python 3
  • scikit-learn >= 0.20
  • numpy

Future work

  • the ability to run from separate config files, eg. Yaml
  • allow more flexible normalisation, eg. pluggable normalisation strategies

Useful links

pygendata's People

Contributors

simonharris avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.