junos
c1bb4ddf0f
Save calculated features to csv files.
2021-08-23 16:36:26 +02:00
junos
ee30c042ea
Fill NaNs introduced in merge for proximity.
2021-08-21 19:40:42 +02:00
junos
aed73bb7ed
Add fill values for communication for rows with no calls/smses.
2021-08-21 18:17:58 +02:00
junos
0b85ee8fdc
Merge branch 'master' into ml_pipeline
2021-08-21 17:37:45 +02:00
junos
e2e268148d
Fill in 0.5 for undefined ratio.
...
When there are no calls and no smses (of a particular type), the ratio is undefined. But since their number is the same, I argue that the ratio can represent that with a 0.5, similarly to the case where no_calls_all = no_sms_all != 0.
2021-08-21 17:33:31 +02:00
junos
00015a3b8d
Fill in zeroes when joining or unstacking.
...
If there are no calls or smses for a particular day, there is no corresponding row in the features dataframe. When joining these, however, NaNs were introduced. Since a value of 0 is meaningful for all of these features, replace NaNs with 0's.
2021-08-21 17:31:15 +02:00
junos
72b16af75c
Make group_by consistent with communication.
2021-08-20 17:52:31 +02:00
junos
d6337e82ac
Merge branch 'master' into ml_pipeline
2021-08-20 17:43:53 +02:00
junos
9a319ac6e5
Add an option to group on other than just participant_id.
2021-08-20 17:41:12 +02:00
junos
93f136b080
Add a method to get communication features.
2021-08-19 17:32:02 +02:00
junos
777e6f0a58
calls_sms_features() now returns all communication features.
2021-08-18 15:41:47 +02:00
junos
2d78aacd18
Compile a list of contact features and add a test.
2021-08-18 15:35:42 +02:00
junos
c88336481e
Add a test for SMS features.
2021-08-18 15:28:46 +02:00
junos
1bc996413e
Clarify names for no_all calls/sms feature.
...
Add another test.
2021-08-18 15:23:30 +02:00
junos
a2a44c202a
Calculate common features outside if...else.
2021-08-18 10:54:54 +02:00
junos
4740e94d37
Fix a bug introduced in e7fe4e8398
.
2021-08-18 10:51:48 +02:00
junos
b1ad8d1309
List calls features.
2021-08-17 16:27:34 +02:00
junos
bb75abcb9b
Add tests for proximity.
2021-08-17 16:07:52 +02:00
junos
e7fe4e8398
Simplify merge into join.
2021-08-17 13:53:19 +02:00
Junos Lukan
cf28aa547a
Merge branch 'communication' into 'master'
...
separated features
See merge request junoslukan/straw2analysis!2
2021-08-17 11:42:03 +00:00
junos
c8bb481508
Add a parameter for grouping.
2021-08-12 15:07:20 +02:00
junos
98f1df81c6
Use the same function for ESM and other data.
2021-08-11 17:26:44 +02:00
junos
ad85f79bc5
Move datetime calculation to a separate function.
2021-08-11 17:19:14 +02:00
junos
c6d0e4391e
Add a couple of proximity features.
2021-08-11 16:40:19 +02:00
junos
af65d0864f
Add a simple function for recoding proximity.
2021-08-11 15:04:27 +02:00
junos
a2180aee54
Fix assignment to use loc.
...
For assigning a value to selected rows (a subset), regular slicing using [] produces a KeyError.
2021-08-11 14:53:59 +02:00
Ivan Kobe
74b4f9ddbe
separated features
2021-08-10 12:59:47 +02:00
junos
02f2607be9
Fix formatting and typos.
2021-08-06 18:53:39 +02:00
junos
cca5a29483
Rename features and add one for missed calls.
2021-08-06 18:53:39 +02:00
Ivan Kobe
62af04fe09
Communication
2021-08-06 16:44:39 +00:00
junos
1bdb334c42
Fix formatting.
2021-07-27 20:57:21 +02:00
junos
b99136a181
Document individual functions for event extraction.
2021-07-27 20:56:27 +02:00
junos
9bd42afa02
Simplify pivoting a table and fix other mistakes.
2021-07-27 20:41:13 +02:00
junos
0f5af21f71
Detect whether event was work related.
2021-07-27 19:53:44 +02:00
junos
c4f7b6459d
Extract event duration.
2021-07-27 19:47:54 +02:00
junos
19cddaa634
Convert event time to datetime.
2021-07-27 18:43:31 +02:00
junos
763b970a42
Detect stressful events and rename their stressfulness.
2021-07-27 18:30:05 +02:00
junos
3c12a6e74a
Start extracting event features.
...
Calculate threat and challenge means.
2021-07-27 18:25:05 +02:00
junos
d3f42ea402
Start exploring proximity.
2021-07-26 11:37:31 +02:00
junos
67e2d233b0
Start exploring light data.
2021-07-23 16:42:16 +02:00
junos
7de4beca6e
Add a method for getting the light sensor data.
2021-07-23 16:19:56 +02:00
junos
7aeb40d674
Fix formatting.
2021-07-22 15:47:42 +02:00
junos
78d6e020ae
[WIP] Outline screen feature calculation in TODOs.
2021-07-22 15:19:15 +02:00
junos
8bf21ab272
Explore JCQ demand and control.
2021-07-05 18:32:35 +02:00
junos
e2808422db
Implement a method to recode JCQ answers.
2021-07-05 18:24:22 +02:00
junos
459f7a2c72
Add a file for JCQ and dictionary of reversed items.
2021-07-05 16:15:00 +02:00
junos
48d7be780c
Fix formatting.
2021-07-04 14:34:57 +02:00
junos
92a5787d62
Only convert some answers to numeric.
2021-07-04 14:34:13 +02:00
junos
b8301ca458
Small corrections.
2021-07-03 18:45:46 +02:00
junos
a6d8f70e7f
Add date part of datetime when preprocessing.
2021-07-03 16:39:32 +02:00