"model" ambiguity #14351
Replies: 3 comments 4 replies
-
I'd call it
|
Beta Was this translation helpful? Give feedback.
-
A couple more suggestions: ModulesWe could call these things "modules". This would match the naming structure of the base classes:
Downside is that it's a bit ambiguous what a "module" does, and name partially conflicts with E.g. EstimatorsThis naming scheme matches sklearn's base class. Many of these things in the docs are named like E.g. |
Beta Was this translation helpful? Give feedback.
-
We're also discussing this internally in TorchGeo, adding a backwards reference here: torchgeo/torchgeo#996 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm sure this has been brought up before, but use of the word "model" in Lightning seems to conflict with the use of the word "model" in other deep learning libraries.
In libraries like torchvision, "model" refers to the actual NN architecture (e.g., ResNet), whereas in Lightning, "model" refers to the
LightningModule
that defines how a NN architecture is trained. I myself, and likely many new users, accidentally pass something like a ResNet topl.Trainer(model=...)
due to this ambiguity.In TorchGeo, we generally follow the torchvision API but also add
LightningDataModule
andLightningModule
objects for reproducibility and experimentation with geospatial datasets. We have submodules likedatasets
,datamodules
,transforms
, andmodels
, but we aren't sure where to putLightningModules
. Currently, we put them intorchgeo.trainers
, but this name conflicts with the Lightningpl.Trainer
class. Each object is named something likeRegressionTask
,ClassificationTask
, etc., so maybetorchgeo.tasks
would be a better submodule?Are there any other users who do something similar in their libraries? What submodules do they use? We would like to match the standards used in other libraries as much as possible.
@calebrob6 @isaaccorley
Beta Was this translation helpful? Give feedback.
All reactions