This repository contains a PyTorch implementation for the paper Variational Weighting for Kernel Density Ratios, presented at NeurIPS 2023.
-
PyTorch
-
Scikit-learn
-
SciPy
-
NumPy
-
CuPy
python train.py --model [model name] --device [device]Here model name is one of the following:
KDEThis is the naive Kernel Density Estimation model.basedCorresponds to VWKDE-MB in Figure 4.freeCorresponds to VWKDE-MF in Figure 4.
Example:
python train.py --model free --device cuda