Skip to content

Commit

Permalink
Add Python training dataset API reference (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
SirOibaf authored Jan 13, 2021
1 parent 880366e commit b2a7e0b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
11 changes: 11 additions & 0 deletions auto_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,17 @@
),
"fg_methods": keras_autodoc.get_methods("hsfs.feature_group.FeatureGroup"),
},
"api/training_dataset_api.md": {
"td": ["hsfs.training_dataset.TrainingDataset"],
"td_create": ["hsfs.feature_store.FeatureStore.create_training_dataset"],
"td_get": ["hsfs.feature_store.FeatureStore.get_training_dataset"],
"td_properties": keras_autodoc.get_properties(
"hsfs.training_dataset.TrainingDataset"
),
"td_methods": keras_autodoc.get_methods(
"hsfs.training_dataset.TrainingDataset"
),
},
"api/feature_api.md": {
"feature": ["hsfs.feature.Feature"],
"feature_properties": keras_autodoc.get_properties("hsfs.feature.Feature"),
Expand Down
19 changes: 19 additions & 0 deletions docs/templates/api/training_dataset_api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Training Dataset

{{td}}

## Creation

{{td_create}}

## Retrieval

{{td_get}}

## Properties

{{td_properties}}

## Methods

{{td_methods}}
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ nav:
- Connection: generated/api/connection_api.md
- FeatureStore: generated/api/feature_store_api.md
- FeatureGroup: generated/api/feature_group_api.md
- TrainingDataset: generated/api/training_dataset_api.md
- Storage Connector: generated/api/storage_connector_api.md
- Feature: generated/api/feature_api.md
- Contributing: CONTRIBUTING.md
Expand Down

0 comments on commit b2a7e0b

Please sign in to comment.