Skip to content

Add PseudoLabeling transform for unlabeled dataset#1594

Merged
sooahleex merged 4 commits intoopen-edge-platform:developfrom
sooahleex:feat/explorer_score_softmax
Sep 25, 2024
Merged

Add PseudoLabeling transform for unlabeled dataset#1594
sooahleex merged 4 commits intoopen-edge-platform:developfrom
sooahleex:feat/explorer_score_softmax

Conversation

@sooahleex
Copy link
Copy Markdown
Contributor

@sooahleex sooahleex commented Aug 30, 2024

Summary

  • Add PseudoLabeling transform for unlabeled dataset
  • Use Explorer of Datumaro to make pseudo label for each datasetitem

How to test

  • Add unit tests

Checklist

  • I have added unit tests to cover my changes.​
  • I have added integration tests to cover my changes.​
  • I have added the description of my changes into CHANGELOG.​
  • I have updated the documentation accordingly

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below).
# Copyright (C) 2024 Intel Corporation
#
# SPDX-License-Identifier: MIT

@sooahleex sooahleex marked this pull request as ready for review September 2, 2024 06:53
@sooahleex sooahleex requested review from a team as code owners September 2, 2024 06:53
@sooahleex sooahleex requested review from itrushkin and removed request for a team September 2, 2024 06:53
@sooahleex sooahleex added this to the 1.10.0 milestone Sep 2, 2024
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.07%. Comparing base (ff5fd94) to head (19a7d16).
Report is 5 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1594      +/-   ##
===========================================
+ Coverage    81.06%   81.07%   +0.01%     
===========================================
  Files          278      277       -1     
  Lines        32517    32592      +75     
  Branches      6607     6623      +16     
===========================================
+ Hits         26360    26425      +65     
- Misses        4701     4711      +10     
  Partials      1456     1456              
Flag Coverage Δ
ubuntu-20.04_Python-3.10 ?
windows-2022_Python-3.10 81.07% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sooahleex sooahleex force-pushed the feat/explorer_score_softmax branch 2 times, most recently from faff21b to 2e5415f Compare September 4, 2024 07:57
@sooahleex sooahleex force-pushed the feat/explorer_score_softmax branch from 2e5415f to 2d796d1 Compare September 12, 2024 05:27
@sooahleex sooahleex force-pushed the feat/explorer_score_softmax branch 2 times, most recently from 7ab7d2f to ad83fa3 Compare September 20, 2024 08:03
@sooahleex sooahleex force-pushed the feat/explorer_score_softmax branch from c03546d to 19a7d16 Compare September 25, 2024 05:44

pseudo = np.array(self._labels)[ind][0]
pseudo_annotation = [Label(label=self._label_indices[pseudo])]
return self.wrap_item(item, annotations=pseudo_annotation)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It seems that the original annotations are replaced with the pseudo annotation. Is it intended? Then how about add this notice to the document?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

In this case, I assumed the case that each item does not have any annotation. so the original annotations is not existed. If my assumption is not proper, please let me know.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Oh, I see. Then, we can enhance this feature when the assumption is changed.

@sooahleex sooahleex merged commit 03447a6 into open-edge-platform:develop Sep 25, 2024
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