Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork26.1k
TST use global_random_seed insklearn/linear_model/tests/test_logistic.py
#31362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Conversation
github-actionsbot commentedMay 13, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@DeaMariaLeon Please note that |
Thank you so much@lorentzenchr! |
@@ -254,13 +253,16 @@ def test_elasticnet_l1_ratio_err_helpful(LR): | |||
# TODO(1.8): remove whole test with deprecation of multi_class | |||
@pytest.mark.filterwarnings("ignore:.*'multi_class' was deprecated.*:FutureWarning") | |||
@pytest.mark.parametrize("solver", ["lbfgs", "newton-cg", "sag", "saga"]) | |||
def test_multinomial_binary(solver): | |||
def test_multinomial_binary(global_random_seed,solver): |
DeaMariaLeonMay 20, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Maybe this test doesn't need global_random_seed as it will be removed
DeaMariaLeonJun 10, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Remove test now (Guillaume's suggestion)
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
test_predict_2_classestest_logistic_cv_mock_scorertest_predict_iristest_sparsifytest_write_parameterstest_consistency_pathtest_liblinear_dual_random_statetest_logistic_cvtest_logistic_cv_multinomial_scoretest_multinomial_logistic_regression_string_inputstest_logistic_cv_sparsetest_logistic_regression_solverstest_logistic_regression_solvers_multiclasstest_logistic_regression_solvers_multiclass_unpenalizedtest_logistic_regression_class_weightstest_logistic_regression_multinomialtest_liblinear_decision_function_zerotest_liblinear_logregcv_sparsetest_saga_sparsetest_logreg_l1test_logreg_l1_sparse_datatest_logistic_regression_cv_refittest_logreg_predict_proba_multinomialtest_max_itertest_warm_starttest_saga_vs_liblineartest_dtype_matchtest_warm_start_converge_LRtest_elastic_net_coeffstest_elastic_net_l1_l2_equivalencetest_elastic_net_versus_sgdtest_penalty_nonetest_scores_attribute_layout_elasticnettest_multinomial_identifiability_on_iristest_sample_weight_not_modifiedtest_liblinear_not_stucktest_lr_cv_scores_differ_when_sample_weight_is_requestedtest_passing_params_without_enabling_metadata_routing
Still need to fix these: I removed some tests after conversation with Guillaume - but I hope that's what he meant. |
test_logistic_cv_mock_scorertest_predict_iristest_sparsifytest_write_parameterstest_consistency_pathtest_liblinear_dual_random_statetest_logistic_cvtest_logistic_cv_multinomial_scoretest_multinomial_logistic_regression_string_inputstest_logistic_cv_sparsetest_logistic_regression_solverstest_logistic_regression_solvers_multiclasstest_logistic_regression_solvers_multiclass_unpenalizedtest_logistic_regression_class_weightstest_logistic_regression_multinomialtest_liblinear_decision_function_zerotest_liblinear_logregcv_sparsetest_saga_sparsetest_logreg_l1test_logreg_l1_sparse_datatest_logistic_regression_cv_refittest_logreg_predict_proba_multinomialtest_max_itertest_warm_starttest_saga_vs_liblineartest_dtype_matchtest_warm_start_converge_LRtest_elastic_net_coeffstest_elastic_net_l1_l2_equivalencetest_elastic_net_versus_sgdtest_penalty_nonetest_scores_attribute_layout_elasticnettest_multinomial_identifiability_on_iristest_sample_weight_not_modifiedtest_liblinear_not_stucktest_lr_cv_scores_differ_when_sample_weight_is_requestedtest_passing_params_without_enabling_metadata_routingtest_LogisticRegression_elastic_net_objectivetest_LogisticRegressionCV_GridSearchCV_elastic_net
test_predict_2_classestest_logistic_cv_mock_scorertest_predict_iristest_sparsifytest_write_parameterstest_consistency_pathtest_liblinear_dual_random_statetest_logistic_cvtest_logistic_cv_multinomial_scoretest_multinomial_logistic_regression_string_inputstest_logistic_cv_sparsetest_logistic_regression_solverstest_logistic_regression_solvers_multiclasstest_logistic_regression_solvers_multiclass_unpenalizedtest_logistic_regression_class_weightstest_logistic_regression_multinomialtest_liblinear_decision_function_zerotest_liblinear_logregcv_sparsetest_saga_sparsetest_logreg_l1test_logreg_l1_sparse_datatest_logistic_regression_cv_refittest_logreg_predict_proba_multinomialtest_max_itertest_warm_starttest_saga_vs_liblineartest_dtype_matchtest_warm_start_converge_LRtest_elastic_net_coeffstest_elastic_net_l1_l2_equivalencetest_elastic_net_versus_sgdtest_penalty_nonetest_scores_attribute_layout_elasticnettest_multinomial_identifiability_on_iristest_sample_weight_not_modifiedtest_liblinear_not_stucktest_lr_cv_scores_differ_when_sample_weight_is_requestedtest_passing_params_without_enabling_metadata_routingtest_LogisticRegression_elastic_net_objectivetest_LogisticRegressionCV_GridSearchCV_elastic_net
test_predict_2_classestest_logistic_cv_mock_scorertest_predict_iristest_sparsifytest_write_parameterstest_consistency_pathtest_liblinear_dual_random_statetest_logistic_cvtest_logistic_cv_multinomial_scoretest_multinomial_logistic_regression_string_inputstest_logistic_cv_sparsetest_logistic_regression_solverstest_logistic_regression_solvers_multiclasstest_logistic_regression_solvers_multiclass_unpenalizedtest_logistic_regression_class_weightstest_logistic_regression_multinomialtest_liblinear_decision_function_zerotest_liblinear_logregcv_sparsetest_saga_sparsetest_logreg_l1test_logreg_l1_sparse_datatest_logistic_regression_cv_refittest_logreg_predict_proba_multinomialtest_max_itertest_warm_starttest_saga_vs_liblineartest_dtype_matchtest_warm_start_converge_LRtest_elastic_net_coeffstest_elastic_net_l1_l2_equivalencetest_elastic_net_versus_sgdtest_penalty_nonetest_scores_attribute_layout_elasticnettest_multinomial_identifiability_on_iristest_sample_weight_not_modifiedtest_liblinear_not_stucktest_lr_cv_scores_differ_when_sample_weight_is_requestedtest_passing_params_without_enabling_metadata_routing
Reference Issues/PRs
Towards#22827
What does this implement/fix? Explain your changes.
Any other comments?