Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bz committed Nov 9, 2023
1 parent ff4395e commit 94b7824
Show file tree
Hide file tree
Showing 9 changed files with 630 additions and 884 deletions.
390 changes: 68 additions & 322 deletions docs/index.md

Large diffs are not rendered by default.

23 changes: 18 additions & 5 deletions docs/models.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
# Models

::: lume_model.models
selection:
::: lume_model.base
options:
members:
- BaseModel
rendering:
show_root_heading: false
- LUMEBaseModel

::: lume_model.models.torch_model
options:
members:
- TorchModel

::: lume_model.models.torch_module
options:
members:
- TorchModule

::: lume_model.models.keras_model
options:
members:
- KerasModel
7 changes: 5 additions & 2 deletions docs/utils.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Utilities

::: lume_model.utils
rendering:
show_root_heading: false
options:
members:
- variables_as_yaml
- variables_from_dict
- variables_from_yaml
13 changes: 5 additions & 8 deletions docs/variables.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# Variables

::: lume_model.variables
selection:
options:
members:
- Variable
- ScalarVariable
- InputVariable
- OutputVariable
- ScalarInputVariable
- ScalarOutputVariable
- ImageInputVariable
- ImageOutputVariable
- ArrayInputVariable
- ArrayOutputVariable
- TableVariable
rendering:
show_source: true
1 change: 0 additions & 1 deletion lume_model/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ def json(self, **kwargs) -> str:
result = self.to_json(**kwargs)
config = json.loads(result)
config = {"model_class": self.__class__.__name__} | config

return json.dumps(config)

def yaml(
Expand Down
Loading

0 comments on commit 94b7824

Please sign in to comment.