-
Notifications
You must be signed in to change notification settings - Fork 2.7k
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Example Request: Simple polynomial fitting and get the coefficients #639
Comments
Do you mean an example of a Polynomial regression? Also, what kind of embedded system are you targeting? This is ML.NET support on processors and Operating Systems and .NET frameworks: Can you elaborate a bit further on your specific scenario/problem for a polynomial regression? |
hi CESARDELATORRE, z = a1 * x^2 + a2 * x * y + a3 * y^2 + a4 * x + a5 * y + a6 I have collected bunch of data of z, x, y. I want to use ML.NET to figure the a1,a2,a3,a4,a5,a6 parameters. |
Hi @hoangdungt2 - Afaik, we currently don't have a direct algorithm/transform for this. We have a RFF transform, which makes projections into a potentially useful space, but won't match theses features. If you are interested on 'Random Fourier Features Transform (command-line xf=RFF)' I can provide further info. But I think it is a different space. However, you could probably create the feature interactions (x, x^2, x*y, y^2, y) in a custom ML.NET transform that you can create. Then you can fit a linear model to those features. Here's info on how to create a custom transform in ML.NET: Sample code: Video: Btw, if you create such a custom transform it'd be great to have it as a sample for the community so we could point to it from the community samples page here: Hope it helps, |
Thanks Cesar, |
Nice! - Btw, as mentioned, if you create a custom Transform Estimator and publish it as a sample in your GitHub repo, ping me so I point to it from our community samples, ok? - I'd be a great example! 👍 https://github.com/dotnet/machinelearning-samples/blob/master/docs/COMMUNITY-SAMPLES.md |
hi, I'm looking for a simple example to polynomial fit data (uni-variate or multi-variate) and I want to print out the parameters to implement the prediction in embedded system. Thanks.
The text was updated successfully, but these errors were encountered: