@contract
def update_estimate_windows(estimate_windows, request_windows,
                            previous_state):
    request_window = request_windows[previous_state]
    state_estimate_windows = estimate_windows[previous_state]
    for state, estimate_window in enumerate(state_estimate_windows):
        for window_size, estimates in estimate_window.items():
            slice_from = len(request_window) - window_size
            if slice_from < 0:
                slice_from = 0
            estimates.append(
                estimate_probability(
                    list(islice(request_window, slice_from, None)),
                    window_size, state))
    return estimate_windows
Recodes variables from the pregnancy frame.
dataset/ETHPy150Open beloglazov/openstack-neat/neat/locals/overload/mhod/multisize_estimation.py/update_estimate_windows--crossover with--dataset/ETHPy150Open AllenDowney/CompStats/nsfg2.py/CleanFemPreg