question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow non-image type label in subject

See original GitHub issue

Is your feature request related to a problem? Please describe. I am planning on building a classification network, where the network needs to classify multimodality images of tumor into either benign or malignant. For each tumor I have 3 images e.g. T1, T2 and DWI and each tumor has 1 binary label associated to it e.g. [0,1].

At this moment it is only possible to add a ‘label’ of the Class “Image” to a subject. Which in my case does not make sense as this is not a segmentation but a classification task.

Describe the solution you’d like Allow the Subject class to also accept a new Label class, which can contain a string, int, list or something like that.

OR

Another easy to implement option would be to allow setting an optional label attribute to the class in the init. Something in the sense of:

def __init__(self, *images: Image, name: str = '', label: TypeLabel):
        self._parse_images(images)
        super().__init__(images)
        self.name = name
        self.label = label

With TypeLabel = Union[str, int, float] or something similar to that.

Describe alternatives you’ve considered I have considered creating my own labellist, but it makes more sense to integrate the label into an instance of Subject.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
nwschurinkcommented, Apr 3, 2020

Will submit a PR in a moment 😉

0reactions
fepegarcommented, Apr 3, 2020

Could you please submit a PR for this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

JLabel (Java Platform SE 7 ) - Oracle Help Center
Creates a JLabel instance with no image and with an empty string for the title. The label is centered vertically in its display...
Read more >
Bibliographic record indexes - OCLC Support
View all bibliographic record indexes that are available for searching WorldCat alphabetically or by data type. Alphabetical list of available ...
Read more >
Large-scale multi-label text classification - Keras
In this example, we will build a multi-label text classifier to predict the subject areas of arXiv papers from their abstract bodies.
Read more >
HTML 5.2: 4.10. Forms - W3C
To label a control, the label element is used; the label text and the ... type attribute is not in the Image Button...
Read more >
DeepInsight: A methodology to transform a non-image data to ...
Finally, a SoftMax layer is used to give the output as class labels. The CNN architecture of DeepInsight has various hyperparameters such as ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found