ML

Thumbnail of post image 073

大げさな名前がついているが,実際は単純.

マクロ平均(macro average)

全クラスの結果のF1値を計算したもの.

マイクロ平均(micro average)

クラスごとにF1値を計算し,それらを単純に平均 ...

Python

Thumbnail of post image 159

修正前import matplotlib.pyplot as pltimport seaborn as snsconfusion = calc_confusion(all_prediction, all_prediction)df = pd ...

Ubuntu

Thumbnail of post image 106

対策

chmod 1777/tmp

github.com

経緯

dockerで立てたコンテナでapt-get updateを打ち込むと,

W: GPG error: xenial InRelease: Co ...

Uncategorized

Thumbnail of post image 115

手順brew install nodebrew

PATHの設定

export PATH=$HOME/.nodebrew/current/bin:$PATHsource ~/.bash_profilenodebrew -v

Fo ...

Uncategorized

Thumbnail of post image 198

以下の写真の赤でマークされている二点をピンセットなどで通電する。

Python

Thumbnail of post image 197

import collectionsimport matplotlib.pyplot as pltl = c = collections.Counter(l)plt.bar(list(c.keys()), list(c.values())) ...

Flair

Thumbnail of post image 067

自作データを使って2回以上の学習を回したときにハマったのでまとめる.

筆者が自作データでNERの学習を行なったときに,1回目に学習したモデルを2回目の学習に引き継ぎたいと思った.

しかしながら,その方法は公式ド ...

Python

Thumbnail of post image 046

Python3.6から使えるようになったf-stringを使って,スマートにパスを生成しよう.

かっこ悪いパスの生成from datetime import datetimenow = datetime.now().strfti ...

Git

Thumbnail of post image 185

git hub の最新版のコードを使いたいときのコマンド.

以下に,NLPライブラリFlairの最新版をインストールするときのコマンドを示す.

インストール前にflairがあっても,最新版に更新してくれる.

AWS,EC2

Thumbnail of post image 022

apt update を実行して以下のエラー

こんな時は,df -h で容量を調べてみよう.きっとディスクがパンパンになっているはずだ.

Error writing to output file - write (2 ...