-
Notifications
You must be signed in to change notification settings - Fork 18
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
ZotBin #34
base: master
Are you sure you want to change the base?
ZotBin #34
Conversation
More details on the first optimization step to group similar bins in multidimensional feature space, which is independent of any choice of metric:
The second optimization step is simply a direct maximization of the chosen metric with respect to a weight matrix of shape (nbin, ngrp) with ngrp ~ 200. The metric is calculated using a fast reweighting scheme implemented in jax and optimized using jax gradients. |
@dkirkby - thanks so much for your entries! I'm currently putting together the environment to run all these, and I this error:
I installed the head of the master branch of zotbin - is there a different version I should install? |
@joezuntz Sorry I missed this earlier. I just pushed a commit to fix this, which simply removes
|
Thanks! |
When trying to run this method on our cluster GPU (12 GB TITAN V) I consistently get this error:
Any ideas welcome. |
I ran tests successfully on an 11Gb RTX 2080 GPU but perhaps you are running with more input features than I tested. I did all my testing with riz only. You could either:
|
There seems to be an issue when importing both tensorflow and jax at the same time as both claim all the GPU memory. I was able to fix it with some environment variables. |
Yes, this is a known issue. There are several workarounds suggested here, in case you didn't already find this. |
A tomographic binning method from the UC Irvine team (zot?)
The basic idea is to perform two stages of optimization:
Divide the feature space into a large number, O(10K), of rectangular cells then iteratively combine cells into O(100) groups according their joint feature and redshift distribution similarities.
Combine the O(100) groups into O(1-10) final bins by optimizing a metric such as FOM_3x2 or FOM_DETF_3x2.
An example showing the redshift distributions of 200 groups partitioning the Buzzard riz feature space, obtained after step 1:
Uses code from a separate repo that can be installed with:
More details and plots to follow...