Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a pwlf using custom coefficient #85

Open
gretzteam opened this issue Mar 1, 2021 · 1 comment
Open

Create a pwlf using custom coefficient #85

gretzteam opened this issue Mar 1, 2021 · 1 comment

Comments

@gretzteam
Copy link

It would be useful to have the ability to create a PWLF using my own coefficient. That way all the nice built-in analysis functions would be available.
One use case is to use PWLF to create an initial set of polynomials. Then quantize them (for hardware implementation) and re-create the resulting PWLF for analysis.

@cjekel
Copy link
Owner

cjekel commented Apr 17, 2021

There is an undocumented hack you can do, where you can specify .beta and .fit_breaks after initialization.

If follows equation 4 in the paper:
image
but this is only for the linear case.

How are you specifying the polynomial coefficients? maybe we can write some interface to translate your coefficients into pwlf coefficients.

I've been wanting to create a pwlf.tools, and such interface could go there?

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

No branches or pull requests

2 participants