python
Operating environment
GeForce GTX 1070 (8GB)
ASRock Z170M Pro4S [Intel Z170chipset]
Ubuntu 14.04 LTS desktop amd64
TensorFlow v0.11
cuDNN v5.1 for Linux
CUDA v8.0
Python 2.7.6
IPython 5.1.0 -- An enhanced Interactive Python.
Create the following csv file
--First column: 1 to 100 --Second row: 501 to 600
prep_seq_data.py
import numpy as np
numdata=100
x_data = np.linspace(1,100,100)
y_data = np.linspace(501,600,100)
#print(x_data)
#print(y_data)
for xs, ys in zip(x_data, y_data):
print '%d,%d' % (xs, ys)
result
$ python prep_seq_data.py > input2.csv
$ head input2.csv
1,501
2,502
3,503
4,504
5,505
6,506
7,507
8,508
9,509
10,510
$ tail input2.csv
91,591
92,592
93,593
94,594
95,595
96,596
97,597
98,598
99,599
100,600
Recommended Posts