Skip to content

Commit

Permalink
style(data): 更新数据集路径
Browse files Browse the repository at this point in the history
  • Loading branch information
zjZSTU committed May 5, 2020
1 parent b9374bc commit f16c6fa
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/示例.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ from pynet.vision import Draw
## 创建数据集并进行预处理

```
data_path = '/home/zj/data/decompress_mnist'
data_path = '~/data/decompress_mnist'
x_train, x_test, y_train, y_test = mnist.load_mnist(data_path, shuffle=True, is_flatten=True)
Expand Down
3 changes: 1 addition & 2 deletions examples/2_nn_mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
from pynet.vision.data import mnist
from pynet.vision import Draw

data_path = '/home/zj/data/decompress_mnist'
# data_path = '/home/lab305/Documents/zj/data/mnist'
data_path = '~/data/decompress_mnist'

if __name__ == '__main__':
x_train, x_test, y_train, y_test = mnist.load_mnist(data_path, shuffle=True, is_flatten=True)
Expand Down
2 changes: 1 addition & 1 deletion examples/3_nn_cifar10.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import pynet.nn as nn
from pynet.vision import Draw

data_path = '/home/lab305/Documents/zj/data/cifar_10/cifar-10-batches-py'
data_path = '~/data/cifar_10/cifar-10-batches-py'

if __name__ == '__main__':
data_dict = cifar.get_CIFAR10_data(data_path)
Expand Down
2 changes: 1 addition & 1 deletion examples/3_nn_iris.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from pynet.vision.data import iris
from pynet.vision import Draw

data_path = '/home/zj/data/iris-species/Iris.csv'
data_path = '~/data/iris-species/Iris.csv'

if __name__ == '__main__':
x_train, x_test, y_train, y_test = iris.load_iris(data_path, shuffle=True, tsize=0.8)
Expand Down
2 changes: 1 addition & 1 deletion examples/3_nn_mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from pynet.vision.data import mnist
from pynet.vision import Draw

data_path = '/home/zj/data/decompress_mnist'
data_path = '~/data/decompress_mnist'

if __name__ == '__main__':
x_train, x_test, y_train, y_test = mnist.load_mnist(data_path, shuffle=True, is_flatten=True)
Expand Down
2 changes: 1 addition & 1 deletion examples/3_nn_orl.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from pynet.vision.data import orl
from pynet.vision import Draw

data_path = '/home/zj/data/att_faces_png'
data_path = '~/data/att_faces_png'

if __name__ == '__main__':
x_train, x_test, y_train, y_test = orl.load_orl(data_path, shuffle=True)
Expand Down
3 changes: 1 addition & 2 deletions examples/lenet5_mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
from pynet.vision.data import mnist
from pynet.vision import Draw

# data_path = '/home/zj/data/decompress_mnist'
data_path = '/home/lab305/Documents/zj/data/mnist'
data_path = '~/data/decompress_mnist'

if __name__ == '__main__':
x_train, x_test, y_train, y_test = mnist.load_mnist(data_path, dst_size=(32, 32), shuffle=True)
Expand Down
2 changes: 1 addition & 1 deletion examples/nin_cifar10.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import numpy as np
import time

data_path = '/home/lab305/Documents/data/decompress_cifar_10'
data_path = '~/data/decompress_cifar_10'

epochs = 100
batch_size = 128
Expand Down

0 comments on commit f16c6fa

Please sign in to comment.