Skip to content

Commit

Permalink
Plots for info on PP
Browse files Browse the repository at this point in the history
  • Loading branch information
bazilinskyy committed Dec 29, 2024
1 parent fe63b12 commit a0503db
Show file tree
Hide file tree
Showing 62 changed files with 4,184 additions and 40 deletions.
Binary file added figures/corr_matrix.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4,078 changes: 4,078 additions & 0 deletions figures/hist_driving_freq.eps

Large diffs are not rendered by default.

Binary file added figures/hist_driving_freq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion figures/kp_ego_car-0-1.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion figures/kp_group-0-1-2-3.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion figures/kp_target_car-0-1.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion figures/kp_videos.html

Large diffs are not rendered by default.

Binary file modified figures/kp_videos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion figures/kp_videos_sliders_0,21,42,63.html

Large diffs are not rendered by default.

Binary file modified figures/kp_videos_sliders_0,21,42,63.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion figures/kp_videos_sliders_1,22,43,64.html

Large diffs are not rendered by default.

Binary file modified figures/kp_videos_sliders_1,22,43,64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion figures/kp_videos_sliders_10,31,52,73.html

Large diffs are not rendered by default.

Binary file modified figures/kp_videos_sliders_10,31,52,73.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion figures/kp_videos_sliders_11,32,53,74.html

Large diffs are not rendered by default.

Binary file modified figures/kp_videos_sliders_11,32,53,74.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion figures/kp_videos_sliders_12,33,54,75.html

Large diffs are not rendered by default.

Binary file modified figures/kp_videos_sliders_12,33,54,75.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion figures/kp_videos_sliders_13,34,55,76.html

Large diffs are not rendered by default.

Binary file modified figures/kp_videos_sliders_13,34,55,76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion figures/kp_videos_sliders_14,35,56,77.html

Large diffs are not rendered by default.

Binary file modified figures/kp_videos_sliders_14,35,56,77.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion figures/kp_videos_sliders_15,36,57,78.html

Large diffs are not rendered by default.

Binary file modified figures/kp_videos_sliders_15,36,57,78.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion figures/kp_videos_sliders_16,37,58,79.html

Large diffs are not rendered by default.

Binary file modified figures/kp_videos_sliders_16,37,58,79.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion figures/kp_videos_sliders_17,38,59,80.html

Large diffs are not rendered by default.

Binary file modified figures/kp_videos_sliders_17,38,59,80.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion figures/kp_videos_sliders_18,39,60,81.html

Large diffs are not rendered by default.

Binary file modified figures/kp_videos_sliders_18,39,60,81.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion figures/kp_videos_sliders_19,40,61,82.html

Large diffs are not rendered by default.

Binary file modified figures/kp_videos_sliders_19,40,61,82.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion figures/kp_videos_sliders_2,23,44,65.html

Large diffs are not rendered by default.

Binary file modified figures/kp_videos_sliders_2,23,44,65.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion figures/kp_videos_sliders_20,41,62,83.html

Large diffs are not rendered by default.

Binary file modified figures/kp_videos_sliders_20,41,62,83.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion figures/kp_videos_sliders_3,24,45,66.html

Large diffs are not rendered by default.

Binary file modified figures/kp_videos_sliders_3,24,45,66.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion figures/kp_videos_sliders_4,25,46,67.html

Large diffs are not rendered by default.

Binary file modified figures/kp_videos_sliders_4,25,46,67.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion figures/kp_videos_sliders_5,26,47,68.html

Large diffs are not rendered by default.

Binary file modified figures/kp_videos_sliders_5,26,47,68.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion figures/kp_videos_sliders_6,27,48,69.html

Large diffs are not rendered by default.

Binary file modified figures/kp_videos_sliders_6,27,48,69.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion figures/kp_videos_sliders_7,28,49,70.html

Large diffs are not rendered by default.

Binary file modified figures/kp_videos_sliders_7,28,49,70.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion figures/kp_videos_sliders_8,29,50,71.html

Large diffs are not rendered by default.

Binary file modified figures/kp_videos_sliders_8,29,50,71.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion figures/kp_videos_sliders_9,30,51,72.html

Large diffs are not rendered by default.

Binary file modified figures/kp_videos_sliders_9,30,51,72.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion figures/map_age.html

Large diffs are not rendered by default.

Binary file modified figures/map_age.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion figures/map_counts.html

Large diffs are not rendered by default.

Binary file modified figures/map_counts.png
2 changes: 1 addition & 1 deletion figures/map_gender.html

Large diffs are not rendered by default.

Binary file modified figures/map_gender.png
2 changes: 1 addition & 1 deletion figures/map_year_ad.html

Large diffs are not rendered by default.

