Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to read Kosarak dataset in a vector format. #528

Open
ronakagarwal1702 opened this issue May 24, 2024 · 0 comments
Open

Not able to read Kosarak dataset in a vector format. #528

ronakagarwal1702 opened this issue May 24, 2024 · 0 comments

Comments

@ronakagarwal1702
Copy link

ronakagarwal1702 commented May 24, 2024

When I'm reading .hdf5 file, getting train or test output as a number. For below example, output is 3954. For other dataset (Ex- fashionmnist, lastfm etc), I'm getting train, test data in a vector format for a given id. Could anyone help here to read the train, test data in vector dimension format for kosarak?

import h5py
import csv
file_path = "kosarak-jaccard.hdf5"
file_path_csv = "kosarak_train.csv"
with h5py.File(file_path, "r") as hdf_file:
    print(hdf_file['train'][100])

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

No branches or pull requests

1 participant