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

Calculate conditional probabilities for types #195

Open
dstallenberg opened this issue Oct 30, 2023 · 0 comments
Open

Calculate conditional probabilities for types #195

dstallenberg opened this issue Oct 30, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@dstallenberg
Copy link
Contributor

Currently, the probabilities of types for variables are based purely on the source code.
However, if we pick a certain type for one of the arguments the probabilities of the types of all other variables could change because of conditional probabilities. These should thus be included in the calculation (although this might slow the entire process down).

Example:

function x (a, b) {
  return a + b
}

By default a and b could both be strings and numbers in javascript we simply don't know.
Given a is numeric we know that b is more likely to also be numeric.
Conversely, if a is a string we know that b is more likely to also be a string.

@dstallenberg dstallenberg added the enhancement New feature or request label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant