# Conditional search space examples with Ray Tune

**URL:** <https://discuss.ray.io/t/conditional-search-space-examples-with-ray-tune/3406>\
**Category:** Ray Tune\
**Created:** [August 31, 2021, 4:25pm UTC](https://discuss.ray.io/t/conditional-search-space-examples-with-ray-tune/3406 "2021-08-31T16:25:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tkmamidi](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/tkmamidi/32/588_2.png) [@tkmamidi](https://discuss.ray.io/u/tkmamidi)\
**Post date:** [August 31, 2021, 4:25pm UTC](https://discuss.ray.io/t/conditional-search-space-examples-with-ray-tune/3406/1 "2021-08-31T16:25:39Z")

</div>

For everyone looking to use conditional search space with Ray Tune, here are the examples  
with Optuna - [ray/optuna\_define\_by\_run\_example.py at master · ray-project/ray · GitHub](https://github.com/ray-project/ray/blob/master/python/ray/tune/examples/optuna_define_by_run_example.py)  
with Hyperopt - [ray/hyperopt\_conditional\_search\_space\_example.py at master · ray-project/ray · GitHub](https://github.com/ray-project/ray/blob/master/python/ray/tune/examples/hyperopt_conditional_search_space_example.py)  
A huge thanks to the contributors - @Yard1 @rmelvin🙌 🙏
