GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Tags · hyperopt/hyperopt
Tags
v0.3.0fix: handle numpy.int64 scalar in switch node eval (fixes #949) numpy.int64 is not a subclass of Python int since numpy 1.20, so the bare isinstance(switch_i, int) check raises TypeError for hp.choice nodes when the sampled index is a numpy integer scalar. Add an explicit np.integer guard before the int check to coerce bare numpy integer scalars to Python int, matching the existing np.ndarray handling above it. v0.3.0-prefix: handle numpy.int64 scalar in switch node eval (fixes #949) numpy.int64 is not a subclass of Python int since numpy 1.20, so the bare isinstance(switch_i, int) check raises TypeError for hp.choice nodes when the sampled index is a numpy integer scalar. Add an explicit np.integer guard before the int check to coerce bare numpy integer scalars to Python int, matching the existing np.ndarray handling above it. PreviousNext
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |