Skip to content

Conversation

@rijobro
Copy link
Contributor

@rijobro rijobro commented Jan 19, 2021

Adds get_num_classes method to MedNISTDataset, and also stores the text associated with each label.

e.g.,

print(train_ds.get_num_classes())
print(train_ds[0]["class_name"])

Status

Ready

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh --codeformat --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>
@rijobro rijobro requested review from Nic-Ma, ericspod and wyli January 19, 2021 11:42
Copy link
Contributor

@wyli wyli left a comment

Choose a reason for hiding this comment

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

thanks!

@wyli wyli merged commit 91cb8cd into Project-MONAI:master Jan 19, 2021
@rijobro rijobro deleted the enhance_mednistdataset branch January 19, 2021 16:52
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