-
Notifications
You must be signed in to change notification settings - Fork 11
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
Cannot load abstractions after clustring #32
Comments
yeah, this means that you ran one run with shortdeck on and the other with shortdeck off. basically, it will look up what the abstraction cluster is for a hand like |
RMS error is a measure of loss |
I ran both with
Oh that makes sense :D |
hm interesting -- there is another possibility, which is that i changed the src code for the Abstraction data structure in between your two runs. did you update source code at any point between the two? a stack trace could maybe be helpful |
also what new bucket sizes are you using? maybe could be helpful to see the set of consts in lib.rs |
I don't think I did. But the first run also crashed after loading the metrics. I don't have the detailed error message though.
How can I do that?
I used a KMEANS_CLUSTER_COUNT of 32 for each flop, turn and equity and used 10 Training iterations for each. I am currently running it again with a lower configuration. Maybe I can reconstruct the error. |
ahhh very useful to know. yes indeed you've surfaced a known edge case that i've largely ignored since i didn't really expect anyone to play around with the parameters that much, but i ought to patch. give me a minute to get to my desk but i know what happened and how to fix |
okay so basically this is downstream of a (very suboptimal) way of serializing the Metric data structure to disk.
|
it's probably an LLM one-shot of a fix that i just havent gotten around to since i've had the pgcopy files locally for quite awhile and havent had to run the clustering algorithm from scratch in a few weeks.
|
does this make sense |
i should also mention, the much easier fix is simply to use a unique value for each of the N_CLUSTERS_* for each street! |
there's a way in which you can avoid having to re-cluster, if you make the proper fix and then modify the header bytes of existing pgcopy so that future |
Thanks for the fast response. I think I will try to use smaller bucket sizes and make them unique. |
i recommend also keeping the N_EQUITY_CLUSTERS parameter higher than 32, something like 101 is good since it will bucket every river hand into a percentile bucket. the calculations for the river layer are very very efficient, so it certainly won't be the bottleneck if you wanted to have higher resolution at that layer |
Hey I started training 5 days ago, but unfortunately my clustring crashed after loading the metric for the flop. When I tried to restart the clustering and loading in the saved abstractions, I get the error:
thread '<unnamed>' panicked at src/clustering/metric.rs:24:14: missing abstraction pair
I don't know why this is the case, but during clustering i got the message
abstraction cluster RMS error
a couple of times.I also used --features shortdeck and changed the bucket sizes, if that has any impact on the bug.
Here is the log for reference:
22:55:17 [INFO] initialize kmeans river
22:55:17 [INFO] clustering kmeans river
22:55:17 [INFO] calculating metric river
22:55:17 [INFO] saving metric river
22:55:17 [INFO] calculating lookup river
23:01:01 [INFO] saving lookup river
23:01:23 [INFO] calculating transitions river
23:01:23 [INFO] saving transition river
23:01:23 [INFO] loading lookup river
23:02:21 [INFO] loading metric river
23:02:22 [INFO] initialize kmeans turn
23:02:42 [INFO] clustering kmeans turn
23:03:04 [DEBUG] abstraction cluster RMS error 0.02535558
23:03:29 [DEBUG] abstraction cluster RMS error 0.021866854
23:03:55 [DEBUG] abstraction cluster RMS error 0.02136437
23:04:21 [DEBUG] abstraction cluster RMS error 0.021152442
23:04:47 [DEBUG] abstraction cluster RMS error 0.021053715
23:05:13 [DEBUG] abstraction cluster RMS error 0.020967714
23:05:39 [DEBUG] abstraction cluster RMS error 0.020908125
23:06:05 [DEBUG] abstraction cluster RMS error 0.020883476
23:06:31 [DEBUG] abstraction cluster RMS error 0.020864865
23:06:57 [DEBUG] abstraction cluster RMS error 0.020850323
23:06:57 [INFO] calculating metric turn
23:06:57 [INFO] saving metric turn
23:06:57 [INFO] calculating lookup turn
23:07:50 [INFO] saving lookup turn
23:07:54 [INFO] calculating transitions turn
23:07:54 [INFO] saving transition turn
23:07:55 [INFO] loading lookup turn
23:08:03 [INFO] loading metric turn
23:08:03 [INFO] initialize kmeans flop
02:07:24 [INFO] clustering kmeans flop
05:00:58 [DEBUG] abstraction cluster RMS error 0.050942555
17:48:52 [DEBUG] abstraction cluster RMS error 0.04658942
06:37:40 [DEBUG] abstraction cluster RMS error 0.045377757
19:28:41 [DEBUG] abstraction cluster RMS error 0.044904392
08:24:43 [DEBUG] abstraction cluster RMS error 0.044720482
21:24:06 [DEBUG] abstraction cluster RMS error 0.044641204
10:24:32 [DEBUG] abstraction cluster RMS error 0.044571135
23:30:46 [DEBUG] abstraction cluster RMS error 0.0445256
12:37:01 [DEBUG] abstraction cluster RMS error 0.044478342
01:44:48 [DEBUG] abstraction cluster RMS error 0.044429146
01:44:48 [INFO] calculating metric flop
01:58:09 [INFO] saving metric turn
01:58:09 [INFO] calculating lookup flop
15:05:08 [INFO] saving lookup flop
15:05:09 [INFO] calculating transitions flop
15:05:09 [INFO] saving transition flop
15:05:09 [INFO] loading lookup flop
15:05:09 [INFO] loading metric flop
The text was updated successfully, but these errors were encountered: