Skip to content

Commit 68a7431

Browse files
authored
Fix up docs for neptune-query (#397)
* fix Filter docstring * fix typo * add note of Runs API
1 parent 26d948f commit 68a7431

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

README-neptune-query.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ Available functions:
4343
- `list_experiments()` – names of experiments in the target project.
4444
- `set_api_token()` – set the Neptune API token to use for the session.
4545

46+
> To use the corresponding methods for runs, import the Runs API:
47+
>
48+
> ```python
49+
> import neptune_query.runs as nq_runs
50+
> ```
51+
>
52+
> You can use these methods to target individual runs by ID instead of experiment runs by name.
53+
4654
### Example 1: Fetch metric values
4755
4856
To fetch values at each step, use `fetch_metrics()`.

src/neptune_query/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def download_files(
378378
379379
- For file series, use `fetch_series()` to specify the content containing the files
380380
and pass the output to the `files` argument.
381-
- For invdividually assigned files, use `fetch_experiments_table()`.
381+
- For individually assigned files, use `fetch_experiments_table()`.
382382
383383
Args:
384384
project: Path of the Neptune project, as `WorkspaceName/ProjectName`.

src/neptune_query/filters.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,22 +214,25 @@ def __str__(self) -> str:
214214
class Filter:
215215
"""Specifies criteria for experiments or attributes when using a fetching method.
216216
217+
For regular expressions, the extended syntax is supported.
218+
For details, see https://docs.neptune.ai/regex/#compound-expressions
219+
217220
Examples of filters:
218-
- Name or attribute value must match regular expression.
221+
- Name or attribute value must match a regex.
219222
- Attribute value must pass a condition, like "greater than 0.9".
220223
- Attribute of a given name must exist.
221224
222225
You can negate a filter or join multiple filters with logical operators.
223226
224227
Methods available for attribute values:
225-
- `name()`: Experiment name matches an extended regular expression or a list of names
228+
- `name()`: Experiment name matches a regex or a list of names
226229
- `eq()`: Attribute value equals
227230
- `ne()`: Attribute value doesn't equal
228231
- `gt()`: Attribute value is greater than
229232
- `ge()`: Attribute value is greater than or equal to
230233
- `lt()`: Attribute value is less than
231234
- `le()`: Attribute value is less than or equal to
232-
- `matches()`: Experiment name matches an extended regular expression
235+
- `matches()`: String attribute value matches a regex
233236
- `contains_all()`: Tagset contains all tags, or string contains substrings
234237
- `contains_none()`: Tagset doesn't contain any of the tags, or string doesn't contain the substrings
235238
- `exists()`: Attribute exists

src/neptune_query/runs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def download_files(
367367
368368
- For file series, use `fetch_series()` to specify the content containing the files
369369
and pass the output to the `files` argument.
370-
- For invdividually assigned files, use `fetch_runs_table()`.
370+
- For individually assigned files, use `fetch_runs_table()`.
371371
372372
Args:
373373
project: Path of the Neptune project, as `WorkspaceName/ProjectName`.

0 commit comments

Comments
 (0)