PySyft icon indicating copy to clipboard operation
PySyft copied to clipboard

Send & Get datasets

Open LaRiffle opened this issue 7 years ago • 9 comments

We can currently send and get tensors, we would like to have the ability to directly fetch datasets with all the data inputs and targets in an easy way.

Things to do:

  • [x] Change sy.BaseDataset to inherit from AbstractObject to have tagging and description and to be registrable by workers: this allows datasets to be referenced for the search functionality
  • [x] Extend BaseDataset with a simplify and detail method (see other objects with a simplify and detail method like the FixedPrecisionTensor to understand the behaviour): this allows to send and receive datasets. (+ reference BaseDataset in serde.py just like FixedPrecisionTensor). You need to update syft-proto as well
  • [x] Support pointing to BaseDataset: create a new type of Pointer for BaseDataset which inherits from ObjectPointer (get inspiration for example from PointerProtocol)
  • [x] Add the .send() and .get() functionality to BaseDataset (for .send() you can get inspiration from Protocol and for .get() native.py)
  • [x] Allow search of datasets in .search to fetch remote datasets: make sure the BaseWorker.search method correctly retrieve datasets

Each of this point can be addressed in a separate PR if needed.

LaRiffle avatar Oct 17 '19 14:10 LaRiffle

Hi Theo, I can take this one. I see similar coding structure (with tag, description, simplify, detail methods etc.) in protocol.py file - so can to some extent imagine what the "things to do" are referring to but I think I still need more context as a new person on this. Thanks in advance Theo!

NovaVic avatar Oct 20 '19 17:10 NovaVic

Hi @NovaVic I just updated the description with more details, does it looks good to you? :)

LaRiffle avatar Oct 22 '19 15:10 LaRiffle

Hi Theo @LaRiffle, Thanks for the updated description - that definitely helps! And yes I feel it would be better manageable if I can address change related to each of the points as separate PR.

You can assign it to me. Thanks Theo!

NovaVic avatar Oct 22 '19 19:10 NovaVic

Hi @NovaVic, any updates on how the project is going? :)

LaRiffle avatar Nov 13 '19 00:11 LaRiffle

@LaRiffle any updates on this issue? If you want I can give it a try

Guillem96 avatar Dec 20 '19 21:12 Guillem96

Please go ahead :)

LaRiffle avatar Dec 27 '19 14:12 LaRiffle

@LaRiffle When I try to send a Dataset I get this error:

syft.exceptions.UndefinedProtocolTypeError: syft.frameworks.torch.fl.dataset.BaseDataset is not defined in the protocol file

Should I modify syst proto package too?

Guillem96 avatar Jan 05 '20 11:01 Guillem96

@LaRiffle When I try to send a Dataset I get this error:

syft.exceptions.UndefinedProtocolTypeError: syft.frameworks.torch.fl.dataset.BaseDataset is not defined in the protocol file

Should I modify syst proto package too?

Yes you should!

LaRiffle avatar Jan 22 '20 08:01 LaRiffle

Hi, Is this issue available? If so can I work on it?

AbinavRavi avatar Feb 24 '20 18:02 AbinavRavi