import torch x = torch.tensor([1., -1.]) w = torch.tensor([1.0, 0.5], requires_grad=True) loss = -torch.dot(x, w).sigmoid().log() loss.backward() print(loss.item()) print(w.grad)
This is the supporting wiki for the book The Hundred-Page Machine Learning Book by Andriy Burkov. The book is now available on Amazon and most major online bookstores. WARNING! To avoid buying counterfeits on Amazon, click on See All Buying Options and choose Sold by Amazon.com and not a third-party seller. But better, avoid Amazon by all means. The best way to make sure the author receives a fair
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く