Skip to content

Rename bundled dataset shards to match read_data#8

Open
iorinu wants to merge 1 commit into
TsingZ0:mainfrom
iorinu:fix/dataset-rename
Open

Rename bundled dataset shards to match read_data#8
iorinu wants to merge 1 commit into
TsingZ0:mainfrom
iorinu:fix/dataset-rename

Conversation

@iorinu

@iorinu iorinu commented Jul 17, 2026

Copy link
Copy Markdown

Hello, I tried to reproduce the GPFL experiment, but the file names didn't match, so I made some corrections. I believe the functions were likely modified to align with PFLlib, so I've updated the filenames in the dataset.

def read_data(dataset, idx, is_train=True):
    if is_train:
        train_data_dir = os.path.join('../dataset', dataset, 'train/')

        train_file = train_data_dir + str(idx) + '.npz'
        with open(train_file, 'rb') as f:
            train_data = np.load(f, allow_pickle=True)['data'].tolist()

        return train_data

train_file = train_data_dir + str(idx) + '.npz'
I'm making adjustments so that it fits this code.

@iorinu iorinu closed this Jul 18, 2026
@iorinu
iorinu deleted the fix/dataset-rename branch July 18, 2026 08:05
@iorinu
iorinu restored the fix/dataset-rename branch July 18, 2026 13:06
@iorinu iorinu reopened this Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant