problem with parameter-passing
Opened this issue · 3 comments
YOONAHLEE commented
Hi,
I installed your code to pass arguments while running ipynb file
but I got "UnrecognizedFlagError : Unkown command line flag 'f'"
and ran with command
"jupyter-runner --parameter-file=parameter_file main.ipynb"
but I got unrecognizedFlagError.
Do I have to make parameter file in certain way?
or is there other ways to solve this problem?
it runs fine with main.py ( same program with main.ipynb; just file format is different) when I run with "python main.py --parameters~"
omar-masmoudi commented
Hello,
You need to have all parameters on the same line, separated by a space.
An example of parameter file is on the Readme page.
If you want to run a notebook multiple times with different set of
parameters then you should put on different lines
Le jeu. 5 sept. 2019 à 06:22, Yoonah Lee <notifications@github.com> a
écrit :
… Hi,
I installed your code to pass arguments while running ipynb file
but I got "UnrecognizedFlagError : Unkown command line flag 'f'"
I made parameter_file
[image: image]
<https://user-images.githubusercontent.com/35857011/64309702-64a60c00-cfd8-11e9-8de7-5a4ecf46e78a.png>
and ran with command
"jupyter-runner --parameter=parameter_file main.ipynb"
but I got unrecognizedFlagError.
Do I have to make parameter file in certain way?
or is there other ways to solve this problem?
Thank you
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4?email_source=notifications&email_token=ABPCAVKH4E32CEN65D4SYODQICCSDA5CNFSM4ITZFNR2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HJNPNJA>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABPCAVIGHSJF5XJY6NHZICTQICCSDANCNFSM4ITZFNRQ>
.
YOONAHLEE commented
thank you for your answer!
I changed parameter file with your way
it prints right after command
\main.ipynb with parameters: {'datasource': 'miniimagenet', 'metatrain_iterations': '60000', 'meta_batch_size': '4', 'update_batch_size': '1', 'update_lr': '0', 'num_updates': '5', 'num_classes': '5', 'logdir': 'logs', 'num_filters': '32', 'max_pool': 'True'}
But I still get UnrecognizedFlagError.
<-[1;31mUnrecognizedFlagError<-[0m: Unknown command line flag 'f'
UnrecognizedFlagError: Unknown command line flag 'f'
omar-masmoudi commented
Can you show your full command line ?