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

[SIAPP]Reverting P norm PR #12633

Merged
merged 26 commits into from
Sep 5, 2024
Merged

[SIAPP]Reverting P norm PR #12633

merged 26 commits into from
Sep 5, 2024

Conversation

Igarizza
Copy link
Member

📝 Description
Due to some bug in the P norm gradient calculation in the parallel execution, I have reverted the code of the measurement_response back to the origin. I will debug and fix it later. This is the temporal solution.

🆕 Changelog
Please summarize the changes in one list to generate the changelog:
E.g.

  • Added feature X to Y
  • Added Foo Application
  • Fixed X (#XXXX Reference to issue if apply)
  • etc...

talhah-ansari
talhah-ansari previously approved these changes Aug 16, 2024
Copy link
Member

@sunethwarna sunethwarna left a comment

Choose a reason for hiding this comment

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

I have minor comments. Could you take a look at them?

Copy link
Member

@sunethwarna sunethwarna left a comment

Choose a reason for hiding this comment

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

@Igarizza, Could you check my suggestions?

const double current_sensor_error = sensor_value - p_sensor->GetValue(SENSOR_MEASURED_VALUE);
p_sensor->SetValue(SENSOR_ERROR, current_sensor_error);
sum_B_p += ( std::pow( 0.5 * pow(current_sensor_error, 2) * p_sensor->GetWeight(), mPCoefficient ) );
value += p_sensor->GetWeight() * std::pow(sensor_value - p_sensor->GetValue(SENSOR_MEASURED_VALUE), 2) * 0.5;
Copy link
Member

Choose a reason for hiding this comment

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

why do you need the value here? is it used anywhere?

Copy link
Member Author

Choose a reason for hiding this comment

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

testing p=1 and old code

Copy link
Member Author

Choose a reason for hiding this comment

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

removed

Comment on lines 9 to 10
// Main authors: Suneth Warnakulasuriya,
// Ihar Antonau
Copy link
Member

Choose a reason for hiding this comment

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

You can put your name also here :)

"weight" : 1.0,
"variable_data": {}
}"""),
Kratos.Parameters("""{
Copy link
Contributor

Choose a reason for hiding this comment

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

Are the sensors duplicated?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, with different coord.

talhah-ansari
talhah-ansari previously approved these changes Sep 5, 2024
Copy link
Contributor

@talhah-ansari talhah-ansari left a comment

Choose a reason for hiding this comment

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

@sunethwarna Thanks

@Igarizza Igarizza enabled auto-merge (squash) September 5, 2024 11:28
Copy link
Contributor

@talhah-ansari talhah-ansari left a comment

Choose a reason for hiding this comment

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

Nice work. @Igarizza @sunethwarna

@Igarizza Igarizza merged commit 9fa8dd0 into master Sep 5, 2024
9 of 11 checks passed
@Igarizza Igarizza deleted the siapp/rollback_p_norm branch September 5, 2024 13:06
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