回答編集履歴

2

例の変更

2017/12/08 11:43

投稿

LouiS0616
LouiS0616

スコア35660

test CHANGED
@@ -6,15 +6,15 @@
6
6
 
7
7
  >>> import numpy as np
8
8
 
9
- >>> hoge = np.array([1., 2., 3.])
9
+ >>> hoge = np.array([-1., -2., -3.])
10
10
 
11
11
  >>> hoge
12
12
 
13
- array([ 1., 2., 3.])
13
+ array([-1., -2., -3.])
14
14
 
15
15
  >>> -hoge
16
16
 
17
- array([-1., -2., -3.])
17
+ array([ 1., 2., 3.])
18
18
 
19
19
  ```
20
20
 

1

追記

2017/12/08 11:43

投稿

LouiS0616
LouiS0616

スコア35660

test CHANGED
@@ -21,3 +21,15 @@
21
21
 
22
22
 
23
23
  ...試してみればすぐ解決したのでは。
24
+
25
+
26
+
27
+ ---
28
+
29
+ [sklearn.model_selection.cross_val_score](http://scikit-learn.org/stable/modules/generated/sklearn.model_selection.cross_val_score.html)
30
+
31
+ > **Returns:**
32
+
33
+ **scores :** array of float, shape=(len(list(cv)),)
34
+
35
+ Array of scores of the estimator for each run of the cross validation.