Skip to content

Commit bc4c61f

Browse files
gustavocidornelaswhoseoyster
authored andcommitted
fixes duplication issue with numpydocs and autosummary
1 parent 85212e2 commit bc4c61f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"sphinx.ext.autosummary",
4848
"numpydoc",
4949
]
50+
numpydoc_show_class_members = False # avoids producing two summaries for each class with numpydoc
5051

5152
# Add any paths that contain templates here, relative to this directory.
5253
templates_path = ["_templates"]

unboxapi/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,9 @@ def add_model(
8585
Prediction function object in expected format
8686
8787
.. note::
88-
8988
On the Unbox platform, running inference with the model corresponds to calling ``function``. Therefore,
9089
expect the latency of model calls in the platform to be similar to that of calling ``function`` on a CPU.
91-
Preparing ``function`` to work with batches of data can improve latency.
92-
90+
Preparing ``function`` to work with batches of data can improve latency.
9391
model :
9492
Model object
9593
model_type : :obj:`ModelType`
@@ -119,7 +117,7 @@ def add_model(
119117
This is used to support explainability features.
120118
train_sample_label_column_name : str
121119
Column header in train_sample_df containing the labels
122-
categorical_features_map : Dict[str
120+
categorical_features_map : Dict[str]
123121
A dict containing a list of category names for each feature that is categorical.
124122
ex. {'Weather': ['Hot', 'Cold']}
125123
**kwargs

0 commit comments

Comments
 (0)