Syoy commited on
Commit
de3dd6c
1 Parent(s): 2351115

overwrite README

Browse files
Files changed (1) hide show
  1. README.md +12 -6
README.md CHANGED
@@ -25,6 +25,7 @@ tags:
25
 
26
  ## Table of contents
27
 
 
28
  - [Dataset Description](#dataset-description)
29
  - [Dataset Summary](#dataset-summary)
30
  - [Explore the data with Spotlight](#explore-the-data-with-spotlight)
@@ -57,9 +58,11 @@ tags:
57
 
58
  ### Dataset Summary
59
 
60
- [//]: # (todo: verantwortlichkeit)
61
 
62
- ### Explore the data with Spotlight
 
 
63
 
64
  ![Analyze DCASE23 Task 2 with Spotlight](data/preview_dcase.png "Analyze DCASE23 Task 2 with Spotlight")
65
 
@@ -73,13 +76,16 @@ and simply run the following codeblock:
73
  from datasets import load_dataset, load_dataset_builder
74
  from renumics import spotlight
75
 
76
- ds = load_dataset("dcase23-task2-enriched.py", "dev", split="all", streaming=False)
77
- db = load_dataset_builder("dcase23-task2-enriched.py", "dev")
78
 
79
- df = db.config.to_spotlight(ds)
80
- spotlight.show(df, dtype={'audio': spotlight.Audio, "ast-finetuned-audioset-10-10-0.4593-embeddings": spotlight.Embedding}, layout=db.config.get_layout())
81
  ```
82
 
 
 
 
83
  ## Dataset Structure
84
 
85
  ### Data Instances
 
25
 
26
  ## Table of contents
27
 
28
+ [//]: # (todo: create new)
29
  - [Dataset Description](#dataset-description)
30
  - [Dataset Summary](#dataset-summary)
31
  - [Explore the data with Spotlight](#explore-the-data-with-spotlight)
 
58
 
59
  ### Dataset Summary
60
 
61
+ This dataset ...
62
 
63
+ [//]: # (todo: verantwortlichkeit/attribution)
64
+
65
+ ### Explore DCASE23 Task 2 with Spotlight
66
 
67
  ![Analyze DCASE23 Task 2 with Spotlight](data/preview_dcase.png "Analyze DCASE23 Task 2 with Spotlight")
68
 
 
76
  from datasets import load_dataset, load_dataset_builder
77
  from renumics import spotlight
78
 
79
+ dataset = load_dataset("renumics/dcase23-task2-enriched", "dev", split="all", streaming=False)
80
+ ds_builder = load_dataset_builder("renumics/dcase23-task2-enriched", "dev")
81
 
82
+ df = ds_builder.config.to_spotlight(dataset)
83
+ spotlight.show(df, dtype={'audio': spotlight.Audio, "ast-finetuned-audioset-10-10-0.4593-embeddings": spotlight.Embedding}, layout=ds_builder.config.get_layout(config="standard"))
84
  ```
85
 
86
+ [//]: # (todo: how2 -> dataset -> spotlight)
87
+ [//]: # (todo: spotlight)
88
+
89
  ## Dataset Structure
90
 
91
  ### Data Instances