-
-
Notifications
You must be signed in to change notification settings - Fork 389
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
feat: get_dataset_from_params added #1231
Conversation
ef2c857
to
c756ca5
Compare
517266a
to
ff49914
Compare
def get_datasets(self, stage: str) -> "OrderedDict[str, Dataset]": | ||
params = deepcopy(self._stage_config[stage]["loaders"]["datasets"]) |
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.
is it okay, that we have to use params = deepcopy(self._stage_config[stage]["loaders"]["datasets"])
?
from the users perspective?
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.
Either deepcopy
, or we should add method get_stage_config
. Otherwise, there always be a chance of overwriting config params.
# kwargs for `runner.get_datasets`: | ||
num_samples_per_class: 320 | ||
|
||
datasets: | ||
train: | ||
_target_: MNIST | ||
root: *dataset_root | ||
train: True | ||
download: True | ||
num_samples_per_class: 320 | ||
valid: | ||
_target_: MNIST | ||
root: *dataset_root | ||
train: False | ||
download: True |
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.
is it possible to run the previous Config API example without any code-changes/config-changes?
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.
No, dataset parameters were moved to datasets:
level
ff49914
to
fc25268
Compare
* feat: get_dataset_from_params added (#1231) * feat: get_dataset_from_params (config api and hydra) added * datasets added into registry * rm @staticmethod * feat: config transforms support (#1236) * Update README.md * feat: `get_transforms` PoC * fix: HuberLoss workaround added (#1239) Co-authored-by: Sergey Kolesnikov <scitator@gmail.com> * feat: `get_samplers` from params (config API) added (#1240) * feat: support of recursive get_from_params added (#1242) * feat: support of nested lists and dicts for `registry.get_from_params` added (#1244) * feat: support of nested lists and dicts added; instantiation from path to object added * replace `_get_XXX_from_params` with `REGISTRY.get_from_params` in config API * `ConfigRunner._get_loaders_from_params` added * hydra-slayer: `meta_factory` support (#1247) * feat: support of nested lists and dicts added; instantiation from path to object added * replace `_get_XXX_from_params` with `REGISTRY.get_from_params` in config API * support of `meta_factory` for `registry.get_from_params` added Co-authored-by: Yauheni Kachan <19803638+bagxi@users.noreply.github.com>
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: