Skip to content

359 Regression tree-based AL - #371

Merged
mherde merged 26 commits into
developmentfrom
359-RT-AL
Jul 18, 2024
Merged

mherde merged 26 commits into
developmentfrom
359-RT-AL

Conversation

@Pascal112

@Pascal112 Pascal112 commented Jan 9, 2024 •

Copy link
Copy Markdown
Collaborator

Closes #359

@Pascal112
Pascal112 requested review from mherde and tpham93 January 9, 2024 12:53
- 'diversity', and 'representativity' methods added
- tests added
- example added
@Pascal112 Pascal112 self-assigned this Feb 27, 2024

@mherde mherde left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Further discussion will follow in the next meeting.

Comment thread skactiveml/pool/__init__.py Resolved
Comment thread docs/refs.bib Resolved
Comment thread skactiveml/utils/_selection.py Resolved
Comment thread skactiveml/utils/_selection.py Resolved
@mherde
mherde requested a review from AshnaJose March 13, 2024 07:07
@codecov

codecov Bot commented Mar 19, 2024 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 99.37888% with 1 line in your changes missing coverage. Please review.

Please upload report for BASE (development@921f595). Learn more about missing BASE report.

Files Patch % Lines
skactiveml/pool/_regression_tree_based_al.py 99.21% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff               @@
##             development     #371   +/-   ##
==============================================
  Coverage               ?   99.98%           
==============================================
  Files                  ?       59           
  Lines                  ?     5236           
  Branches               ?        0           
==============================================
  Hits                   ?     5235           
  Misses                 ?        1           
  Partials               ?        0           

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

y = np.full(shape=y_true.shape, fill_value=MISSING_LABEL)
X_test = np.linspace(0, 2, num="$res|1000").reshape(-1, 1)

# Initialise the classifier.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

regressor

Comment on lines +209 to +210
# Calculate the L2 distance of each unlabeled sample in leaf k
# to all the labeled samples using equation (6).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
# Calculate the L2 distance of each unlabeled sample in leaf k
# to all the labeled samples using equation (6).
# Calculate the L2 distance of each unlabeled sample in leaf k
# to all the labeled samples using equation (6) and (7).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

n_k = [1.2, 1.8, 3.4] we need to use the value to proportionally select the integer number of queries per leaf and then perform the diversity selection in a leaf

@mherde mherde Apr 15, 2024 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Check how to compute suitable utilities, e.g., by using the idea TypiClust.

batch_utilities_cand[l],
random_state=self.random_state_,
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we use the simple_batch at the end for representativity?

@tpham93 tpham93 linked an issue Jul 15, 2024 that may be closed by this pull request
mherde and others added 3 commits July 15, 2024 15:36
@mherde
mherde merged commit 7593deb into development Jul 18, 2024
@mherde
mherde deleted the 359-RT-AL branch July 18, 2024 17:22
@tpham93 tpham93 mentioned this pull request Jul 19, 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.

Implementation of RT-AL

4 participants