tuatruog commited on
Commit
03e1b05
·
verified ·
1 Parent(s): 49ae750

Update sample code

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -38,7 +38,7 @@ Then `cd SBI-16-3D` and start python like:
38
 
39
  ```python
40
  from datasets import load_dataset
41
- dataset = load_dataset("./SBI-16-2D.py", "tiny", data_dir="./data/", streaming=True, trust_remote_code=True)
42
  ds = dataset.with_format("np")
43
  ```
44
 
@@ -69,6 +69,6 @@ Then in your python script:
69
 
70
  ```python
71
  from datasets import load_dataset
72
- dataset = load_dataset("AstroCompress/SBI-16-2D", "tiny", streaming=True, trust_remote_code=True)
73
  ds = dataset.with_format("np")
74
  ```
 
38
 
39
  ```python
40
  from datasets import load_dataset
41
+ dataset = load_dataset("./SBI-16-2D.py", "tiny", data_dir="./data/", writer_batch_size=1, trust_remote_code=True)
42
  ds = dataset.with_format("np")
43
  ```
44
 
 
69
 
70
  ```python
71
  from datasets import load_dataset
72
+ dataset = load_dataset("AstroCompress/SBI-16-2D", "tiny", writer_batch_size=1, trust_remote_code=True)
73
  ds = dataset.with_format("np")
74
  ```