2017-10-04 09:59:37 +03:00
|
|
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
# Licensed under the MIT license.
|
|
|
|
|
|
|
|
# Have a look at README.md and README_PROTONN_OSS.md for details on how to setup the data directory to run this script.
|
|
|
|
|
2017-11-14 22:47:36 +03:00
|
|
|
|
2017-10-04 09:59:37 +03:00
|
|
|
|
|
|
|
test_file="-I usps10/test.txt"
|
2018-10-14 21:07:09 +03:00
|
|
|
model_file="-M usps10/ProtoNNResults/ProtoNNTrainer_pd_15_protPerClass_0_prot_200_spW_1.000000_spZ_1.000000_spB_1.000000_gammaNumer_1.000000_normal_3_seed_42_bs_1024_it_20_ep_20/model"
|
|
|
|
normalization_file="-n usps10/ProtoNNResults/ProtoNNTrainer_pd_15_protPerClass_0_prot_200_spW_1.000000_spZ_1.000000_spB_1.000000_gammaNumer_1.000000_normal_3_seed_42_bs_1024_it_20_ep_20/minMaxParams"
|
2017-10-04 09:59:37 +03:00
|
|
|
output_dir="-O usps10/ProtoNNResults"
|
|
|
|
input_format="-F 0"
|
|
|
|
ntest="-e 2007"
|
2017-11-15 13:46:34 +03:00
|
|
|
#batch_size="-b 1024"
|
2017-10-04 09:59:37 +03:00
|
|
|
|
|
|
|
|
|
|
|
########################################################
|
|
|
|
# execute ProtoNNPredict
|
|
|
|
########################################################
|
|
|
|
|
|
|
|
#gdb=" gdb --args"
|
|
|
|
executable="./ProtoNNPredict"
|
2017-11-13 19:25:13 +03:00
|
|
|
command=$gdb" "$executable" "$test_file" "$model_file" "$output_dir" "$normalization_file" "$input_format" "$ntest" "$batch_size" "
|
2017-10-04 09:59:37 +03:00
|
|
|
echo "Running ProtoNNPredict with following command: "
|
|
|
|
echo $command
|
|
|
|
echo ""
|
|
|
|
exec $command
|
|
|
|
|