论文精读 StarGAN: Unified Generative Adversarial Networks for Multi-Domain Image-to-Image Translation 程序员文章站 2024-01-02 21:29:16 ... 如何用梯度下降法求解平方根 import random def fn(a ,max_it = 100): x= random.uniform(0,a/2) count=1 y1=x*x alpha=0.01 Loss=(y1- a )*(y1- a ) #print(alpha) #print(Loss) while(count < max_it): delta=4*(y1- a )*x x=x-alpha*delta y1=x*x count+=1 return x result=fn(3,300) print(result) 相关标签: 机器学习 sgd 上一篇: 下一篇: 推荐阅读 论文精读 StarGAN: Unified Generative Adversarial Networks for Multi-Domain Image-to-Image Translation