# Setup

To run the code, please install the following packages with Python 3.7:
- numpy
- tensorflow 2.5
- tensorflow_probability 0.13
- matplotlib
- scikit-learn


# Data

For few-shot learning, we randomly chose train and test data from the dataset "http://storage.googleapis.com/leo-embeddings/embeddings.zip". It is a pretrained dataset of the miniImageNet with feature embdeddings by a Wide Residual Network WRN 28-10 (See Section B.2 of Rusu et al., ICLR 2019 for further details.) The datasets that we used for our experiments are in directories "data_task1" and "data_task2". To get the information of the datasets, run "python data_info.py". You can get lists of the names of images in the datasets. Each directory of "data_task1" and "data_task2" contains also the low-dimensional representation of the task and the corresponding parameters obtained by the meta-model proposed by Rusu et al.


# Running the code

- For density estimation, run "python density_estimation.py".
- For few-shot learning, run "python few_shot.py".
