Skip to content

Commit

Permalink
TST remove bogus test
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmainak committed Oct 20, 2019
1 parent 1c7989b commit f426ded
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_pyglmnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,12 +415,11 @@ def test_random_state_consistency():
ypred_a = glm_a.fit_predict(Xtrain, ytrain)
glm_b = GLM(distr="gaussian", random_state=1)
ypred_b = glm_b.fit_predict(Xtrain, ytrain)
ypred_c = glm_b.fit_predict(Xtrain, ytrain)
glm_a.fit(Xtrain, ytrain)
glm_b.fit(Xtrain, ytrain)

# Consistency between two different models
assert_array_equal(ypred_a, ypred_b)
# Consistency between different run of the same model
assert_array_equal(ypred_b, ypred_c)

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

0 comments on commit f426ded

Please sign in to comment.