liveBook · Manning

Log-ratio

A log-ratio is the logarithm of the ratio between two positive quantities.

How 2 Manning books explain it

Build AI Drug Discovery Pipelines

A log-likelihood ratio is the logarithm of the ratio between two likelihoods, used here to compare the plausibility of mutated and reference protein sequences.

How it is used
Prioritizes protein variants for testing by comparing mutant and wild-type sequence plausibility.
How deep it goes
Explains masked-position probability comparison and its interpretation, without implementing the scoring procedure.
Examples
Uses an alanine-to-cysteine substitution at position 42 and a predicted mutation landscape.
What you can do after
Evaluate mutation plausibility and prioritize variants for experimental testing.

Read how Build AI Drug Discovery Pipelines explains log-ratio →

Reinforcement Learning from Human Feedback

A log-ratio is the logarithm of the ratio between two positive quantities, such as model and reference probabilities.

How it is used
Supports DPO by expressing preference rewards and chosen-versus-rejected shifts relative to a frozen reference model.
How deep it goes
Derives the ratio as an implicit reward, expands it over token log-probabilities, and reaches forward-pass implementation.
Examples
Uses chosen and rejected completions, policy and reference forward passes, DPO equations, and a cacheable implementation listing.
What you can do after
Apply it via DPO loss computation to compare preference shifts, interpret implicit rewards, and reduce memory with cached reference probabilities.

Read how Reinforcement Learning from Human Feedback explains log-ratio →

Related concepts

Questions about log-ratio

What is log-ratio?

A log-ratio is the logarithm of the ratio between two positive quantities.

Which Manning books explain log-ratio?

Build AI Drug Discovery Pipelines and Reinforcement Learning from Human Feedback.

What is the difference between log-ratio and log probability?

A log-ratio is the logarithm of the ratio between two positive quantities. A log probability is the logarithm, usually the natural logarithm, of a probability assigned to an event or outcome.

What kinds of log-ratio are there?

Kinds of log-ratio include log odds scale.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.