Skip to content

Commit dee9ead

Browse files
committed
data.py change, date in paper.md
1 parent 2494783 commit dee9ead

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

data/__init__.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,23 @@
1313
def get_dataset(
1414
datasets_path: str,
1515
key: Key,
16-
config: ConfigDict
16+
config: ConfigDict,
17+
dataset_kwargs: dict
1718
) -> ScalerDataset:
1819

1920
dataset_name = config.dataset_name.lower()
2021

2122
if dataset_name == "flowers":
22-
dataset = flowers(key, n_pix=config.n_pix)
23+
dataset = flowers(datasets_path, key, n_pix=config.n_pix, **dataset_kwargs)
2324
if dataset_name == "cifar10":
24-
dataset = cifar10(datasets_path, key)
25+
dataset = cifar10(datasets_path, key, **dataset_kwargs)
2526
if dataset_name == "mnist":
26-
dataset = mnist(datasets_path, key)
27+
dataset = mnist(datasets_path, key, **dataset_kwargs)
2728
if dataset_name == "moons":
2829
dataset = moons(key)
2930
if dataset_name == "grfs":
30-
dataset = grfs(key, n_pix=config.n_pix)
31+
dataset = grfs(key, n_pix=config.n_pix, **dataset_kwargs)
3132
if dataset_name == "quijote":
32-
dataset = quijote(key, n_pix=config.n_pix, split=0.9)
33+
dataset = quijote(key, n_pix=config.n_pix, split=0.9, **dataset_kwargs)
3334

3435
return dataset

paper/paper.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ authors:
1111
- name: Jed Homer
1212
orcid: 0009-0002-0985-1437
1313
equal-contrib: true
14-
affiliation: "1, 2" # (Multiple affiliations must be quoted)
14+
affiliation: "1, 2"
1515
affiliations:
1616
- name: University Observatory, Faculty for Physics, Ludwig-Maximilians-Universität München, Scheinerstrasse 1, München, Deustchland.
1717
index: 1
1818
ror: 00hx57361
1919
- name: Munich Center for Machine Learning.
2020
index: 2
2121
ror: 00hx57361
22-
date: 1 October 2024
22+
date: 25 January 2025
2323
bibliography: paper.bib
2424

2525
# Optional fields if submitting to a AAS journal too, see this blog post:

0 commit comments

Comments
 (0)