• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

fepegar / torchio / 543
88%

Build:
DEFAULT BRANCH: master
Ran 07 Apr 2020 09:02AM UTC
Jobs 2
Files 0
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
543

push

travis-ci

web-flow
Make Subject inherit from dict (#115)

Before this commit, adding new attributes to samples was slightly
cumbersome as one needed to subclass `ImagesDataset` and override
its methods. Example:
https://github.com/fepegar/torchio/issues/112#issuecomment-607881106

Now, `Subject` receives an arbitrary number of keyword arguments
that will be added to the sample sampled from the dataset.

This is especially useful for tasks such as binary classification or
regression of a single number.

In the future, `sample`s and `image_dict`s provided by `ImagesDataset`
might also be custom classes that inherit from `dict`.

Resolves #112.

Thanks @nwschurink for your contribution and @romainVala for the discussion.

* Added **kwargs to dictionary of Subject and Image

* Make Subject inherit from dict

* Add docs and typing hints

Co-authored-by: Niels Schurink <n.schurink@nki.nl>
Co-authored-by: Fernando Perez-Garcia <fepegar@gmail.com>
Jobs
ID Job ID Ran Files Coverage
1 543.1 07 Apr 2020 09:02AM UTC 0
Travis Job 543.1
2 543.2 07 Apr 2020 09:02AM UTC 0
Travis Job 543.2
Source Files on build 543
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #543
  • 6728be7c on github
  • Prev Build on master (#539)
  • Next Build on master (#544)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc