-
Notifications
You must be signed in to change notification settings - Fork 635
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
Atomic File Creation Probelm #1372
Comments
@KianaLia Hello, thanks for your attention to RecBole! |
Hi again!
I've shared my tries in the link below: |
@KianaLia For a DataFrame object of your example, you can try the following command to create an Atmmic File: |
Hello @KianaLia, I don't quite understand the specific meaning of the two columns in your original dataset. In our framework, the Please clarify whether your question is applicable to the recommendation scenario, and refer to the section on atomic files in our documentation. Thanks for your attention to RecBole! |
Hi guys!
I'm trying to make a valid Atomic dataset file but I've got some probelms!
My original dataset is a .csv file containing two clomuns: Bid and NumberOfPages (It's a sample file for testing)
I load this file a Pandas Dataframe in my code and save it as a .txt file with the code below:
np.savetxt(r'/content/drive/MyDrive/goldoon_data/bd.txt', df, header=''.join(f'{col},' for col in df.columns).rstrip())
The result looks like this:

And I rename the files format from rectest.txt to rectest.item in the specified data path.
Then I try to make a dataset using the following code:
config_dict = { 'field_separator' : ',', 'seq_separator' : ' ', 'neg_sampling' : {'uniform': 1}, 'data_path': '/content/drive/MyDrive/', 'load_col': {'item': ['bid','NumberOfPages']}, 'ITEM_ID_FIELD': 'bid', 'save_dataset': True, 'save_dataloaders': True }
config = Config(model='BPR', dataset = 'rectest', config_dict= config_dict)
dataset = create_dataset(config)
But I get this error:

Can you help me with it? or do you know a better way to make custom Atomic files?
The text was updated successfully, but these errors were encountered: