This code produces an "iteration over 0-d array" error, pasted below. I think the reason is that FFX calls list() on the coefficients, which have been numpy.squeeze()ed by sklearn ElasticNet. I don't see why they squeeze it, but ok. I guess the solution is to hack it by checking if the array is 0-d, and if so just reshape it. I'll commit that fix and then close this issue. Just raising it for posterity.
This code produces an "iteration over 0-d array" error, pasted below. I think the reason is that FFX calls list() on the coefficients, which have been
numpy.squeeze()
ed by sklearn ElasticNet. I don't see why they squeeze it, but ok. I guess the solution is to hack it by checking if the array is 0-d, and if so just reshape it. I'll commit that fix and then close this issue. Just raising it for posterity.