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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not copy params in get_params
.
#13598
Conversation
For compatibility with the scikit-learn `clone` function `get_params` has to return the same parameters as given in the __init__ function. Fix issue keras-team#13586
One test on python 3.6/TF 2.0 failed: ===== 1 failed, 1126 passed, 114 skipped, 49 warnings in 498.19s (0:08:18) =====
Using TensorFlow backend.
The command "if [[ "$MODE" == "INTEGRATION_TESTS" ]]; then PYTHONPATH=$PWD:$PYTHONPATH py.test tests/integration_tests; elif [[ "$MODE" == "PEP8_DOC" ]]; then PYTHONPATH=$PWD:$PYTHONPATH py.test --pep8 -m pep8 -n0 && py.test tests/docs; elif [[ "$MODE" == "API" ]]; then PYTHONPATH=$PWD:$PYTHONPATH pip install git+git://www.github.com/keras-team/keras.git && python update_api.py && pip install -e .[tests] --progress-bar off && py.test tests/test_api.py; elif [[ "$RUN_ONLY_BACKEND_TESTS" == "1" ]]; then PYTHONPATH=$PWD:$PYTHONPATH py.test tests/keras/backend/; else PYTHONPATH=$PWD:$PYTHONPATH py.test tests/ --ignore=tests/integration_tests --ignore=tests/docs --ignore=tests/keras/legacy/layers_test.py --ignore=tests/test_api.py --cov-config .coveragerc --cov=keras tests/; fi" exited with 1.
cache.2
store build cache
Done. Your build exited with 1. Maybe it's a flake and re-running will pass? |
It could. Clearly the error is not related to the small change made |
@fchollet How do we re-run the tests on this PR? It seems like the test failure is a flake, but we are not sure. |
Any news on this? |
This is a silly question, but how would I checkout this branch locally? |
Hi all, sorry for stepping in, I was investigating the scikit-learn issue 17022 and that led me here. I have checked out this branch: for me it fixes scikit-learn 17022 and scikit-learn issue 15722 opened by @mcarbajo himself.
@zachmayer, here the command line procedure I used (I beg your pardon if I misunderstood your question)
Hope it could help to finalize this. Thanks for listening. |
@cmarmo thanks! I'm gonna try to make a new PR sometime and see if I can get this test to pass. |
Any updates on this? @zachmayer, did you create a new PR? |
I still can't make my own PR: Mayer-2:keras zach2$ git checkout -b mcarbajopatch -t mcarbajo/patch-1
fatal: 'mcarbajo/patch-1' is not a commit and a branch 'mcarbajopatch' cannot be created from it |
@zachmayer do you mind checking that you have run |
I did run |
ok, the conflict in @fchollet Should we stop making PRs to the keras repo and try to fix this in the tensorflow repo? |
I'll try making a PR here: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/keras/wrappers/scikit_learn.py |
I made a PR to tensorflow here: tensorflow/tensorflow#41341 |
Summary
For compatibility with the scikit-learn
clone
functionget_params
has to return the same parameters as given in the init function. Fix issue #13586Related Issues
#13586
PR Overview