Giter Club home page Giter Club logo

dataset-split's People

Contributors

muriloxyz avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

chilaact

dataset-split's Issues

Split.py needs refactoring

The code flow should be changed. Because of '--copy' implementation it is NEEDED to rethink the code (ugly and not optimized)

--copy option isn't working

The "copy" argument, taken by the app, isn't working at all. Even when it's present, the program doesn't copy any of the files, it just moves them and leave the original dataset empty.

Code error handling

Decide AND code what do when program chases while executing.

Cases to think about:

  • If the app crashes while executing: should it leave everything as it is OR leave it how it was when app started?
  • Cases where the app should throw an error.

Implement --noshuffle

The '--noshuffle' option doesn't let the app shuffle the items. The split will be made to (train, test, validation) in the same order 'ls' listed the items.

Add "reshuffle" funcionality

The reshuffle option will allow the user to reshuffle the already splitted dataset.
I realized this would be quite useful during a model evaluation process

Change file structure

  • Research and find the best file structure for python structures.
  • Modify the app to match it.

To Do List // What to learn

Well, I need to understand some crucial stuff before building this app.

Tasks :

  • Collect initial path (ipath)
  • Find the best way to collect desired ratio for splitting the data
  • List all classes (subdirs) in ipath
  • Create (train - validation - test) folders
  • Create all classes inside train-val-test directories
  • Iterate over each original class and:
    • Calculate how many items there's inside
    • Calculate the splits
    • RANDOMLY move the desired amount of items to test-val-test correct subdirs
  • Delete original class directories (empty)

  • Think of improvements
    • List them here

  • Setup CI
  • Publish on PyPi

  • Finished

What I need/must understand in order to build this app:

  • How to manipulate paths the right way
  • How to list in a given path
  • Create directories
  • Move files
  • Delete files
  • Calculate splits for all amounts of data
  • Decent randomness

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.