Repository navigation
Pickle tests - #1669
Pickle tests#1669FedericoV wants to merge 18 commits into
Conversation
|
Thanks for the PR :) I'll have a look now. |
There was a problem hiding this comment.
you can just use dumps and loads, then you don't need the StringIO.
There was a problem hiding this comment.
Also, this currently fails. You imported the class StringIO, not the module, so you can do StringIO() directly here.
|
hum the test error is caused by a bug in DictionaryLearning. I'm just trying to figure out why that wasn't caught by test_estimators_overwrite_params. OMG horrible bug. I'll fix. Then you can rebase onto master, ok? |
|
Ok so it seems like you need to wait for #1670 to be merged for the tests to run through. Sorry, my fault. Good that you caught it :) |
|
That is ok, I am glad that the test I wrote was already useful somehow. I On Sunday, February 10, 2013, Andreas Mueller wrote:
|
|
Once my pr is merged, you go to your master branch, do |
Accidentally committed in 1967a0b.
|
I rebased the changes I made on master. I ran the tests, and got the following errors: ERROR: Test different base estimators.Traceback (most recent call last): ERROR: sklearn.tests.test_common.test_configureTraceback (most recent call last): HDF5_DIR environment variable not set, checking some standard locations .. --------------------- >> end captured stdout << ---------------------- FAIL: sklearn.tests.test_common.test_regressors_trainTraceback (most recent call last): --------------------- >> end captured stdout << ---------------------- Ran 1356 tests in 139.853s FAILED (SKIP=10, errors=2, failures=1) |
|
Sorry, I probably wasn't very clear. I just merged the fixes. Please rebase again. |
|
Also, there is a list called 'dont_test'. Please don't test the estimators that are in don't test. Also, I guess you can skip |
|
Oh, I just saw your comment was probably after I merged? Sorry, didn't look at the time stamp and didn't expect you to be so fast ;) |
|
No worries. What about the test failures though? On Mon, Feb 11, 2013 at 5:23 PM, Andreas Mueller
|
|
have you run |
|
Also could you please push your current branch to github? You need to force push it because of the rebase. |
|
I didn't run make,I ran python setup.py build, then python setup.py install. I thought I did push the repo to github, if I look at: I see the very last version of the code. Is there something I should be On Mon, Feb 11, 2013 at 5:52 PM, Andreas Mueller
|
|
oh, never mind, it should be ok. |
|
Below your description of the PR you can see a link for travis that will also tell you the status of the tests btw. |
|
On your branch, I get After rebasing again on current master... |
|
Grr, how did those errors crop up when they weren't there before? Let me dive into it a bit. On Mon, Feb 11, 2013 at 7:11 PM, Andreas Mueller
|
|
The new errors were my fault and cause by the rebasing. I changed the meaning of |
|
My changes are in #1686. |
|
I merged all the commits that where in the PR, therefore closing. Thanks for your work @FedericoV :) |
I added simple pickle tests for transformers, classifiers, and regressors to check to see whether, after a particular model is trained, it gives the same answer before and after it is pickled and unpickled.