Skip to content

Conversation

@RomeoV
Copy link

@RomeoV RomeoV commented Feb 11, 2025

There is already infrastructure for multi-dimensional regression, except for the polynomial fitting.
This implements basic cubic regression in the two-dimensional case only.
Probably we can write even more general code for arbitrary dimensions, but it's not completely straight forward.

Also, currently the interface is a big mess (should the inputs be Tuples, Vector, SVectors)?

Nonetheless, I'm putting this here. Perhaps I will have more time to refine it - otherwise it may serve as an inspiration to others.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.84%. Comparing base (5286502) to head (e27b5a8).
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #99      +/-   ##
==========================================
+ Coverage   86.03%   91.84%   +5.80%     
==========================================
  Files           2        2              
  Lines         222      233      +11     
==========================================
+ Hits          191      214      +23     
+ Misses         31       19      -12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

Successfully merging this pull request may close these issues.

2 participants