ageron / handson-ml

⛔️ DEPRECATED – See https://github.com/ageron/handson-ml3 instead.
Apache License 2.0
25.14k stars 12.91k forks source link

Splitting with hashlib #628

Open Dess1996 opened 3 years ago

Dess1996 commented 3 years ago

Good time a day ageron, you have a very nice book.

Anyway I have one question from Chapter 2. Which of algorithm given in book is more faster:

**- 1) def split_train_test(data, test_ratio)

?

Which function is more save memory?

I would be gratefull if you give comments about this. Thanks for your attention

ageron commented 3 years ago

I haven't run any benchmarks, so I don't know. However, you can try using %timeit to measure speed. To measure RAM usage, you could use the memory_profiler package. If you find the answer, it would be great to share it here. 👍 Thanks!