回答編集履歴

1

追記

2020/11/13 05:03

投稿

jeanbiego
jeanbiego

スコア3966

test CHANGED
@@ -15,3 +15,35 @@
15
15
  > numpy.insert(arr, obj, values, axis=None)
16
16
 
17
17
  [numpy.insert](https://numpy.org/doc/stable/reference/generated/numpy.insert.html)
18
+
19
+
20
+
21
+ ## 追記
22
+
23
+ ```python3
24
+
25
+ import numpy as np
26
+
27
+ autoscaled_x_train_pre = np.array([[1.1,1.4],[5.8,6.2]])
28
+
29
+ # array([[1.1, 1.4],
30
+
31
+ # [5.8, 6.2]])
32
+
33
+
34
+
35
+ x2_train = np.array([[0,1],[0,1]])
36
+
37
+ # array([[0, 1],
38
+
39
+ # [0, 1]])
40
+
41
+
42
+
43
+ autoscaled_x_train =np.concatenate([autoscaled_x_train_pre, x2_train],axis=1)
44
+
45
+ # array([[1.1, 1.4, 0. , 1. ],
46
+
47
+ # [5.8, 6.2, 0. , 1. ]])
48
+
49
+ ```