From e33a28f702bd0568598cc7b3b54fe59f41789d81 Mon Sep 17 00:00:00 2001 From: shi Date: Mon, 25 Mar 2024 00:49:41 +0100 Subject: [PATCH] update README --- keyboard_and_mouse/README.MD | 69 ------------------------------------ keyboard_and_mouse/README.md | 63 ++++++++++++++++++++++++++++++++ watch_and_help/README.md | 2 +- 3 files changed, 64 insertions(+), 70 deletions(-) delete mode 100644 keyboard_and_mouse/README.MD create mode 100644 keyboard_and_mouse/README.md diff --git a/keyboard_and_mouse/README.MD b/keyboard_and_mouse/README.MD deleted file mode 100644 index 1dfe191..0000000 --- a/keyboard_and_mouse/README.MD +++ /dev/null @@ -1,69 +0,0 @@ -# Keyboard And Mouse Interactive Dataset - - -# Neural Network - -## Requirements -The code is test in Ubuntu 20.04. - -pytorch 1.11.0 -matplotlib 3.3.2 -pickle 4.0 -pandas 1.4.3 - -## Train - -Set training parameters in train.sh - -Run `sh train.sh` to train the model - - -## Test - -Run `sh test.sh` to run test on trained model - -Predictions are saved under `prediction/task$i$/` - - -# Bayesian Inference - -## Requirements -R 4.2.1 -RStan [](https://mc-stan.org/users/interfaces/rstan.html) - - -Run `sh sampler_user.sh` to split prediction to 10% to 90% - -Run `Rscript stan/strategy_inference_test.R` to get results of intention prediction for all users -Run `sh stan/plot_user.sh` to plot the bar chart for user intention prediction results of all action sequences - -Run `Rscript stan/strategy_inference_test_full_length.R` to get results of intention prediction (0% to 100%) for all users -Run `sh stan/plot_user_length_10_steps.sh` to plot the bar chart for user intention prediction results (0% to 100%) of all action sequences - -Run `sh sampler_single_act.sh` to get the predictions for each individual action sequence. -Run `Rscript stan/strategy_inference_test_all_individual_act.R` to get all action sequences (0% to 100%) of all users for intention prediction -Run `sh plot_user_all_individual.sh` to plot the bar chart for user intention prediction results of all action sequences -Run `sh plot_user_length_10_steps_all_individual.sh` to plot the user intention prediction results (0% to 100%) of all action sequences - - - - -Set training and test parameters in train.sh and test.sh - -Run sh train.sh to train the model. - -Run sh test.sh to run test on trained model. -Predictions are saved under prediction/task$i$/ - -Run sh sampler_user.sh to split prediction to 10% to 90% - -Run stan/strategy_inference_test.R to get results of intention prediction for all users -Run stan/plot_user.py to plot the bar chart for user intention prediction results of all action sequences - -Run stan/strategy_inference_test_full_length.R to get results of intention prediction (0% to 100%) for all users -Run stan/plot_user_length_10_users.py to plot the bar chart for user intention prediction results (0% to 100%) of all action sequences - - -Run stan/strategy_inference_test_all_individual_act.R to get all action sequences (0% to 100%) of all users for intention prediction -Run stan/plot_user_all_individual.py to plot the bar chart for user intention prediction results of all action sequences -Run stan/plot_user_length_10_steps_all_individual.py to plot the user intention prediction results (0% to 100%) of all action sequences diff --git a/keyboard_and_mouse/README.md b/keyboard_and_mouse/README.md new file mode 100644 index 0000000..89f6a4b --- /dev/null +++ b/keyboard_and_mouse/README.md @@ -0,0 +1,63 @@ +# Keyboard And Mouse Interactive Dataset + +# Neural Network + +## Train + +Set training parameters in train.sh + +Run `sh train.sh` to train the model + + +## Test + +Run `sh test.sh` to run test on trained model + +Predictions are saved under `prediction/task$i$/` + + +# Split Prediction + +Run `sh sampler_user.sh` to split prediction to 10% to 90% + +Run `sh sampler_single_act.sh` to split prediction individual action sequences. + + +# Bayesian Inference + + +Run inference to get results of intention prediction for all users and plot results +``` +cd stan +Rscript strategy_inference_test.R +sh plot_user.sh +``` + +Run inference to get results of intention prediction (0% to 100%) for all users and plot results + +``` +Rscript strategy_inference_test_full_length.R +sh plot_user_length_10_steps.sh +``` + +Run inference to get all action sequences (0% to 100%) of all users for intention prediction + +``` +Rscript strategy_inference_test_all_individual_act.R +``` + +Plot results of user intention prediction of all action sequences + +``` +sh plot_user_all_individual.sh +``` + +Plot the user intention prediction results (0% to 100%) of all action sequences + +``` +sh plot_user_length_10_steps_all_individual.sh + + + + + diff --git a/watch_and_help/README.md b/watch_and_help/README.md index 06dac9e..ca00f1d 100644 --- a/watch_and_help/README.md +++ b/watch_and_help/README.md @@ -2,7 +2,7 @@ Codes to reproduce results on WAH dataset[^1] -[^1]: Modified based on WAH train and test codes (https://github.com/xavierpuigf/watch_and_help)[https://github.com/xavierpuigf/watch_and_help]. +[^1]: Modified based on WAH train and test codes, (see WAH)[https://github.com/xavierpuigf/watch_and_help] ## Data