jev-bisect
A Python library that finds a numeric answer through repeated higher, lower, or exact judgments from Jev.
What does it do?
Given a question and finite minimum and maximum values, it evaluates the midpoint of the range by default. When Jev chooses higher or lower, it excludes the current candidate and moves to the midpoint of the remaining values; when Jev chooses exact, it returns the answer. You can set candidate spacing with a precision value or specify the first guess. The result includes the answer, number of evaluations, final status, and a step-by-step record of choices, confidence, probabilities, and model version. An advance function also applies a single step without an API call.
Key features
- Narrows candidates within a numeric range using Jev’s higher, lower, or exact judgments.
- Allows a precision value and first guess to be specified.
- Returns the answer, evaluation count, final status, and a record of each judgment.
- Uses the advance function to perform a single search step without an API call.