Skip to content

Commit a01716d

Browse files
skyer9hunkim
authored andcommitted
modify list indentation style. (hunkim#128)
1 parent 8f59ee8 commit a01716d

10 files changed

+116
-28
lines changed

lab-04-2-multi_variable_matmul_linear_regression.py

+10-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@
22
import tensorflow as tf
33
tf.set_random_seed(777) # for reproducibility
44

5-
x_data = [[73., 80., 75.], [93., 88., 93.],
6-
[89., 91., 90.], [96., 98., 100.], [73., 66., 70.]]
7-
y_data = [[152.], [185.], [180.], [196.], [142.]]
5+
x_data = [[73., 80., 75.],
6+
[93., 88., 93.],
7+
[89., 91., 90.],
8+
[96., 98., 100.],
9+
[73., 66., 70.]]
10+
y_data = [[152.],
11+
[185.],
12+
[180.],
13+
[196.],
14+
[142.]]
815

916

1017
# placeholders for a tensor that will be always fed.

lab-05-1-logistic_regression.py

+12-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,18 @@
22
import tensorflow as tf
33
tf.set_random_seed(777) # for reproducibility
44

5-
x_data = [[1, 2], [2, 3], [3, 1], [4, 3], [5, 3], [6, 2]]
6-
y_data = [[0], [0], [0], [1], [1], [1]]
5+
x_data = [[1, 2],
6+
[2, 3],
7+
[3, 1],
8+
[4, 3],
9+
[5, 3],
10+
[6, 2]]
11+
y_data = [[0],
12+
[0],
13+
[0],
14+
[1],
15+
[1],
16+
[1]]
717

818
# placeholders for a tensor that will be always fed.
919
X = tf.placeholder(tf.float32, shape=[None, 2])

lab-06-1-softmax_classifier.py

+16-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,22 @@
22
import tensorflow as tf
33
tf.set_random_seed(777) # for reproducibility
44

5-
x_data = [[1, 2, 1, 1], [2, 1, 3, 2], [3, 1, 3, 4], [4, 1, 5, 5],
6-
[1, 7, 5, 5], [1, 2, 5, 6], [1, 6, 6, 6], [1, 7, 7, 7]]
7-
y_data = [[0, 0, 1], [0, 0, 1], [0, 0, 1], [0, 1, 0],
8-
[0, 1, 0], [0, 1, 0], [1, 0, 0], [1, 0, 0]]
5+
x_data = [[1, 2, 1, 1],
6+
[2, 1, 3, 2],
7+
[3, 1, 3, 4],
8+
[4, 1, 5, 5],
9+
[1, 7, 5, 5],
10+
[1, 2, 5, 6],
11+
[1, 6, 6, 6],
12+
[1, 7, 7, 7]]
13+
y_data = [[0, 0, 1],
14+
[0, 0, 1],
15+
[0, 0, 1],
16+
[0, 1, 0],
17+
[0, 1, 0],
18+
[0, 1, 0],
19+
[1, 0, 0],
20+
[1, 0, 0]]
921

1022
X = tf.placeholder("float", [None, 4])
1123
Y = tf.placeholder("float", [None, 3])

lab-07-1-learning_rate_and_evaluation.py

+22-6
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,31 @@
22
import tensorflow as tf
33
tf.set_random_seed(777) # for reproducibility
44

5-
x_data = [[1, 2, 1], [1, 3, 2], [1, 3, 4], [1, 5, 5],
6-
[1, 7, 5], [1, 2, 5], [1, 6, 6], [1, 7, 7]]
7-
y_data = [[0, 0, 1], [0, 0, 1], [0, 0, 1], [0, 1, 0],
8-
[0, 1, 0], [0, 1, 0], [1, 0, 0], [1, 0, 0]]
5+
x_data = [[1, 2, 1],
6+
[1, 3, 2],
7+
[1, 3, 4],
8+
[1, 5, 5],
9+
[1, 7, 5],
10+
[1, 2, 5],
11+
[1, 6, 6],
12+
[1, 7, 7]]
13+
y_data = [[0, 0, 1],
14+
[0, 0, 1],
15+
[0, 0, 1],
16+
[0, 1, 0],
17+
[0, 1, 0],
18+
[0, 1, 0],
19+
[1, 0, 0],
20+
[1, 0, 0]]
921

1022

1123
# Evaluation our model using this test dataset
12-
x_test = [[2, 1, 1], [3, 1, 2], [3, 3, 4]]
13-
y_test = [[0, 0, 1], [0, 0, 1], [0, 0, 1]]
24+
x_test = [[2, 1, 1],
25+
[3, 1, 2],
26+
[3, 3, 4]]
27+
y_test = [[0, 0, 1],
28+
[0, 0, 1],
29+
[0, 0, 1]]
1430

1531
X = tf.placeholder("float", [None, 3])
1632
Y = tf.placeholder("float", [None, 3])

lab-09-1-xor.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,16 @@
44
import numpy as np
55
tf.set_random_seed(777) # for reproducibility
66

7-
x_data = np.array([[0, 0], [0, 1], [1, 0], [1, 1]], dtype=np.float32)
8-
y_data = np.array([[0], [1], [1], [0]], dtype=np.float32)
7+
x_data = [[0, 0],
8+
[0, 1],
9+
[1, 0],
10+
[1, 1]]
11+
y_data = [[0],
12+
[1],
13+
[1],
14+
[0]]
15+
x_data = np.array(x_data, dtype=np.float32)
16+
y_data = np.array(y_data, dtype=np.float32)
917

1018
X = tf.placeholder(tf.float32, [None, 2])
1119
Y = tf.placeholder(tf.float32, [None, 1])

lab-09-2-xor-nn.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,16 @@
44
import numpy as np
55
tf.set_random_seed(777) # for reproducibility
66

7-
x_data = np.array([[0, 0], [0, 1], [1, 0], [1, 1]], dtype=np.float32)
8-
y_data = np.array([[0], [1], [1], [0]], dtype=np.float32)
7+
x_data = [[0, 0],
8+
[0, 1],
9+
[1, 0],
10+
[1, 1]]
11+
y_data = [[0],
12+
[1],
13+
[1],
14+
[0]]
15+
x_data = np.array(x_data, dtype=np.float32)
16+
y_data = np.array(y_data, dtype=np.float32)
917

1018
X = tf.placeholder(tf.float32, [None, 2])
1119
Y = tf.placeholder(tf.float32, [None, 1])

lab-09-3-xor-nn-wide-deep.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,16 @@
44
import numpy as np
55
tf.set_random_seed(777) # for reproducibility
66

7-
x_data = np.array([[0, 0], [0, 1], [1, 0], [1, 1]], dtype=np.float32)
8-
y_data = np.array([[0], [1], [1], [0]], dtype=np.float32)
7+
x_data = [[0, 0],
8+
[0, 1],
9+
[1, 0],
10+
[1, 1]]
11+
y_data = [[0],
12+
[1],
13+
[1],
14+
[0]]
15+
x_data = np.array(x_data, dtype=np.float32)
16+
y_data = np.array(y_data, dtype=np.float32)
917

1018
X = tf.placeholder(tf.float32, [None, 2])
1119
Y = tf.placeholder(tf.float32, [None, 1])

lab-09-4-xor_tensorboard.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,16 @@
44
import numpy as np
55
tf.set_random_seed(777) # for reproducibility
66

7-
x_data = np.array([[0, 0], [0, 1], [1, 0], [1, 1]], dtype=np.float32)
8-
y_data = np.array([[0], [1], [1], [0]], dtype=np.float32)
7+
x_data = [[0, 0],
8+
[0, 1],
9+
[1, 0],
10+
[1, 1]]
11+
y_data = [[0],
12+
[1],
13+
[1],
14+
[0]]
15+
x_data = np.array(x_data, dtype=np.float32)
16+
y_data = np.array(y_data, dtype=np.float32)
917

1018
X = tf.placeholder(tf.float32, [None, 2], name='x-input')
1119
Y = tf.placeholder(tf.float32, [None, 1], name='y-input')

lab-09-5-linear_back_prop.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@
66
tf.set_random_seed(777) # reproducibility
77

88
# tf Graph Input
9-
x_data = [[1.], [2.], [3.]]
10-
y_data = [[1.], [2.], [3.]]
9+
x_data = [[1.],
10+
[2.],
11+
[3.]]
12+
y_data = [[1.],
13+
[2.],
14+
[3.]]
1115

1216

1317
# placeholders for a tensor that will be always fed.

lab-09-6-multi-linear_back_prop.py

+10-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,16 @@
66
tf.set_random_seed(777) # reproducibility
77

88
# tf Graph Input
9-
x_data = [[73., 80., 75.], [93., 88., 93.],
10-
[89., 91., 90.], [96., 98., 100.], [73., 66., 70.]]
11-
y_data = [[152.], [185.], [180.], [196.], [142.]]
9+
x_data = [[73., 80., 75.],
10+
[93., 88., 93.],
11+
[89., 91., 90.],
12+
[96., 98., 100.],
13+
[73., 66., 70.]]
14+
y_data = [[152.],
15+
[185.],
16+
[180.],
17+
[196.],
18+
[142.]]
1219

1320
# placeholders for a tensor that will be always fed.
1421
X = tf.placeholder(tf.float32, shape=[None, 3])

0 commit comments

Comments
 (0)