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

The way of transforming apollo color to train_id #8

Open
cfzd opened this issue Jul 2, 2020 · 1 comment
Open

The way of transforming apollo color to train_id #8

cfzd opened this issue Jul 2, 2020 · 1 comment

Comments

@cfzd
Copy link

cfzd commented Jul 2, 2020

@cardwing
Hi, I noted that you used the equation B x 5 + G x 3 + R to encode the color to some ids, then map the ids to the train_id like here and here. It's a very smart way to convert the color label to train_id.

I wonder how you figure this out or how the coefficient is obtained? The combination of 5,3 and 1 is just a guess?

@cardwing
Copy link
Owner

cardwing commented Jul 3, 2020

Yes. The coefficient is selected to make sure that each transformed id is unique.

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