Binary file modified figures/map_year_ad.png
2 changes: 1 addition & 1 deletion figures/map_year_license.html

Large diffs are not rendered by default.

Binary file modified figures/map_year_license.png
4 changes: 0 additions & 4 deletions trust/analysis/appen.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,8 @@ class Appen:
'what_is_your_age': 'age',
'what_is_your_gender': 'gender',
'what_is_the_highest_level_of_education_you_have_completed': 'education', # noqa: E501
'what_is_your_primary_mode_of_transportation': 'mode_transportation', # noqa: E501
'which_input_device_are_you_using_now': 'device',
'if_you_answered_other_in_the_previous_question_please_describe_your_input_device_below': 'device_other', # noqa: E501
'as_a_driver_what_does_it_mean_to_you_when_a_pedestrian_makes_eye_contact_with_you': 'ec_driver', # noqa: E501
'as_a_pedestrian_what_does_it_mean_to_you_when_a_driver_makes_eye_contact_with_you': 'ec_pedestrian', # noqa: E501
'how_do_you_feel_about_the_following_communication_between_driver_and_pedestrian_is_important_for_road_safety': 'communication_importance', # noqa: E501
'i_would_like_to_communicate_with_other_road_users_while_driving_for_instance_using_eye_contact_gestures_verbal_communication_etc': 'communcation_others', # noqa: E501
'i_am_worried_about_where_all_this_technology_is_leading': 'technology_worried', # noqa: E501
'i_enjoy_making_use_of_the_latest_technological_products_and_services_when_i_have_the_opportunity': 'technology_enjoyment', # noqa: E501
Expand Down
82 changes: 76 additions & 6 deletions trust/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
CLEAN_DATA = False # clean Appen data
REJECT_CHEATERS = False # reject cheaters on Appen
CALC_COORDS = False # extract points from heroku data
UPDATE_MAPPING = True # update mapping with keypress data
UPDATE_MAPPING = False # update mapping with keypress data
SHOW_OUTPUT = True # should figures be plotted
SHOW_OUTPUT_KP = True # should figures with keypress data be plotted
SHOW_OUTPUT_ST = True # should figures with stimulus data be plotted
SHOW_OUTPUT_KP = False # should figures with keypress data be plotted
SHOW_OUTPUT_ST = False # should figures with stimulus data be plotted
SHOW_OUTPUT_PP = True # should figures with info about participants be plotted
SHOW_OUTPUT_ET = False # should figures for eye tracking be plotted

Expand Down Expand Up @@ -352,16 +352,86 @@
color='country',
pretty_text=True,
save_file=True)
# driving with AVs
# histogram of driving frequency
analysis.hist(appen_data,
x=['driving_freq'],
pretty_text=True,
save_file=True)
# grouped barchart of DBQ data
analysis.hist(appen_data,
x=['dbq1_anger',
'dbq2_speed_motorway',
'dbq3_speed_residential',
'dbq4_headway',
'dbq5_traffic_lights',
'dbq6_horn',
'dbq7_mobile'],
marginal='violin',
pretty_text=True,
save_file=True)
# histogram of the year of license
analysis.hist(appen_data,
x=['year_license'],
pretty_text=True,
save_file=True)
# histogram of the highest level of education
analysis.hist(appen_data,
x=['education'],
pretty_text=True,
save_file=True)
# histogram of communication with other
analysis.hist(appen_data,
x=['communcation_others'],
marginal='violin',
pretty_text=True,
save_file=True)
# grouped barchart of technology questions
analysis.hist(appen_data,
x=['technology_worried',
'technology_enjoyment',
'technology_lives_easier',
'technology_lives_change',
'technology_not_interested'],
marginal='violin',
pretty_text=True,
save_file=True)
# scatter plot of machines questions
analysis.scatter(appen_data,
x='machines_roles',
y='machines_profit',
color='year_license',
pretty_text=True,
save_file=True)
# histogram of attitude towards AD
analysis.hist(appen_data,
x=['attitude_ad'],
pretty_text=True,
save_file=True)
# scatter plot of driving with AVs
analysis.scatter(appen_data,
x='driving_in_ad',
y='driving_alongside_ad',
color='year_license',
pretty_text=True,
save_file=True)
# histogram for driving frequency
# histogram of the capability of AD
analysis.hist(appen_data,
x=['driving_freq'],
x=['capability_ad'],
pretty_text=True,
save_file=True)
# histogram of the experience of AD
analysis.hist(appen_data,
x=['experience_ad'],
pretty_text=True,
save_file=True)
# histogram of the input device
analysis.hist(appen_data,
x=['device'],
pretty_text=True,
save_file=True)
# histogram of milage
analysis.hist(appen_data,
x=['milage'],
pretty_text=True,
save_file=True)
# map of participants
Expand Down

0 comments on commit a0503db

Please sign in to comment.