BUG Fixes cython code for ppc arch#17201
Conversation
|
As an aside, it would be kind of nice to get the |
|
isn't it only failing on ppc? Not sure how you can reproduce them locally. |
|
Was the error only in That's surprising because the grower also passes the same type of array, so all tests should fail. I'm also just confused by the error message: |
|
It was everywhere that created a splitter. Here is the link to the one of the tests https://travis-ci.com/github/conda-forge/scikit-learn-feedstock/jobs/333125503 |
|
A cleaner error message: |
|
I'm very confused as well, isn't |
|
what's the status on this, do we still need to fix something? BTW @thomasjpfan there are no "changes" in this PR anymore |
|
I think this still fails on ppc, but we're keeping releasing w/o ppc builds I think. It'd be nice to fix it. |
This reverts commit d1cf3b1.
|
whoops I reverted everything. |
|
I am guessing removing the |
|
I guess so. You can temporarily push the change to a non release branch on the main repo and have it tested on conda-forge |
|
I am actively trying different patches out in conda-forge/scikit-learn-feedstock#125 I will mark this PR to be merged when I find something that works. (We can go from PR to draft now and back again!) |
|
Did this one not work? If it works and a quick benchmark shows no performance drop, maybe our best bet is to go with it so @thomasjpfan doesn't waste too much time... |
|
The patch does not work. The monotonic constraints tests are failing https://travis-ci.com/github/conda-forge/scikit-learn-feedstock/jobs/335600845 |
cpdef enum MonotonicConstraint:
NO_CST = 0
POS = 1
NEG = -1When I was coding in C (in a previous life) I remember having some edge cases regarding some enums with values that were not 0, 1, 2... Good old memories. May I suggest to try:
|
|
Fun stuff. Turns out explicitly saying that the char is signed works. |
|
@NicolasHug creating the 0.23.1 PR now, should we merge this? |
|
Thanks @thomasjpfan I guess there's something fishy going on with the compiler used of the ppc CI... |
* BUG Fixes cython in splitting * REV Revert * Revert "REV Revert" This reverts commit d1cf3b1. * WIP Uses signed char * WIP Maybe use signed chars * WIP const signed chars
* BUG Fixes cython in splitting * REV Revert * Revert "REV Revert" This reverts commit d1cf3b1. * WIP Uses signed char * WIP Maybe use signed chars * WIP const signed chars
* BUG Fixes cython in splitting * REV Revert * Revert "REV Revert" This reverts commit d1cf3b1. * WIP Uses signed char * WIP Maybe use signed chars * WIP const signed chars
Attempt to fix conda-forge/scikit-learn-feedstock#124 I rather this be
const charbut there were build errors in theconda-forgebuild.The error in the build logs are:
CC @NicolasHug
(Will think about how reproduce this locally when I wake up.)