23b0e109bf
fix bug in script due to schema change of pids variable earlier
Andrej Karpathy2021-12-19 11:50:50 -08:00
759f7e73e6
fix bug in pagination, clean up the approach a bit more
Andrej Karpathy2021-12-18 23:25:45 -08:00
c3cb157c9f
first version of pagination w00t w00t! it's a bit hacky i think, should be possible to improve this code and make it smaller and cleaner and etc.
Andrej Karpathy2021-12-18 21:14:44 -08:00
4210a73d15
remove recommendation by default on / endpoint. this was causing some unintended confusion, e.g. the search function was using time_filter 7 and giving bad results from the main page. also getting recommendations takes time and is slowish, so only do it on actual demand
Andrej Karpathy2021-12-18 20:21:04 -08:00
6e85778b24
change the way we recommend papers. we'll do it per tag instead of just mixing everything together. i believe this should produce higher quality results
Andrej Karpathy2021-12-18 14:53:57 -08:00
cd2a88f375
when a user is logged in and hits the default endpoint '/' show recommendations over the last week instead of just totally random recent papers, by default
Andrej Karpathy2021-12-10 09:15:29 -08:00
33b2b018ab
kind of big changes here: we can now inspect & see the most positive and negative words for a trained svm, to help tune the value C. then there is also the UI for setting value C in the SVM. Finally the value of C I adjusted to default to 0.01 (was 0.1 before) because the results and the weights look more sensible based on manual inspection. We need some dataset of people libraries in order to potentially cross-validate a good value C automatically. For now there are not enough active users of the site that such a thing could be attempted and succeed. Doing my best now just by eyeballing
Andrej Karpathy2021-12-08 00:17:37 -08:00
6be574a0fe
hah don't crash if a user submits an invalid query, better to return empty results. in the future we may want a helpful error message too
Andrej Karpathy2021-12-07 22:56:09 -08:00
4ec9a75293
add a secret GET argument svm_c that changes the C value in the SVM. no UI for this yet :)
Andrej Karpathy2021-12-07 22:52:13 -08:00
28163bfcb7
adding the user account into the email, ty @Randl for the suggestion. I think this should be ok to include in plain text here because it is an email direct to the user
Andrej Karpathy2021-12-07 22:27:14 -08:00
9c88a4eea4
use the process exit code to communicate whether any updates successfully made it into the database at all
Andrej Karpathy2021-11-26 20:19:48 -08:00
d2582c5b77
if the very first API call fails it is very unlikely that there are new papers at all, no need to try multiple pages
Andrej Karpathy2021-11-26 20:10:32 -08:00
aa877c9397
when writing features do it safely and atomically
Andrej Karpathy2021-11-26 20:00:37 -08:00
c3161b2a49
do not reveal username since they are kind of secret now
Andrej Karpathy2021-11-26 17:11:19 -08:00
c5b5c7833c
and i think that's it, we now support user accounts (lite)git commit -m 'and i think that\'s it, we now support user accounts litegit status sweet.'! sweet.
Andrej Karpathy2021-11-26 16:38:36 -08:00
54157c6e9c
ok here we go, the beginning of user profiles. for now we assume there is a single hard-coded user root
Andrej Karpathy2021-11-26 11:07:16 -08:00
3e2d1248d8
speed up time filtering by 20X by loading all of metas into memory once instead of querying it item by item in a massive loop
Andrej Karpathy2021-11-26 10:22:52 -08:00
3d5bbb9851
optimization: read only metas if that's all that we need to complete the request. that said, i expected this to run much faster and it doesn't. i think the way i'm using sqlites here is not exactly efficient or appropriate and i have to re-think the database schema. e.g. getting random papers over the last 7 days should be almost instantaneous, but currently this request takes like 3 seconds. have to better understand why this is happening
Andrej Karpathy2021-11-26 09:51:48 -08:00
1ed6e3f1b0
ok now we can sequester all the database files into data/ folder so everything is nice and clean yay
Andrej Karpathy2021-11-25 13:47:45 -08:00
77279e1777
sequester all file sytem IO ops only to db.py, so it's not total chaos
Andrej Karpathy2021-11-25 13:28:04 -08:00
bd11865a49
add an option to break out early when we've pulled in all new papers most likely
Andrej Karpathy2021-11-24 09:15:36 -08:00
cf1bef6f53
big new feature: ability to inspect any paper to see the raw tfidf tokens and their weights that summarize the paper, and which powers the SVM recommendation engine. basically a bit of a debugging / insight feature, but a really good sanity check that papers are being properly represented
Andrej Karpathy2021-11-21 20:51:01 -08:00
e5798ddb2f
make the header link to root of the site as the case should always be ok cool
Andrej Karpathy2021-11-21 14:03:17 -08:00
548ee210df
better default parameters, based on qualitative inspection of tfidf features and word vectors
Andrej Karpathy2021-11-21 13:46:14 -08:00
8be24dae43
allow for full sorting, slice and dicing with all options in the UI, and the previous shortcuts. now have a lot more flexibility to slice and dice as desired
Andrej Karpathy2021-11-16 21:39:43 -08:00
abb83effed
add ability to remove a tag from a paper as well
Andrej Karpathy2021-11-14 21:49:34 -08:00