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

Write notebooks that can be used for training #181

Open
marco-c opened this issue May 11, 2018 · 7 comments
Open

Write notebooks that can be used for training #181

marco-c opened this issue May 11, 2018 · 7 comments
Labels

Comments

@marco-c
Copy link
Owner

marco-c commented May 11, 2018

Either rewrite train.py and pretrain.py as notebooks, or create notebooks that import those scripts and run them.

@Shashi456
Copy link
Contributor

Why a notebook ? Because it's convenient to run ?

@marco-c
Copy link
Owner Author

marco-c commented May 11, 2018

Yes, many services offer running notebooks.

@poush
Copy link
Contributor

poush commented May 18, 2018

I like the idea of writing a notebook which imports these scripts and make them to run easily on notebook servers because I think it is convenient to write a script and able to test it directly through terminal.

@Shashi456
Copy link
Contributor

@marco-c a few questions before writing the notebooks, so when you say rewrite them would that mean simply converting them into cells or do you want places where the code is explained as well ?
Do you expect something similar to this?

@marco-c
Copy link
Owner Author

marco-c commented May 23, 2018

@marco-c a few questions before writing the notebooks, so when you say rewrite them would that mean simply converting them into cells or do you want places where the code is explained as well ?

Simply converting them into cells, that example looks good in terms of structure.

@poush
Copy link
Contributor

poush commented Aug 30, 2018

I have one suggestion since our primary purpose is to have a notebook file for train.py and pretrain.py. We can generate them through Travis process as part of a push to separate branch.

For eg, Commit -> Pushed to Master -> Travis Completes -> Post Travis Process Starts -> Create & Commit iPynb file and push it to separate branch say 'notebook' like 'gh-pages' concept
This way we will not be required to manage diffs on notebook file and it will be updated automatically.

For the generation process, we can use of certain type of comments to separate code into cells of the notebook. The header would be same which will load files from git after that files will be copied from train.py. We can have indicators to ignore the set of lines if required.

@marco-c
Copy link
Owner Author

marco-c commented Sep 6, 2018

Interesting idea! We just need to make Travis be able to push to the repo, maybe we can create a fake GitHub account and use a secret env variable on Travis to store its password.

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

No branches or pull requests

3 participants