Skip to content

Commit 89f0bd4

Browse files
authored
Add missing components to API doc (#3468)
* [DLMED] add missing docs Signed-off-by: Nic Ma <[email protected]> * [DLMED] add missing components Signed-off-by: Nic Ma <[email protected]> * [DLMED] fix test Signed-off-by: Nic Ma <[email protected]>
1 parent 5b36d02 commit 89f0bd4

File tree

15 files changed

+153
-25
lines changed

15 files changed

+153
-25
lines changed

docs/source/apps.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ Clara MMARs
114114
.. automodule:: monai.apps.pathology.transforms.spatial.array
115115
.. autoclass:: SplitOnGrid
116116
:members:
117+
.. autoclass:: TileOnGrid
118+
:members:
117119

118120
.. automodule:: monai.apps.pathology.transforms.spatial.dictionary
119121
.. autoclass:: SplitOnGridd
120122
:members:
123+
.. autoclass:: TileOnGridd
124+
:members:

docs/source/data.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ Decathlon Datalist
208208
.. autofunction:: monai.data.load_decathlon_datalist
209209
.. autofunction:: monai.data.load_decathlon_properties
210210
.. autofunction:: monai.data.check_missing_files
211+
.. autofunction:: monai.data.create_cross_validation_datalist
211212

212213

213214
DataLoader

docs/source/engines.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Multi-GPU data parallel
1111
.. automodule:: monai.engines.multi_gpu_supervised_trainer
1212
:members:
1313

14-
1514
Workflows
1615
---------
1716

@@ -56,3 +55,8 @@ Workflows
5655
~~~~~~~~~~~~~~~~~~~
5756
.. autoclass:: EnsembleEvaluator
5857
:members:
58+
59+
Utilities
60+
---------
61+
.. automodule:: monai.engines.utils
62+
:members:

docs/source/metrics.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Metrics
88

99
`FROC`
1010
------
11+
.. autofunction:: compute_fp_tp_probs
12+
.. autofunction:: compute_froc_curve_data
1113
.. autofunction:: compute_froc_score
1214

1315
`Metric`
@@ -47,13 +49,15 @@ Metrics
4749
`Confusion matrix`
4850
------------------
4951
.. autofunction:: get_confusion_matrix
52+
.. autofunction:: compute_confusion_matrix_metric
5053

5154
.. autoclass:: ConfusionMatrixMetric
5255
:members:
5356

5457
`Hausdorff distance`
5558
--------------------
5659
.. autofunction:: compute_hausdorff_distance
60+
.. autofunction:: compute_percent_hausdorff_distance
5761

5862
.. autoclass:: HausdorffDistanceMetric
5963
:members:
@@ -89,3 +93,8 @@ Metrics
8993
--------------------
9094
.. autoclass:: CumulativeAverage
9195
:members:
96+
97+
Utilities
98+
---------
99+
.. automodule:: monai.metrics.utils
100+
:members:

docs/source/networks.rst

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Blocks
2121
:members:
2222

2323
`CRF`
24-
~~~~~~~~~~~~~
24+
~~~~~
2525
.. autoclass:: CRF
2626
:members:
2727

@@ -73,6 +73,8 @@ Blocks
7373
:members:
7474
.. autoclass:: UnetUpBlock
7575
:members:
76+
.. autoclass:: UnetOutBlock
77+
:members:
7678

7779
`SegResnet Block`
7880
~~~~~~~~~~~~~~~~~
@@ -254,6 +256,11 @@ Layers
254256
.. automodule:: monai.networks.layers.Conv
255257
:members:
256258

259+
`Pad`
260+
~~~~~
261+
.. automodule:: monai.networks.layers.Pad
262+
:members:
263+
257264
`Pool`
258265
~~~~~~
259266
.. automodule:: monai.networks.layers.Pool
@@ -300,7 +307,7 @@ Layers
300307
:members:
301308

302309
`PHLFilter`
303-
~~~~~~~~~~~~~~~~~
310+
~~~~~~~~~~~
304311
.. autoclass:: PHLFilter
305312

306313
`GaussianMixtureModel`
@@ -386,6 +393,11 @@ Nets
386393
.. autoclass:: EfficientNet
387394
:members:
388395

396+
`BlockArgs`
397+
~~~~~~~~~~~
398+
.. autoclass:: BlockArgs
399+
:members:
400+
389401
`EfficientNetBN`
390402
~~~~~~~~~~~~~~~~
391403
.. autoclass:: EfficientNetBN
@@ -406,6 +418,11 @@ Nets
406418
.. autoclass:: SegResNetVAE
407419
:members:
408420

421+
`ResNet`
422+
~~~~~~~~
423+
.. autoclass:: ResNet
424+
:members:
425+
409426
`SENet`
410427
~~~~~~~
411428
.. autoclass:: SENet
@@ -513,6 +530,11 @@ Nets
513530
.. autoclass:: FullyConnectedNet
514531
:members:
515532

533+
`VarFullyConnectedNet`
534+
~~~~~~~~~~~~~~~~~~~~~~
535+
.. autoclass:: VarFullyConnectedNet
536+
:members:
537+
516538
`Generator`
517539
~~~~~~~~~~~
518540
.. autoclass:: Generator

docs/source/optimizers.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ Optimizers
66
==========
77
.. currentmodule:: monai.optimizers
88

9+
`LearningRateFinder`
10+
--------------------
11+
.. autoclass:: LearningRateFinder
12+
:members:
13+
914
`Novograd`
1015
----------
1116
.. autoclass:: Novograd
@@ -14,3 +19,18 @@ Optimizers
1419
`Generate parameter groups`
1520
---------------------------
1621
.. autofunction:: generate_param_groups
22+
23+
`ExponentialLR`
24+
---------------
25+
.. autoclass:: ExponentialLR
26+
:members:
27+
28+
`LinearLR`
29+
----------
30+
.. autoclass:: LinearLR
31+
:members:
32+
33+
`WarmupCosineSchedule`
34+
----------------------
35+
.. autoclass:: WarmupCosineSchedule
36+
:members:

docs/source/transforms.rst

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ Generic Interfaces
4343
.. autoclass:: InvertibleTransform
4444
:members:
4545

46+
`TraceableTransform`
47+
^^^^^^^^^^^^^^^^^^^^
48+
.. autoclass:: TraceableTransform
49+
:members:
50+
4651
`BatchInverseTransform`
4752
^^^^^^^^^^^^^^^^^^^^^^^
4853
.. autoclass:: BatchInverseTransform
@@ -64,6 +69,12 @@ Vanilla Transforms
6469
Crop and Pad
6570
^^^^^^^^^^^^
6671

72+
`PadListDataCollate`
73+
""""""""""""""""""""
74+
.. autoclass:: PadListDataCollate
75+
:members:
76+
:special-members: __call__
77+
6778
`Pad`
6879
"""""
6980
.. autoclass:: Pad
@@ -395,6 +406,12 @@ Intensity
395406
:members:
396407
:special-members: __call__
397408

409+
`RandRicianNoise`
410+
"""""""""""""""""
411+
.. autoclass:: RandRicianNoise
412+
:members:
413+
:special-members: __call__
414+
398415
`RandCoarseTransform`
399416
"""""""""""""""""""""
400417
.. autoclass:: RandCoarseTransform
@@ -830,6 +847,12 @@ Utility
830847
:members:
831848
:special-members: __call__
832849

850+
`RemoveRepeatedChannel`
851+
"""""""""""""""""""""""
852+
.. autoclass:: RemoveRepeatedChannel
853+
:members:
854+
:special-members: __call__
855+
833856
`LabelToMask`
834857
"""""""""""""
835858
.. autoclass:: LabelToMask
@@ -1568,6 +1591,12 @@ Utility (Dict)
15681591
:members:
15691592
:special-members: __call__
15701593

1594+
`ToPIL`
1595+
"""""""
1596+
.. autoclass:: ToPIL
1597+
:members:
1598+
:special-members: __call__
1599+
15711600
`ToCupyd`
15721601
"""""""""
15731602
.. autoclass:: ToCupyd
@@ -1710,6 +1739,11 @@ Transform Adaptors
17101739
------------------
17111740
.. automodule:: monai.transforms.adaptors
17121741

1742+
`FunctionSignature`
1743+
^^^^^^^^^^^^^^^^^^^
1744+
.. autoclass:: FunctionSignature
1745+
:members:
1746+
17131747
`adaptor`
17141748
^^^^^^^^^
17151749
.. autofunction:: monai.transforms.adaptors.adaptor

docs/source/utils.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,28 @@ Type conversion
5151
---------------
5252
.. automodule:: monai.utils.type_conversion
5353
:members:
54+
55+
Decorators
56+
----------
57+
.. automodule:: monai.utils.decorators
58+
:members:
59+
60+
Distributed Data Parallel
61+
-------------------------
62+
.. automodule:: monai.utils.dist
63+
:members:
64+
65+
Enums
66+
-----
67+
.. automodule:: monai.utils.enums
68+
:members:
69+
70+
Jupyter Utilities
71+
-----------------
72+
.. automodule:: monai.utils.jupyter_utils
73+
:members:
74+
75+
State Cacher
76+
------------
77+
.. automodule:: monai.utils.state_cacher
78+
:members:

docs/source/visualize.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,8 @@ Occlusion sensitivity
2424

2525
.. automodule:: monai.visualize.occlusion_sensitivity
2626
:members:
27+
28+
Utilities
29+
---------
30+
.. automodule:: monai.visualize.utils
31+
:members:

monai/engines/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ class PrepareBatchExtraInput(PrepareBatch):
166166
167167
Args:
168168
extra_keys: if a string or list provided, every item is the key of extra data in current batch,
169-
and will pass the extra data to the network(*args) in order.
169+
and will pass the extra data to the `network(*args)` in order.
170170
If a dictionary is provided, every `{k, v}` pair is the key of extra data in current batch,
171-
`k` the param name in network, `v` is the key of extra data in current batch,
171+
`k` is the param name in network, `v` is the key of extra data in current batch,
172172
and will pass the `{k1: batch[v1], k2: batch[v2], ...}` as kwargs to the network.
173173
174174
"""

0 commit comments

Comments
 (0)