Skip to content

add ridge regularization in the normal equation#166

Closed
abhiyanpaudel wants to merge 6 commits intodevelopfrom
develop_update
Closed

add ridge regularization in the normal equation#166
abhiyanpaudel wants to merge 6 commits intodevelopfrom
develop_update

Conversation

@abhiyanpaudel
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@jacobmerson jacobmerson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few quick questions/changes. Then I can merge this change. Does it seem to help with the quality of the interpolation at all?

const SupportResults& support, const LO& dim,
const LO& degree, RadialBasisFunction bf);
const LO& degree, RadialBasisFunction bf,
double lambda_factor = 0);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a docstring to this function explaining all of the inputs? And, what the lambda factor is?

RealDefaultScalarArrayView approx_target_values,
double lambda_factor)
{
PCMS_FUNCTION_TIMER;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there any limits on the range of the lambda? I.e., does it need to be positive? If so, we should check those preconditions with an assert here.

@@ -159,10 +160,10 @@ TEST_CASE("solver test")
Kokkos::View<double**, Kokkos::HostSpace> expected_solution(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are the expected results changing so much here? Shouldn't we get the same values when lambda=0?

@jacobmerson
Copy link
Collaborator

We decided to remove the normal equation based routines because they are horribly conditioned and do not provide good solutions for most of our test data. The SVD and QR based methods are much more effective.

@jacobmerson jacobmerson closed this May 2, 2025
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.

3 participants