Skip to content

Commit 27547b2

Browse files
tomvdwThe TensorFlow Datasets Authors
authored and
The TensorFlow Datasets Authors
committed
Automated documentation update.
PiperOrigin-RevId: 736854320
1 parent 42ffa0f commit 27547b2

File tree

3 files changed

+79
-10
lines changed

3 files changed

+79
-10
lines changed

docs/catalog/asimov_multimodal_auto_val.md

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,17 @@ instructions can be desirable or undesirable (validation set).
3030

3131
* **Download size**: `Unknown size`
3232

33-
* **Dataset size**: `Unknown size`
33+
* **Dataset size**: `29.03 MiB`
3434

3535
* **Auto-cached**
3636
([documentation](https://www.tensorflow.org/datasets/performances#auto-caching)):
37-
Unknown
37+
Yes
3838

3939
* **Splits**:
4040

41-
Split | Examples
42-
:---- | -------:
41+
Split | Examples
42+
:------ | -------:
43+
`'val'` | 50
4344

4445
* **Feature structure**:
4546

@@ -97,7 +98,40 @@ original_image
9798

9899
* **Examples**
99100
([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):
100-
Missing.
101+
102+
<!-- mdformat off(HTML should not be auto-formatted) -->
103+
104+
{% framebox %}
105+
106+
<button id="displaydataframe">Display examples...</button>
107+
<div id="dataframecontent" style="overflow-x:auto"></div>
108+
<script>
109+
const url = "https://storage.googleapis.com/tfds-data/visualization/dataframe/asimov_multimodal_auto_val-0.1.0.html";
110+
const dataButton = document.getElementById('displaydataframe');
111+
dataButton.addEventListener('click', async () => {
112+
// Disable the button after clicking (dataframe loaded only once).
113+
dataButton.disabled = true;
114+
115+
const contentPane = document.getElementById('dataframecontent');
116+
try {
117+
const response = await fetch(url);
118+
// Error response codes don't throw an error, so force an error to show
119+
// the error message.
120+
if (!response.ok) throw Error(response.statusText);
121+
122+
const data = await response.text();
123+
contentPane.innerHTML = data;
124+
} catch (e) {
125+
contentPane.innerHTML =
126+
'Error loading examples. If the error persist, please open '
127+
+ 'a new issue.';
128+
}
129+
});
130+
</script>
131+
132+
{% endframebox %}
133+
134+
<!-- mdformat on -->
101135

102136
* **Citation**:
103137

docs/catalog/asimov_multimodal_manual_val.md

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,17 @@ looking at the image (validation set)
3030

3131
* **Download size**: `Unknown size`
3232

33-
* **Dataset size**: `Unknown size`
33+
* **Dataset size**: `240.71 MiB`
3434

3535
* **Auto-cached**
3636
([documentation](https://www.tensorflow.org/datasets/performances#auto-caching)):
37-
Unknown
37+
Only when `shuffle_files=False` (val)
3838

3939
* **Splits**:
4040

41-
Split | Examples
42-
:---- | -------:
41+
Split | Examples
42+
:------ | -------:
43+
`'val'` | 59
4344

4445
* **Feature structure**:
4546

@@ -97,7 +98,40 @@ original_image
9798

9899
* **Examples**
99100
([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)):
100-
Missing.
101+
102+
<!-- mdformat off(HTML should not be auto-formatted) -->
103+
104+
{% framebox %}
105+
106+
<button id="displaydataframe">Display examples...</button>
107+
<div id="dataframecontent" style="overflow-x:auto"></div>
108+
<script>
109+
const url = "https://storage.googleapis.com/tfds-data/visualization/dataframe/asimov_multimodal_manual_val-0.1.0.html";
110+
const dataButton = document.getElementById('displaydataframe');
111+
dataButton.addEventListener('click', async () => {
112+
// Disable the button after clicking (dataframe loaded only once).
113+
dataButton.disabled = true;
114+
115+
const contentPane = document.getElementById('dataframecontent');
116+
try {
117+
const response = await fetch(url);
118+
// Error response codes don't throw an error, so force an error to show
119+
// the error message.
120+
if (!response.ok) throw Error(response.statusText);
121+
122+
const data = await response.text();
123+
contentPane.innerHTML = data;
124+
} catch (e) {
125+
contentPane.innerHTML =
126+
'Error loading examples. If the error persist, please open '
127+
+ 'a new issue.';
128+
}
129+
});
130+
</script>
131+
132+
{% endframebox %}
133+
134+
<!-- mdformat on -->
101135

102136
* **Citation**:
103137

docs/catalog/overview.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ This file is automatically generated by tfds.scripts.documentation.document_data
33
and all modifications will be erased, please edit the
44
original document_datasets.py file.
55
-->
6+
67
# Datasets
78

89
Note: The datasets documented here are from `HEAD` and so not all are available

0 commit comments

Comments
 (0)