InferringIntention/keyboard_and_mouse
2024-03-25 00:49:41 +01:00
..
checkpoints/lstmlast_bs_8_lr_0.0001_hidden_size_128 first commit 2024-03-24 23:42:27 +01:00
dataset first commit 2024-03-24 23:42:27 +01:00
stan first commit 2024-03-24 23:42:27 +01:00
networks.py first commit 2024-03-24 23:42:27 +01:00
process_data.py first commit 2024-03-24 23:42:27 +01:00
README.md update README 2024-03-25 00:49:41 +01:00
sampler_single_act.py first commit 2024-03-24 23:42:27 +01:00
sampler_single_act.sh first commit 2024-03-24 23:42:27 +01:00
sampler_user.py first commit 2024-03-24 23:42:27 +01:00
sampler_user.sh first commit 2024-03-24 23:42:27 +01:00
temp.py first commit 2024-03-24 23:42:27 +01:00
test.py first commit 2024-03-24 23:42:27 +01:00
test.sh first commit 2024-03-24 23:42:27 +01:00
train.py first commit 2024-03-24 23:42:27 +01:00
train.sh first commit 2024-03-24 23:42:27 +01:00

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