-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: started working on force-directed graph for visualizing category-transitions #365
Conversation
5899b99
to
5ef9e91
Compare
Codecov Report
@@ Coverage Diff @@
## master #365 +/- ##
==========================================
- Coverage 26.00% 25.71% -0.29%
==========================================
Files 26 26
Lines 1419 1431 +12
Branches 219 219
==========================================
- Hits 369 368 -1
- Misses 998 1011 +13
Partials 52 52
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Apply suggestions from code review
13586e1
to
6f9f20f
Compare
Thanks, Erik, for pinging me! It might be helpful to get a little bit more context on the feature aims and what you're trying to achieve/visualize, to be able to answer your question better. Am I assuming correctly that you create categories based on the app/website usage that ActivityWatch detects? Generally, I think it might be really challenging to come up with good, universal rules/heuristics that define which category switches (or combinations) account for a context switch. It's also highly dependent on the definition of 'context switch'; I'd probably define it to something that is similar to a task (i.e., task switch)... In some preliminary work, we've tried to train models to identify task switches and types based on users' self-reports; but these are highly individual. What we're doing in PersonalAnalytics is to treat 'afk' as it's own 'IDLE' category. This is set if there is no user input for 2 (or 3) minutes, I think. The thing is, however, that the user might be taking some notes (but is still within the same context/task) or doing a biobreak (which would probably be a context/task switch). |
I'm not quite sure yet, this is quite experimental. I wanted to try and visualize how I context switch between categories in some neat way. Asked you because I figured you had a good view of the prior art and could point me in the right direction (since I noticed I was quite lost). Didn't want to reinvent the wheel.
Yes, the categorization happens using regular expressions, and form a hierarchy.
We use 3min :)
Yeah, I've figured that some context switches are larger/harder than others. Perhaps one could let the user set a threshold for how "large" switches have to be to count, somehow (maybe depending on gap size, low-likelihood transition, ...). Will read that paper, thanks! |
A few things that came to mind:
|
Generates a graph where:
Uses category colors.
TODO
Screenshot (WIP)