2020-06-01から1ヶ月間の記事一覧

Bokehで'tooltips'が使えない

概要 深層学習のlossのグラフを書くためにBokehを使ったところエラーが出た。 エラーの出たコード import numpy as np from bokeh.plotting import figure, output_file, show, reset_output # 出力設定 reset_output() output_file("graph.html") TOOLTIPS …

AttributeError: 'LambdaLR' object has no attribute 'get_last_lr'が出た

概要 BERTで事前学習を行っているとき AttributeError: 'LambdaLR' object has no attribute 'get_last_lr' というエラーが出ていた。 解決策 こちらを見てみると get_last_lrというメソッドがpytorchのバージョンが1.4.0から実装されたみたい。 現在のpytor…