jaberg/hyperopt — Issue #93: Trials should be more dict-like, less weird
Author: jaberg
Created: 2012-02-25 03:56:29+00:00
State: open
Labels: bug

Consequence:

* trials.__iter__ should iterate over tids, not list positions

* current trials.trials -> trials.items()

* MongoTrials can support iteritems() by fetching records not all at once.

* trials.miscs, trials.results trials.specs should also be dict-like

This really comes up because it's very tempting and natural to write trials[0] and expect it to give you the trial with identifier 0.