Artificial Intelligence, Machine Learning, Data Science, Reinforcement Learning, Deep Learning.
print('Epoch {} done with loss actor={} , critic={} !!!!!!'.format(epoch,actor_loss,critic_loss)) if epoch%10==0: actor.save('pendulum/actor/') critic.save('pendulum/critic/') if epoch%5==0: target_critic, target_actor = update_target_networks(actor,critic,target_actor,target_critic) epoch+=1 This