Dhanush Sai Baswa
Dhanush Sai Baswa

Reputation: 145

gzip.open() function in python

I am learning ML and I am stuck with this following line of code

can anyone help me yo know what does this line of does

and the parameters required to give for it are??

gzip.open('../data/mnist.pkl.gz', 'rb')

Upvotes: 0

Views: 145

Answers (1)

Stay Strawberry
Stay Strawberry

Reputation: 116

It starts to upload to memory the file you adressed in binary mode(fast way of reading), mostly you have to use rb argument. Next step is modifying this data and writing it back with 'wb' command.

Upvotes: 1

Related Questions