Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fixed one_hot.py (#72)
Summary: This is a hot fix for `is_valid_type` checking in ./core/search_space.py: ```python if not self._parameters[name].is_valid_type(value): if raise_error: raise ValueError( f"{value} is not a valid value for " f"parameter {self._parameters[name]}" ) return False ``` Since np.str_ couldn't pass the type checking Pull Request resolved: #72 Reviewed By: lena-kashtelyan Differential Revision: D15218362 Pulled By: sdsingh fbshipit-source-id: b5142e387e46c991156073d7baf4f64102b70426
- Loading branch information