koba-jon's picture
Update README.md
ad0b7ae verified
|
Raw History Blame Contribute Delete
1.3 kB
---
license: mit
language:
- en
size_categories:
- 100K<n<1M
---
# Normal Distribution Dataset
1-dimensional shape dataset generated by random numbers of normal distribution
## 1. Usage
### (1) Original Dataset
#### Get
```
$ git clone https://huggingface.co/datasets/koba-jon/normal_distribution_dataset
$ cd normal_distribution_dataset/NormalDistribution
$ ls -l
```
#### Hierarchy
- train : training data (100,000 pieces) of 300 dimensions
```
train
|--0
|--00000.dat
|--00001.dat
| ...
|--09999.dat
|--1
| ...
|--9
|--90000.dat
|--90001.dat
| ...
|--99999.dat
```
- test : test data (1,000 pieces) of 300 dimensions
```
test
|--000.dat
|--001.dat
| ...
|--999.dat
```
### (2) Create Dataset
```
$ sudo apt install python3 python3-pip
$ pip3 install numpy
```
```
$ vi scripts/create.sh
```
`--dir` : output directory <br>
`--num` : total number of data <br>
`--dim` : dimensions on one data <br>
`--list` : list of mean and standard deviation of normal distribution <br>
`--seed` : seed of random number <br>
```
#!/bin/bash
MODE='create'
SCRIPT_DIR=$(cd $(dirname $0); pwd)
python3 ${SCRIPT_DIR}/create.py \
--dir "./NormalDistribution/${MODE}" \
--num 100 \
--dim 300 \
--list "./list/params.txt" \
--seed 0
```
```
$ sh scripts/create.sh
```