Code for the 2023 NeurIPS Spotlight paper ``Error Bounds for Learning with Vector-Valued Random Features''
The command
conda env create -f Project.yml
creates an environment called operator. PyTorch will be installed in this step.
Activate the environment with
conda activate operator
and deactivate with
conda deactivate
The 1D viscous Burgers' equation dataset is a standard operator learning benchmark first introduced in Nelsen and Stuart 2021.
The particular setup used in this example comes from zongyi-li/fourier_neural_operator and is found below:
Please download Burgers_R10.zip which contains the dataset file burgers_data_R10.mat. There are
In the script train.py, assign in the variable data_path the global path to the data file burgers_data_R10.mat.
The example may then be run as
python -u train.py M N J 0 lambda my_path
where
Mis the number of random features,Nis the number of training data pairs,Jis the desired spatial resolution for training and testing.lambdais the regularization parametermy_pathis the output directory
The code defaults to running on GPU, if one is available.