# PBT tune Question

**URL:** <https://discuss.ray.io/t/pbt-tune-question/5068>\
**Category:** Ray Tune\
**Created:** [February 15, 2022, 7:20am UTC](https://discuss.ray.io/t/pbt-tune-question/5068 "2022-02-15T07:20:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xim\_Lee](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/xim_lee/32/300_2.png) [@Xim\_Lee](https://discuss.ray.io/u/Xim_Lee)\
**Post date:** [February 15, 2022, 7:20am UTC](https://discuss.ray.io/t/pbt-tune-question/5068/1 "2022-02-15T07:20:11Z")

</div>

Hi, everybody!  
I have been trying the Population-Based Training (PBT) on the TD3 algorithm, and I have a minor question with respect to matching the hyperparameters. My question is " how do I equally set the ‘actor hidden nodes’ and ‘critic hidden nodes’ when I use the PBT on Tune of ray?".

For example, If I set as the below:  
config[‘critic\_hiddens’] = [tune.choice([[64, 64], [64], [32], [32, 32], [16, 16]])]  
config[‘actor\_hiddens’] = deepcopy(config[‘critic\_hiddens’]),  
tune sample each value for each config. I want to make these configs equal.

- 

And the second question is “why does not each task run simultaneously?”

 ![image](https://us1.discourse-cdn.com/flex020/uploads/ray/original/2X/5/57a05ab92de99826bb66f6339a35e9aa9d1aac93.png)

Thank you!

---

<div class="post-metadata">

**Author:** ![amogkam](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/amogkam/32/17_2.png) [@amogkam](https://discuss.ray.io/u/amogkam)\
**Post date:** [February 19, 2022, 2:37am UTC](https://discuss.ray.io/t/pbt-tune-question/5068/2 "2022-02-19T02:37:50Z")

</div>

Hey @Xim_Lee could you just use the same hyperparamter for both?

So inside your training function you can then just do

```auto
critic_hiddens = config["hiddens"]
actor_hiddens = config["hiddens"]

```

Let me know if this would work for you!

---

<div class="post-metadata">

**Author:** ![amogkam](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/amogkam/32/17_2.png) [@amogkam](https://discuss.ray.io/u/amogkam)\
**Post date:** [February 19, 2022, 2:39am UTC](https://discuss.ray.io/t/pbt-tune-question/5068/3 "2022-02-19T02:39:02Z")

</div>

For the second question it’s probably because you don’t have enough resources to run more than 1 trial. Could you send the entire screenshot of the report table? That will show us how many resources you have.

---

<div class="post-metadata">

**Author:** ![Xim\_Lee](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/xim_lee/32/300_2.png) [@Xim\_Lee](https://discuss.ray.io/u/Xim_Lee)\
**Post date:** [April 1, 2022, 1:22am UTC](https://discuss.ray.io/t/pbt-tune-question/5068/4 "2022-04-01T01:22:58Z")

</div>

Thank you @amogkam !  
Your advices are helpful to me, and sorry for replying late.  
I’ve been working on something else for a while.  
I think I have enough resources, but I’ll upload my report table.
