Skip to content

Commit f426ded

Browse files
committed
TST remove bogus test
1 parent 1c7989b commit f426ded

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_pyglmnet.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,12 +415,11 @@ def test_random_state_consistency():
415415
ypred_a = glm_a.fit_predict(Xtrain, ytrain)
416416
glm_b = GLM(distr="gaussian", random_state=1)
417417
ypred_b = glm_b.fit_predict(Xtrain, ytrain)
418-
ypred_c = glm_b.fit_predict(Xtrain, ytrain)
418+
glm_a.fit(Xtrain, ytrain)
419+
glm_b.fit(Xtrain, ytrain)
419420

420421
# Consistency between two different models
421422
assert_array_equal(ypred_a, ypred_b)
422-
# Consistency between different run of the same model
423-
assert_array_equal(ypred_b, ypred_c)
424423

425424
# Test also cross-validation
426425
glm_cv_a = GLMCV(distr="gaussian", cv=3, random_state=1)

0 commit comments

Comments
 (0)