Skip to content

Commit e02c046

Browse files
authored
provide docs II
1 parent e3330b5 commit e02c046

12 files changed

+892
-823
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
exclude: '^(src/mostlyai/qa/assets)/'
2+
exclude: '^(src/mostlyai/qa/assets|examples)/'
33
repos:
44
- repo: local
55
hooks:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ examples: ## run all examples
2929
# Targets for Release Workflow/Automation
3030
.PHONY: release-pypi bump-version update-vars-version build confirm-upload upload clean-dist docs
3131

32-
release-pypi: clean-dist build upload ## release pypi: build, check and upload to pypi
32+
release-pypi: clean-dist build upload docs ## release pypi: build, check and upload to pypi
3333

3434
# Default files to update
3535
PYPROJECT_TOML = pyproject.toml

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ report_path, metrics = qa.report(
8383

8484
## Sample Reports
8585

86-
* **[Baseball Players](https://html-preview.github.io/?url=https://github.com/mostly-ai/mostlyai-qa/blob/main/examples/baseball-players.html)** (Flat Data)
87-
* **[Baseball Seasons](https://html-preview.github.io/?url=https://github.com/mostly-ai/mostlyai-qa/blob/main/examples/baseball-seasons-with-context.html)** (Sequential Data)
86+
* [Baseball Players](https://html-preview.github.io/?url=https://github.com/mostly-ai/mostlyai-qa/blob/main/examples/baseball-players.html) (Flat Data)
87+
* [Baseball Seasons](https://html-preview.github.io/?url=https://github.com/mostly-ai/mostlyai-qa/blob/main/examples/baseball-seasons-with-context.html) (Sequential Data)
8888

8989
## Citation
9090

docs/examples.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ report_path, metrics = report(
7171
syn_tgt_data=pd.read_parquet(f"{repo}/{path}/synthetic-target.pqt"),
7272
trn_tgt_data=pd.read_parquet(f"{repo}/{path}/training-target.pqt"),
7373
hol_tgt_data=pd.read_parquet(f"{repo}/{path}/holdout-target.pqt"),
74+
tgt_context_key="players_id",
7475
report_subtitle=" for Baseball Seasons",
7576
report_path="baseball-seasons.html",
7677
)
@@ -98,7 +99,7 @@ report_path, metrics = report(
9899
trn_ctx_data=pd.read_parquet(f"{repo}/{path}/training-context.pqt"),
99100
hol_tgt_data=pd.read_parquet(f"{repo}/{path}/holdout-target.pqt"),
100101
hol_ctx_data=pd.read_parquet(f"{repo}/{path}/holdout-context.pqt"),
101-
tgt_context_key="id",
102+
tgt_context_key="players_id",
102103
ctx_primary_key="id",
103104
report_subtitle=" for Baseball Seasons",
104105
report_path="baseball-seasons-with-context.html",

docs/favicon.png

114 KB
Loading

examples/baseball-players-with-context.html

Lines changed: 161 additions & 160 deletions
Large diffs are not rendered by default.

examples/baseball-players.html

Lines changed: 171 additions & 170 deletions
Large diffs are not rendered by default.

examples/baseball-seasons-with-context.html

Lines changed: 286 additions & 285 deletions
Large diffs are not rendered by default.

examples/baseball-seasons.html

Lines changed: 201 additions & 200 deletions
Large diffs are not rendered by default.

mkdocs.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ repo_name: "mostly-ai/mostly-python"
44
theme:
55
name: material
66
logo: logo.png
7+
favicon: favicon.png
78

89
palette:
910
- media: "(prefers-color-scheme)"
@@ -31,8 +32,8 @@ theme:
3132
features:
3233
- navigation.instant
3334
- navigation.instant.prefetch
34-
- navigation.tabs
35-
- navigation.tabs.sticky
35+
# - navigation.tabs
36+
# - navigation.tabs.sticky
3637
- search.suggest
3738
- search.highlight
3839
- search.share
@@ -51,9 +52,13 @@ nav:
5152
- API Reference: api.md
5253
- Examples: examples.md
5354

55+
extra:
56+
version:
57+
provider: mike
5458

5559
plugins:
5660
- search
61+
- mike
5762
- mkdocstrings:
5863
handlers:
5964
python:

0 commit comments

Comments
 (0)