This repository contains the code for this paper.
Setup a virtual environment with Python 3.10 and install CUDA with version 12.6+:
# sample command with conda virtual environment creation
conda create -n meta-forests python=3.10
conda activate meta-forestsInstall the requirements:
pip install -r requirements.txtOr install with command:
pip install deeplake==4.1.10 scikit-learn==1.6.1 numpy==2.2.4
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126
⚠️ Please be reminded that Deeplake v4 does not support Windows, please proceed with WSL if you are on Windows.
We have used the following datasets according to the paper:
While the blood glucose monitoring dataset from Sun et al. (2023) used in the paper is not publicly available.
- Download the VLCS dataset from the link.
- Decompress the file and place the
VLCSfolder in thesrc/datafolder. - Download the AlexNet weights from the link and place the
alexnet_caffe.pth.tarfile in thesrc/weightsfolder. - Download the PACS dataset with the function
load_pacs_training_dataset()insrc/load_data.py.
@misc{sun2024metaforests,
title={Meta-forests: Domain generalization on random forests with meta-learning},
author={Yuyang Sun, Panagiotis Kosmas},
year={2024},
eprint={2401.04425},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2401.04425},
}
This project is licensed under the MIT License. See the LICENSE file for details.