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

How can I choose the correct loss function for a specific task? #3

Closed
Yuxing-Wang-THU opened this issue Jul 5, 2023 · 3 comments
Closed

Comments

@Yuxing-Wang-THU
Copy link

Hi! In SoftZoo, there are FinalStepCoMLoss, TrajectoryFollowingLoss, PerStepCoVLoss, AnimatedEMDLoss, VelocityFollowingLoss, WaypointFollowingLoss, RotationLoss, ThrowingObjectLoss and ObjectVelocityLoss to be selected for a specific task. I don't know how to choose a correct loss. Can you provide some descriptions of these loss functions?
Thx!

@Yuxing-Wang-THU
Copy link
Author

What is the meaning of "actuator_v" and"particle_v"? thx

@zswang666
Copy link
Owner

FinalStepCoMLoss: compute the loss based on the weighted sum of the average position at the last/final step.
PerStepCoVLoss: compute the loss based on the weighted sum of the average velocity at every step.
TrajectoryFollowingLoss: compute the loss based on the distance of the average position at every step as opposed to a desired trajectory.
VelocityFollowingLoss: compute the loss to encourage tracking a target velocity.
WaypointFollowingLoss: compute the loss to encourage tracking a target waypoint.
AnimatedEMDLoss: compute the loss to track a sequence of moving point clouds with earth moving distance (EMD).
RotationLoss: compute the loss to encourage rotation along a desired axis.
ThrowingObjectLoss: compute the loss based on the average position of an object with respect to its starting position at the final step.
ObjectVelocityLoss: compute the loss based on the average velocity of an object at every step.

Please check more detailed implement in ./algorithms/diffsim/loss.py

actuator_v: velocity defined on actuators (muscle groups), where each actuator involves many particles in MPM.
particle_v: velocity defined on MPM particles

@Yuxing-Wang-THU
Copy link
Author

FinalStepCoMLoss: compute the loss based on the weighted sum of the average position at the last/final step. PerStepCoVLoss: compute the loss based on the weighted sum of the average velocity at every step. TrajectoryFollowingLoss: compute the loss based on the distance of the average position at every step as opposed to a desired trajectory. VelocityFollowingLoss: compute the loss to encourage tracking a target velocity. WaypointFollowingLoss: compute the loss to encourage tracking a target waypoint. AnimatedEMDLoss: compute the loss to track a sequence of moving point clouds with earth moving distance (EMD). RotationLoss: compute the loss to encourage rotation along a desired axis. ThrowingObjectLoss: compute the loss based on the average position of an object with respect to its starting position at the final step. ObjectVelocityLoss: compute the loss based on the average velocity of an object at every step.

Please check more detailed implement in ./algorithms/diffsim/loss.py

actuator_v: velocity defined on actuators (muscle groups), where each actuator involves many particles in MPM. particle_v: velocity defined on MPM particles

Thx!

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