Primary competition visual

Hulkshare Recommendation Algorithm Challenge

$7 500 USD
Completed (over 4 years ago)
Prediction
Collaborative Filtering
516 joined
70 active
Starti
03 Feb 22
Closei
01 May 22
Reveali
01 May 22
Data compression
Notebooks · 12 Mar 2022, 18:38 · edited 14 days later · 6

Hi, all!

I would like to share a notebook in which I process data in such a way that it takes up about 3-4 times less space without losing information.

In the first part, more compact formats are selected for the columns and the results are saved in .pkl, which allows you to compress each of the train/test_frames{i} files by 3-4 times.

In the second part, fragments of train/test_frames{i} files are concatenated into one. The final train_frames.pkl takes up 10 Gb of Ram, which gives more opportunities for experimenting with limited hardware resources.

You can download notebook from: https://disk.yandex.ru/d/rnUFxjzICF3mGw

I hope it will be helpfull. Good luck!

UPD: @mdkoz found a bug that the loop for joining the test pickles goes up to 4 and skips over the 5th item

Discussion 6 answers
User avatar
flamethrower

Very helpful. Thank you.

Upvotes 0
User avatar

There is a bug in this script. When joining the test pickles your loop only goes up to 4 and skips over the 5th item.

Upvotes 0
User avatar
Upvotes 0
User avatar

No problem, thanks for the script

Upvotes 0
User avatar

your welcome to contnue the conversaion here https://discord.gg/TwsnzK8k

Upvotes 0
User avatar

Hi, getting memory error while reading pickle files, what's the fix?

Upvotes 0