-
-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup #1303
Cleanup #1303
Conversation
catalyst/callbacks/sklearn_model.py
Outdated
@@ -48,7 +48,7 @@ class SklearnModelCallback(Callback): | |||
download=True, | |||
transform=transforms | |||
) | |||
sampler = data.BalanceBatchSampler(labels=train_dataset.get_labels(), p=5, k=10) | |||
sampler = data.BatchBalanceClassSampler(labels=train_dataset.get_labels(), num_classes=5, num_samples=10) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
E501 line too long (117 > 99 characters)
catalyst/callbacks/sklearn_model.py
Outdated
@@ -48,7 +48,7 @@ class SklearnModelCallback(Callback): | |||
download=True, | |||
transform=transforms | |||
) | |||
sampler = data.BalanceBatchSampler(labels=train_dataset.get_labels(), p=5, k=10) | |||
sampler = data.BatchBalanceClassSampler(labels=train_dataset.get_labels(), num_classes=5, num_samples=10) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
W505 doc line too long (117 > 99 characters)
catalyst/callbacks/sklearn_model.py
Outdated
@@ -137,7 +137,7 @@ def handle_batch(self, batch) -> None: | |||
download=True, | |||
transform=transforms | |||
) | |||
sampler = data.BalanceBatchSampler(labels=train_dataset.get_labels(), p=5, k=10) | |||
sampler = data.BatchBalanceClassSampler(labels=train_dataset.get_labels(), num_classes=5, num_samples=10) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
E501 line too long (117 > 99 characters)
catalyst/callbacks/sklearn_model.py
Outdated
@@ -137,7 +137,7 @@ def handle_batch(self, batch) -> None: | |||
download=True, | |||
transform=transforms | |||
) | |||
sampler = data.BalanceBatchSampler(labels=train_dataset.get_labels(), p=5, k=10) | |||
sampler = data.BatchBalanceClassSampler(labels=train_dataset.get_labels(), num_classes=5, num_samples=10) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
W505 doc line too long (117 > 99 characters)
@@ -52,7 +52,7 @@ class CMCScoreCallback(LoaderMetricCallback): | |||
train_dataset = datasets.MnistMLDataset( | |||
root=os.getcwd(), download=True, transform=transforms | |||
) | |||
sampler = data.BalanceBatchSampler(labels=train_dataset.get_labels(), p=5, k=10) | |||
sampler = data.BatchBalanceClassSampler(labels=train_dataset.get_labels(), num_classes=5, num_samples=10) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
E501 line too long (113 > 99 characters)
@@ -52,7 +52,7 @@ class CMCScoreCallback(LoaderMetricCallback): | |||
train_dataset = datasets.MnistMLDataset( | |||
root=os.getcwd(), download=True, transform=transforms | |||
) | |||
sampler = data.BalanceBatchSampler(labels=train_dataset.get_labels(), p=5, k=10) | |||
sampler = data.BatchBalanceClassSampler(labels=train_dataset.get_labels(), num_classes=5, num_samples=10) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
W505 doc line too long (113 > 99 characters)
catalyst/metrics/_cmc_score.py
Outdated
@@ -74,7 +74,7 @@ class CMCMetric(AccumulativeMetric): | |||
train_dataset = datasets.MnistMLDataset( | |||
root=os.getcwd(), download=True, transform=transforms | |||
) | |||
sampler = data.BalanceBatchSampler(labels=train_dataset.get_labels(), p=5, k=10) | |||
sampler = data.BatchBalanceClassSampler(labels=train_dataset.get_labels(), num_classes=5, num_samples=10) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
E501 line too long (113 > 99 characters)
catalyst/metrics/_cmc_score.py
Outdated
@@ -74,7 +74,7 @@ class CMCMetric(AccumulativeMetric): | |||
train_dataset = datasets.MnistMLDataset( | |||
root=os.getcwd(), download=True, transform=transforms | |||
) | |||
sampler = data.BalanceBatchSampler(labels=train_dataset.get_labels(), p=5, k=10) | |||
sampler = data.BatchBalanceClassSampler(labels=train_dataset.get_labels(), num_classes=5, num_samples=10) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
W505 doc line too long (113 > 99 characters)
@@ -217,7 +217,7 @@ def test_metric_learning_pipeline(): | |||
""" | |||
with TemporaryDirectory() as tmp_dir: | |||
dataset_train = datasets.MnistMLDataset(root=tmp_dir, download=True) | |||
sampler = data.BalanceBatchSampler(labels=dataset_train.get_labels(), p=5, k=10) | |||
sampler = data.BatchBalanceClassSampler(labels=dataset_train.get_labels(), num_classes=5, num_samples=10) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
E501 line too long (113 > 99 characters)
@@ -273,7 +273,7 @@ def test_reid_pipeline(): | |||
transforms = Compose([ToTensor(), Normalize((0.1307,), (0.3081,))]) | |||
|
|||
train_dataset = MnistMLDataset(root=os.getcwd(), download=True, transform=transforms) | |||
sampler = data.BalanceBatchSampler(labels=train_dataset.get_labels(), p=5, k=10) | |||
sampler = data.BatchBalanceClassSampler(labels=train_dataset.get_labels(), num_classes=5, num_samples=10) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
E501 line too long (113 > 99 characters)
This pull request is now in conflicts. @Scitator, could you fix it? 🙏 |
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Before submitting (checklist)
catalyst-make-codestyle && catalyst-check-codestyle
(pip install -U catalyst-codestyle
).make check-docs
?pytest .
?latest
andminimal
requirements?Description
Related Issue
Type of Change
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
FAQ
Please review the FAQ before submitting an issue: