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

Thoughts about cost function, "testing" #44

Open
audreyseo opened this issue Jul 10, 2019 · 0 comments
Open

Thoughts about cost function, "testing" #44

audreyseo opened this issue Jul 10, 2019 · 0 comments
Labels
help wanted Extra attention is needed priority: MED Would be nice to have, but we can wait a little question Further information is requested testing

Comments

@audreyseo
Copy link
Collaborator

Here's one of the log files: latest.log

If you look to see where all of the costs are, there's a lot of them that have the minimum cost for whatever block we're doing at the moment, so the one that ends up being first is pretty arbitrary. I'm not sure if there's a way to make the cost function more fine-tuned to what we want without "over-fitting" our solution, per se.

We've been wondering what we should do if the behavior of the resulting program is not the same as the desired behavior, and I feel like it could do one of multiple things:

  • it could simply interchange one of the parts with one of the results from the synthesizer that also has the minimum cost, and brute-force try every single combination
  • it could try to modify the original ROS1 code until it changes something in the same place as the change in the output for the other program, which at least will pin-point some block that we could try a different result for
  • using a diff between the synthesized run and the actual output, we could calculate some kind of "similarity index" between the two, and if it interchanges solution 1 for solution 2 for block A, and that makes it more "similar", then it should "keep" solution 2 and move on to looking at block B's solutions and changing those out.

However, this isn't going to happen until I fix #42.

@audreyseo audreyseo added help wanted Extra attention is needed priority: MED Would be nice to have, but we can wait a little question Further information is requested testing labels Jul 10, 2019
audreyseo added a commit that referenced this issue Jul 11, 2019
Found out that there are only 10 min cost solutions (1 x 1 x 10), so
even if ROS2 build takes 10 seconds, it would take max 100 seconds to
try all of these out.

This makes some things more promising for #44.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed priority: MED Would be nice to have, but we can wait a little question Further information is requested testing
Projects
None yet
Development

No branches or pull requests

1 participant