-
Notifications
You must be signed in to change notification settings - Fork 83
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
Missing parameter causing errors in NT3 (P1B4) #99
Comments
OK, you need to add the lines: All the keywords are parsed from the config file, so if they are not there they will not appear in gParameters and will cause an error. Adding those 2 lines is sufficient. Alternatively, just run the benchmark with 'python nt3_baseline_keras2.py' and it will use the nt3_default_model.txt which contains the required keywords. |
Actually I tried without any changes to the repo on a different system and I did not run into any of those issues. I'll close this for now but I'll reply if I find the reason why it did that on the first system. Thanks for your help @jmohdyusof |
I can't see how it would run correctly without those keywords, unless you are using the default model file. We will push changes to master to fix the perf_bench_model |
You are right, I ran the default model file this time. Sorry for the confusion |
OK, the original answer still stands. The perf_bench_model file was not updated to include the keywords needed by the noise methods, so we will push an update to master to fix that. |
While running Pilot 1 NT3 using the command
python nt3_baseline_keras2.py --conf nt3_perf_bench_model.txt
I ran into this error caused by a missing parameterTraceback (most recent call last): File "nt3_baseline_keras2.py", line 290, in <module> main() File "nt3_baseline_keras2.py", line 286, in main run(gParameters) File "nt3_baseline_keras2.py", line 101, in run X_train, Y_train, X_test, Y_test = load_data(train_file, test_file, gParameters) File "nt3_baseline_keras2.py", line 70, in load_data if gParameters['add_noise']: KeyError: 'add_noise'
Issue is caused by these lines
Benchmarks/Pilot1/NT3/nt3_baseline_keras2.py
Lines 68 to 82 in a48c85a
It seems like the candle parser being used never includes the parameters being checked here
Benchmarks/Pilot1/NT3/nt3_baseline_keras2.py
Lines 30 to 31 in a48c85a
So is there a different way to run this (maybe different flags) to avoid this issue. Obviously commented out lines 68-82 in nt3_baseline_keras2.py works but was not sure if parameters such as 'add_noise' will ever make it through to NT3. If not then maybe commenting out these lines permanently will save others some trouble?
The text was updated successfully, but these errors were encountered: