File tree 2 files changed +4
-7
lines changed
sklearn/neural_network/tests
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 18
18
/sklearn /utils /arrayfuncs.c - diff
19
19
/sklearn /utils /graph_shortest_path.c - diff
20
20
/sklearn /utils /lgamma.c - diff
21
- sklearn /utils /_logistic_sigmoid.c - diff
21
+ / sklearn /utils /_logistic_sigmoid.c - diff
22
22
/sklearn /utils /murmurhash.c - diff
23
23
/sklearn /utils /seq_dataset.c - diff
24
24
/sklearn /utils /sparsefuncs.c - diff
Original file line number Diff line number Diff line change @@ -101,15 +101,12 @@ def test_gibbs_smoke():
101
101
102
102
103
103
def test_pseudo_likelihood_no_clipping ():
104
- """
105
- checks that the pseudo likelihood is computed without clipping,
106
- which happened until commit 52d1b778ca7164ac04ea9f8ba39077054954b77a
107
- the new implementation (as of commit
108
- 52d1b778ca7164ac04ea9f8ba39077054954b77a ) follows:
104
+ """Check that the pseudo likelihood is computed without clipping.
105
+
109
106
http://fa.bianp.net/blog/2013/numerical-optimizers-for-logistic-regression/
110
107
"""
111
108
rng = np .random .RandomState (42 )
112
- X = np .array ([[ 0. for i in xrange (1000 )], [ 1. for i in xrange (1000 )] ])
109
+ X = np .vstack ([ np . zeros (1000 ), np . ones (1000 )])
113
110
rbm1 = BernoulliRBM (n_components = 10 , batch_size = 2 ,
114
111
n_iter = 10 , random_state = rng )
115
112
rbm1 .fit (X )
You can’t perform that action at this time.
0 commit comments