Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script for basic testing #18

Open
Ricocotam opened this issue Mar 24, 2020 · 1 comment
Open

Add script for basic testing #18

Ricocotam opened this issue Mar 24, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@Ricocotam
Copy link
Collaborator

Feature

Add a script for some basic testing such as finding batch size, testing just the dataset or just the network.

Motivation

When we are developing a new model we want to test parts of our pipeline before pursuing coding. Having a tool to just test some parts (e.g. : dataset, network creation/forward) and some setting tests before starting training (e.g. : batch size) would ease the use of the framework.

Example of use

I imagine something like :

  • python -m bootstrap.test --batch_size 50 80 100 --options /path/to/options
  • python -m bootstrap.test --network forward --options /path/to/options
  • python -m bootstrap.test --dataset --options /path/to/options

To test networks we would need datasets to generate empty items (so we don't need to load an entire dataset) so we can feed the network with batches really fast.

@Cadene Cadene added the enhancement New feature or request label Mar 24, 2020
@Cadene
Copy link
Owner

Cadene commented Mar 28, 2020

@Ricocotam
After discussing with @MicaelCarvalho, we think that it is a great idea.
For instance, it would be useful to test that our model is able to overfit a small part of the dataset, or to check the gradient.
However, it's not a priority for now to us.
Feel free to suggest any crazy ideas or implementations which is not something that pytest already does.

Best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants