Repository navigation
Add a scikit-activeml wrapper for pytorch - #403
Merged
tpham93 merged 57 commits intoJun 24, 2025
Merged
Conversation
mherde
requested changes
Aug 9, 2024
| :target: https://app.codecov.io/gh/scikit-activeml/scikit-activeml | ||
|
|
||
| .. |PythonVersion| image:: https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11%20%7C%203.12-blue.svg | ||
|
|
| matplotlib>=3.7.3 | ||
| iteration-utilities>=0.12.0 | ||
| makefun>=1.15.3 No newline at end of file | ||
| makefun>=1.15.3 |
Contributor
There was a problem hiding this comment.
Remove changes from requirements.
|
|
||
| Implementation of a wrapper class for scikit-learn classifiers such that | ||
| missing labels can be handled. Therefor, samples with missing labels are | ||
| missing labels can be handled. Therefore, samples with missing labels are |
Contributor
There was a problem hiding this comment.
"Therefore" was correct and means "Hierfür".
| Implement a wrapper class, to make it possible to use `PyTorch` with | ||
| `skactiveml`. This is achieved by providing a wrapper around `PyTorch` | ||
| that has a skactiveml interface and also be able to handle missing labels. | ||
| This wrapper is based on the open-source library `skorch` [1]. |
Contributor
There was a problem hiding this comment.
Suggested change
| This wrapper is based on the open-source library `skorch` [1]. | |
| This wrapper is based on the open-source library `skorch` [1]_. |
Comment on lines
+736
to
+738
| criterion : torch criterion (class), default: nn.NLLoss() | ||
| The uninitialized criterion (loss) used to optimize the | ||
| module. |
Contributor
There was a problem hiding this comment.
Suggested change
| criterion : torch criterion (class), default: nn.NLLoss() | |
| The uninitialized criterion (loss) used to optimize the | |
| module. | |
| criterion : nn.Module.__class__, default=nn.NLLoss | |
| The uninitialized criterion (loss) used to optimize the module. \ | |
| By default, `nn.NLLoss` is used as criterion. |
| "y_pred": y_pred, | ||
| } | ||
|
|
||
| def predict_P_annot(self, X): |
Contributor
There was a problem hiding this comment.
Suggested change
| def predict_P_annot(self, X): | |
| def predict_proba_annot(self, X): |
|
|
||
| Parameters | ||
| ---------- | ||
| X : matrix-like, shape (n_samples, n_features) |
Contributor
There was a problem hiding this comment.
Suggested change
| X : matrix-like, shape (n_samples, n_features) | |
| X : matrix-like of shape (n_samples, n_features) |
|
|
||
| class CrowdLayerModule(nn.Module): | ||
| """ | ||
| CrowdLayerModule |
Contributor
There was a problem hiding this comment.
Suggested change
| CrowdLayerModule | |
| Crowd Layer Module |
| """ | ||
| CrowdLayerModule | ||
|
|
||
| CrowdLayer [1] is a layer added at the end of a classifying neural network |
Contributor
There was a problem hiding this comment.
Suggested change
| CrowdLayer [1] is a layer added at the end of a classifying neural network | |
| Crowd Layer [1]_ is a layer added at the end of a classifying neural network |
Comment on lines
+248
to
+249
| [1] Rodrigues, Filipe, and Francisco Pereira. "Deep learning from crowds." In Proceedings | ||
| of the AAAI conference on artificial intelligence, vol. 32, no. 1. 2018. |
Contributor
There was a problem hiding this comment.
Suggested change
| [1] Rodrigues, Filipe, and Francisco Pereira. "Deep learning from crowds." In Proceedings | |
| of the AAAI conference on artificial intelligence, vol. 32, no. 1. 2018. | |
| .. [1] Rodrigues, Filipe, and Francisco Pereira. "Deep learning from crowds." AAAI | |
| Conference on Artificial Intelligence, 2018. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Features
Side Notes