Skip to content
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

Rename datamodule-->dataset #95

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/examples/jax_image_classification.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ pass uses Jax to calculate the gradients, and the weights are updated by a PyTor
## Running the example

```console
$ python project/main.py algorithm=jax_image_classifier network=jax_cnn datamodule=cifar10
$ python project/main.py algorithm=jax_image_classifier network=jax_cnn dataset=cifar10
```
6 changes: 3 additions & 3 deletions docs/examples/text_classification.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
additional_python_references:
- project.algorithms.text_classifier
- project.datamodules.text.text_classification
- project.datasets.text.text_classification
---

# Text Classification (⚡ + 🤗)
Expand All @@ -27,9 +27,9 @@ It accepts a `TextClassificationDataModule` as input, along with a network.
### Datamodule config

??? note "Click to show the Datamodule config"
Source: project/configs/datamodule/glue_cola.yaml
Source: project/configs/dataset/glue_cola.yaml

{{ inline('project/configs/datamodule/glue_cola.yaml', 4) }}
{{ inline('project/configs/dataset/glue_cola.yaml', 4) }}

## Running the example

Expand Down
10 changes: 5 additions & 5 deletions docs/profiling_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
algorithm_network_config,
command_line_arguments,
command_line_overrides,
datamodule_config,
dataset_config,
experiment_dictconfig,
)
from project.experiment import (
instantiate_algorithm,
instantiate_datamodule,
instantiate_dataset,
instantiate_trainer,
setup_logging,
)
Expand Down Expand Up @@ -80,7 +80,7 @@
experiment=profiling \
algorithm=image_classifier \
algorithm/network=fcnet \
datamodule=mnist \
dataset=mnist \
trainer.logger.wandb.name="FcNet/MNIST baseline with training" \
trainer.logger.wandb.tags=["CPU/GPU comparison","GPU","MNIST"]
""",
Expand Down Expand Up @@ -122,7 +122,7 @@ def test_notebook_commands_dont_cause_errors(experiment_dictconfig: DictConfig):
setup_logging(log_level=config.log_level)
lightning.seed_everything(config.seed, workers=True)
_trainer = instantiate_trainer(config)
datamodule = instantiate_datamodule(config.datamodule)
_algorithm = instantiate_algorithm(config.algorithm, datamodule=datamodule)
dataset = instantiate_dataset(config.dataset)
_algorithm = instantiate_algorithm(config.algorithm, dataset=dataset)

# Note: Here we don't actually do anything with the objects.
2 changes: 0 additions & 2 deletions project/algorithms/callbacks/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
from .callback import Callback
from .classification_metrics import ClassificationMetricsCallback
from .samples_per_second import MeasureSamplesPerSecondCallback

__all__ = [
"Callback",
"ClassificationMetricsCallback",
"MeasureSamplesPerSecondCallback",
]
273 changes: 0 additions & 273 deletions project/algorithms/callbacks/callback.py

This file was deleted.

Loading
Loading