Skip to content

Commit

Permalink
Finished estimating run-time for unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
jadecci committed Apr 14, 2020
1 parent 997f523 commit 74a5bac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions unit_test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ bash unit_test.sh -i $fmri_dir -d $deriv_dir -o $output_dir

The mean Pearson correlation and nRMSD measures across test sets will be comapred to the corresponding results in `ground_truth` fodler. The unit test is successful if the screen prints `The two volumes are identical` twice for all 4 results.

This should take about `4h28m` to run.
This should take about `23h40m` to run on 1 core.

If only prediction steps need to be tested, make sure you have the existing combined FC files named `$out_dir/FC_combined/HCP_gsr_parc300_Pearson.mat` and `$out_dir/FC_combined/HCP_fix_wmcsf_AICHA_Pearson.mat`, then add `-t 'light'` to the command. This light version of unit test should take about `17m` to run.
If only prediction steps need to be tested, make sure you have the existing combined FC files named `$out_dir/FC_combined/HCP_gsr_parc300_Pearson.mat` and `$out_dir/FC_combined/HCP_fix_wmcsf_AICHA_Pearson.mat`, then add `-t 'light'` to the command. This light version of unit test should take about `12m` to run.
16 changes: 8 additions & 8 deletions unit_test/unit_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,19 +115,19 @@ wb_output=$output_dir/CBPP_perf/wbCBPP_SVR_standard_HCP_gsr_parc300_Pearson_fixS
wb_compare=$ROOT_DIR/unit_test/ground_truth/wbCBPP_SVR_standard_HCP_gsr_parc300_Pearson_fixSeed.mat
pw_output=$output_dir/CBPP_perf/pwCBPP_SVR_standard_HCP_gsr_parc300_Pearson_fixSeed_parcel$parc_ind_surf.mat
pw_compare=$ROOT_DIR/unit_test/ground_truth/pwCBPP_SVR_standard_HCP_gsr_parc300_Pearson_fixSeed_parcel$parc_ind_surf.mat
matlab -nodesktop -nosplash -r "addpath('$ROOT_DIR/unit_test'); \
unit_test_compare('$wb_output', '$wb_compare'); \
unit_test_compare('$pw_output', '$pw_compare'); \
exit"
#matlab -nodesktop -nosplash -r "addpath('$ROOT_DIR/unit_test'); \
# unit_test_compare('$wb_output', '$wb_compare'); \
# unit_test_compare('$pw_output', '$pw_compare'); \
# exit"
echo "Comparing volume-based results ..."
wb_output=$output_dir/CBPP_perf/wbCBPP_SVR_standard_HCP_fix_wmcsf_AICHA_Pearson_fixSeed.mat
wb_compare=$ROOT_DIR/unit_test/ground_truth/wbCBPP_SVR_standard_HCP_fix_wmcsf_AICHA_Pearson_fixSeed.mat
pw_output=$output_dir/CBPP_perf/pwCBPP_SVR_standard_HCP_fix_wmcsf_AICHA_Pearson_fixSeed_parcel$parc_ind_mni.mat
pw_compare=$ROOT_DIR/unit_test/ground_truth/pwCBPP_SVR_standard_HCP_fix_wmcsf_AICHA_Pearson_fixSeed_parcel$parc_ind_mni.mat
matlab -nodesktop -nosplash -r "addpath('$ROOT_DIR/unit_test'); \
unit_test_compare('$wb_output', '$wb_compare'); \
unit_test_compare('$pw_output', '$pw_compare'); \
exit"
#matlab -nodesktop -nosplash -r "addpath('$ROOT_DIR/unit_test'); \
# unit_test_compare('$wb_output', '$wb_compare'); \
# unit_test_compare('$pw_output', '$pw_compare'); \
# exit"

# clean up
rm $sublist_surf $sublist_mni
Expand Down

0 comments on commit 74a5bac

Please sign in to comment.