sps44 commited on
Commit
7ea897c
1 Parent(s): c39496d

fixed code in readme

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -94,7 +94,7 @@ Start exploring with a simple view that leverages embeddings to identify relevan
94
  from renumics import spotlight
95
 
96
  df = dataset.to_pandas()
97
- simple_layout = load_dataset_builder("renumics/dcase23-task2-enriched", "dev").get_layout(config="simple")
98
  spotlight.show(df, dtype={'path': spotlight.Audio, "embeddings_ast-finetuned-audioset-10-10-0.4593": spotlight.Embedding}, layout=simple_layout)
99
  ```
100
  You can use the UI to interactively configure the view on the data. Depending on the concrete taks (e.g. model comparison, debugging, outlier detection) you might want to leverage different enrichments and metadata.
@@ -105,7 +105,7 @@ In this example we focus on the valve class. We specifically look at normal data
105
  ```jupyterpython
106
  from renumics import spotlight
107
 
108
- extended_layout = load_dataset_builder("renumics/dcase23-task2-enriched", "dev").get_layout(config="extended")
109
  spotlight.show(df, dtype={'path': spotlight.Audio, "embeddings_ast-finetuned-audioset-10-10-0.4593": spotlight.Embedding}, layout=extended_layout)
110
  ```
111
 
 
94
  from renumics import spotlight
95
 
96
  df = dataset.to_pandas()
97
+ simple_layout = datasets.load_dataset_builder("renumics/dcase23-task2-enriched", "dev").config.get_layout(config="simple")
98
  spotlight.show(df, dtype={'path': spotlight.Audio, "embeddings_ast-finetuned-audioset-10-10-0.4593": spotlight.Embedding}, layout=simple_layout)
99
  ```
100
  You can use the UI to interactively configure the view on the data. Depending on the concrete taks (e.g. model comparison, debugging, outlier detection) you might want to leverage different enrichments and metadata.
 
105
  ```jupyterpython
106
  from renumics import spotlight
107
 
108
+ extended_layout = datasets.load_dataset_builder("renumics/dcase23-task2-enriched", "dev").config.get_layout(config="extended")
109
  spotlight.show(df, dtype={'path': spotlight.Audio, "embeddings_ast-finetuned-audioset-10-10-0.4593": spotlight.Embedding}, layout=extended_layout)
110
  ```
111