question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

About default feature range in Kinematic Observation

See original GitHub issue

Hi!

I’m curious where the default features range in KinematicObservation come from? To the point I know, the x value can be from 0 to maximum_duration * MAX_SPEED, but in that line, it is considered in (-5 * MAX_SPEED, 5 * MAX_SPEED) range. So I can’t understand:

  • Why is the negative range also considered for x and y?
  • Why is maximum duration not considered?
  • Why five times of MAX_SPEED?

Again I don’t understand why the speed range is two times the MAX_SPEED.

Thank you

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
eleurentcommented, Jun 5, 2020

Could you mention a code line in which you’ve changed the origin? I wanted to see how it is possible.

You cannot really change the origin, but rather the position of the road network (relative to the origin). In intersection-v0 or roundabout-v0 for instance, the origin is in the middle of the intersection/roundbout.

but isn’t the point of normalization that we can always expect the normalized value won’t exceed 1?

Well, not necessarily. It depends on why you are normalizing, really. If it is related to model conditioning for function approximation, it doesn’t have to be a hard constraint, and people often normalize by dividing by the standard deviation (which means you can still get a value >= 2 with ~13% probability). See e.g. https://www.jeremyjordan.me/batch-normalization/, https://towardsdatascience.com/why-data-should-be-normalized-before-training-a-neural-network-c626b7f66c7d

I think it is up to you to choose the proper feature range / scale depending on your particular needs.

2reactions
eleurentcommented, Jun 4, 2020

Well it can be both, depending on whether the field absolute is set to true or false. But even in the case of absolute coordinates, in some environments the frame origin is located such that vehicles can have negative coordinates. The horizontal roads of highway-v0 are a special case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Observations — highway-env documentation
If configured with normalize=True (default), the observation is normalized within a fixed range, which gives for the range [100, 100, 20, 20]: ...
Read more >
Observations — highway-env documentation - GitHub Pages
If configured with normalized=True (default), the observation is normalized within a fixed range, which gives for the range [100, 100, 20, 20]: ...
Read more >
Unit 2: Kinematic GPS/GNSS Methods - SERC - Carleton
Students need to consider complications such as line of sight, radio range and attenuation, multi-path errors, and terrain shadowing.
Read more >
RINEX format Definition - NGS
It is identical for the phase and range measurements and is identical for all satellites observed at that epoch. It is expressed in...
Read more >
Kinematic GNSS Precise Point Positioning - CORE
Precise Point Positioning (PPP) is a new method that started in the 1990's and involves the use of measurements from a single GNSS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found