Open patel-zeel opened 1 year ago
I have added DeterministicStrategy
now. Acquisitions such as Entropy should check if the input is 3d (mc_dim, pool_dim, n_classes)
and take mean over the first dimension. If input is 2d (pool_dim, n_classes), simply compute the acquisition and return the scores.
Since MC BALD and BALD have been assigned differently, BALD will only inherit from DeterministicStratergy? Basically, should we have two separate files for BALD and MC BALD?
@aditiagarwal-02 No, you can inherit from all relevant classes at once. I have updated the assignment accordingly.
Refer to this paper for most functions below.
Create a separate file for each of these strategies in
astra/torch/al/acquisitions
folder. See for example, https://github.com/sustainability-lab/ASTRA/blob/main/astra/torch/al/acquisitions/random.pyYour acquisition function should inherit from all base classes it supports. For example,
Entropy
class should inherit fromMCAcquisition
andEnsembleAcquisition
:All of you should
astra/tests
directory in relevant folders.