Skip to content

[WIP] Fortran c order test#4535

Closed
amueller wants to merge 10 commits intoscikit-learn:masterfrom
amueller:fortran_c_order_test
Closed

[WIP] Fortran c order test#4535
amueller wants to merge 10 commits intoscikit-learn:masterfrom
amueller:fortran_c_order_test

Conversation

@amueller
Copy link
Copy Markdown
Member

@amueller amueller commented Apr 6, 2015

Tries to add a common test for #4507 , uses #3907.
Either I'm doing something wrong (I hope so) or this is not looking good.
Found my issue.

Ran 1207 tests in 9.178s
FAILED (errors=0, failures=10)

raghavrv added 8 commits April 6, 2015 17:09
* Check if no error is raised when fit is called with a different number of
features
* Check if estimator is reset when fit is called after a partial_fit
* Check if error is raised when no of features changes between different
partial_fit calls
* Check if partial_fit does not overwrite the previous model
* Check if classes argument is parsed and validated correctly
* Check if clone(estimator).partial_fit == estimator.partial_fit
* Check if partial_fit returns self
@amueller amueller changed the title Fortran c order test [WIP] Fortran c order test Apr 6, 2015
@amueller amueller changed the title [WIP] Fortran c order test [crying] Fortran c order test Apr 6, 2015
@amueller
Copy link
Copy Markdown
Member Author

amueller commented Apr 6, 2015

Running it on the same dataset yields "only"

FAILED (errors=1, failures=3)

Testing on C-ordered data gives "only" three failures,
two of which are QDA, and one is #4536

@amueller amueller force-pushed the fortran_c_order_test branch from c359d02 to 15169c2 Compare April 6, 2015 22:30
@amueller amueller changed the title [crying] Fortran c order test [WIP] Fortran c order test Apr 6, 2015
@amueller
Copy link
Copy Markdown
Member Author

amueller commented Apr 6, 2015

Naturally doesn't find #4507 because that would have been too easy.

@amueller
Copy link
Copy Markdown
Member Author

amueller commented Apr 6, 2015

(doesn't find #4507 because it requires precompute_distances=True)

@glouppe
Copy link
Copy Markdown
Contributor

glouppe commented Apr 14, 2015

By the way, this makes me think we are testing different array layouts for trees in https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/tree/tests/test_tree.py#L741 It may be nice to generalize this test as a common test :)

@amueller
Copy link
Copy Markdown
Member Author

Adding the strided test would definitely be nice. This PR is not in a great shape as it basically exposes issues with the assert_same_estimator helper from #3907.

@amueller amueller closed this May 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants