hi, i need an technical advice in my reinforcement learning implementation(PPO agent)…
- User
hi, i need an technical advice in my reinforcement learning implementation(PPO agent) with graph neural network, i need to predict the optimal design parameters for my two stage operational amplifier circuit design(choose best channel length, channel width, bias current and compensation capacitor values) from my predefined bounds for each design parameters. each combination parameter set results the performance metrics. here i need to choose optimal design parameters (action space) which gives output results with in my desired range of performance metrics. here my action space may be discrete or continuous(if we decide discrete action space, then we have too large parameter distribution with in my bounds of respective design parameters in the order of total 10^14, so wisely need to choose action space), each design parameter set which gives output results of an set of output performance metrics, optimal values of each design parameters chosen within the bounds is very tedious because, if an response performance metrics may look like progressive if we slightly vary any of the design parameter which results drastic undesired performance metrics, and for some inputs we may achieve particular performance metrics is better other performance metrics may get worse, to satisfy all the metrics is very tedious. I know it is comes in the multi objective optimization process. Here i am getting the problem, i currently implemented the continuous action space(if you advice me to use discrete action space instead of continuous it it is necessary, that will i accept to modify my existing code), i generate continuous action space, but the result of the generated action space produce the output from my simulation always makes all the transistor region not in saturation, even i implemented an pre training datasets for training the agent to choose the appropriate action space that only need to generate valid action space that results an responce output of the circuit having all the transistor in saturation region. how to strictly introduce the implementation, i apply penalty that deviates the un saturated region and i introduce seperate head in the network which feedback the stability of the node in graph neural network.
def sample_generator(bounds_low, bounds_high, num_samples): """Generate samples using Latin Hypercube Sampling.""" dim = len(bounds_low)
code# Create a Latin Hypercube Sampler sampler = qmc.LatinHypercube(d=dim) # Generate normalized samples (0 to 1) norm_samples = sampler.random(n=num_samples) # Scale the samples to the given bounds samples = qmc.scale(norm_samples, bounds_low, bounds_high) return samplesdef pre_training_dataset_generation(env, required_samples=1000, progress_filename='progress.pkl'): """Generate pre-training dataset with manual tuning data""" env.connect_to_simulator() # Ensure simulator is connected before dataset generation
- Assistant
- User
- Assistant
- User
here the generated action need only it gives the result of all transistor region in saturation, what else i need to include in the code
- Assistant
- User
action validation cost me more computation cost
- Assistant