Skip to content

Add and refine document#3120

Merged
gmuraru merged 15 commits intoOpenMined:masterfrom
haofanwang:master
Mar 2, 2020
Merged

Add and refine document#3120
gmuraru merged 15 commits intoOpenMined:masterfrom
haofanwang:master

Conversation

@haofanwang
Copy link
Member

This PR makes a contribution to #2510

  1. Refine tutorial.
  2. Remove unnecessary dependencies.
  3. Add document.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

You'll be able to see Jupyter notebook diff and discuss changes. Powered by ReviewNB.

@haofanwang
Copy link
Member Author

Reformat done, ready to merge.


assert key in fed_client.datasets

# remove new dataset
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use 'R' in place of 'r' such that it follows the same pattern as the above comment ("Create a dataset")

# Create a dataset
dataset = "my_dataset"
key = "string_dataset"
# add new dataset
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use 'A' in place of 'a' such that it follows the same pattern as the above comment ("Create a dataset")


assert "string_dataset" in fed_client.datasets

# Raise error if the key is already exists
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Raise an error

dataset = "my_dataset"
fed_client.add_dataset(dataset, "string_dataset")
key = "string_dataset"
# add new dataset
Copy link
Member

@gmuraru gmuraru Mar 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use 'A' in place of 'a' such that it is the same as above?

dataset = "my_dataset"
fed_client.add_dataset(dataset, "string_dataset")
key = "string_dataset"
# add new dataset
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use 'A' in place of 'a' such that it is the same as above (with big "C")?

if self.message_pending_time > 0:
if self.verbose:
print(f"pending time of {self.message_pending_time} seconds to send message...")
# pending
Copy link
Member

@gmuraru gmuraru Mar 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q: Maybe remove this comment - I think the attribute name is self-explanatory.

@gmuraru
Copy link
Member

gmuraru commented Mar 2, 2020

LGTM

@gmuraru gmuraru merged commit 495f09e into OpenMined:master Mar 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants