Skip to content

Commit 84d03ff

Browse files
authored
Merge pull request #146 from rstudio/example-examples
Changing language from "Example" to "Examples" for docstrings
2 parents bcbab9c + df01ddd commit 84d03ff

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

vetiver/monitor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def compute_metrics(
3131
estimate:
3232
Column name for predicted results
3333
34-
Example
34+
Examples
3535
-------
3636
>>> from datetime import timedelta
3737
>>> import pandas as pd
@@ -115,7 +115,7 @@ def pin_metrics(
115115
If False, error when the new metrics contain overlapping dates with
116116
the existing pin.
117117
118-
Example
118+
Examples
119119
-------
120120
>>> import pins
121121
>>> import vetiver
@@ -215,7 +215,7 @@ def plot_metrics(
215215
n: str
216216
Column in `df_metrics` containing number of observations
217217
218-
Example
218+
Examples
219219
-------
220220
>>> import vetiver
221221
>>> import pandas as pd

vetiver/pin_read_write.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def vetiver_pin_write(board, model: VetiverModel, versioned: bool = True):
3232
versioned: bool
3333
Whether or not the pin should be versioned
3434
35-
Example
35+
Examples
3636
-------
3737
>>> import vetiver
3838
>>> from pins import board_temp

vetiver/rsconnect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def deploy_rsconnect(
5454
image : str
5555
Docker image to be specified for off-host execution
5656
57-
Example
57+
Examples
5858
-------
5959
>>> import vetiver
6060
>>> import pins

vetiver/server.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class VetiverAPI:
2929
**kwargs: dict
3030
Deprecated parameters.
3131
32-
Example
32+
Examples
3333
-------
3434
>>> import vetiver as vt
3535
>>> X, y = vt.get_mock_data()
@@ -150,7 +150,7 @@ def vetiver_post(self, endpoint_fx: Callable, endpoint_name: str = None, **kw):
150150
endpoint_name : str
151151
Name of endpoint
152152
153-
Example
153+
Examples
154154
-------
155155
>>> import vetiver as vt
156156
>>> X, y = vt.get_mock_data()
@@ -199,7 +199,7 @@ def run(self, port: int = 8000, host: str = "127.0.0.1", **kw):
199199
host : str
200200
A valid IPv4 or IPv6 address, which the application will listen on.
201201
202-
Example
202+
Examples
203203
-------
204204
>>> import vetiver as vt
205205
>>> X, y = vt.get_mock_data()
@@ -244,7 +244,7 @@ def predict(endpoint, data: Union[dict, pd.DataFrame, pd.Series], **kw) -> pd.Da
244244
dict
245245
Endpoint_name and list of endpoint_fx output
246246
247-
Example
247+
Examples
248248
-------
249249
>>> import vetiver
250250
>>> X, y = vetiver.get_mock_data()
@@ -316,7 +316,7 @@ def vetiver_endpoint(url: str = "http://127.0.0.1:8000/predict") -> str:
316316
url : str
317317
URI path to endpoint
318318
319-
Example
319+
Examples
320320
-------
321321
>>> import vetiver
322322
>>> endpoint = vetiver.vetiver_endpoint(url='http://127.0.0.1:8000/predict')

vetiver/vetiver_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class VetiverModel:
5454
5555
5656
57-
Example
57+
Examples
5858
-------
5959
>>> from vetiver import mock, VetiverModel
6060
>>> X, y = mock.get_mock_data()

vetiver/write_docker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def write_docker(
4747
port: str
4848
Port to run VetiverAPI from Dockerfile
4949
50-
Example
50+
Examples
5151
-------
5252
>>> import vetiver
5353
>>> import tempfile

vetiver/write_fastapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def write_app(
6767
file :
6868
Name of file
6969
70-
Example
70+
Examples
7171
-------
7272
>>> import vetiver
7373
>>> import tempfile

0 commit comments

Comments
 (0)