convexengineering / gpfit

Fit posynomials to data
http://gpfit.readthedocs.io/en/latest/
MIT License
10 stars 7 forks source link

Maxerr #68

Closed mjburton11 closed 7 years ago

mjburton11 commented 7 years ago

@whoburg and @bqpd ready for review: return max error with rms error; allow for parameter conversion to pandas dataframe

mjburton11 commented 7 years ago

So immediate issues are that it can't find pandas. Maybe we don't need and the parameters could be returned as a dict.

And I think the max error of the fit should be returned with the constraint when doing a fit. But that's a design decision that needs to be made. Thoughts?

bqpd commented 7 years ago

I'd stick the max and rms error into attributes of the returned ConstraintSet; another factor pointing towards the convenience of a specialty FitConstraintSet class.

mjburton11 commented 7 years ago

I like the idea of the rms and max errors being attributes of the fit constraint set.

mjburton11 commented 7 years ago

Am I seeing that the unit tests are only failing on Windows? @bqpd

Also, the pylint erros that I saw was that it doesn't like K as an input...

bqpd commented 7 years ago

@galbramc there's some DLL load errors on the windows side; might the libraries need to be updated?

@mjburton11 yeah, I'd just put a pylint-disable comment on that one.

mjburton11 commented 7 years ago

@bqpd now the pylint error I'm getting is unable to import pandas. I thought we solved that by putting it inside the function?

bqpd commented 7 years ago

yeah, but pylint tries to import it. You should be able to disable that error as well...

galbramc commented 7 years ago

Test this please

galbramc commented 7 years ago

Test this please

galbramc commented 7 years ago

The DLL error was because the Jenkins script for gpfit was missing

REM turn on the anaconda console call activate.bat || exit /b 666

whoburg commented 7 years ago

argh, merging this caused gpfit_Push to fail...

galbramc commented 7 years ago

No, the gpfit push was missing

REM turn on the anaconda console
call activate.bat || exit /b 666

as well. I added it and it now passes.