データセット内の画像をひとまず見てみるためのコマンド[Kaggle]

www.kaggle.com
import osimport numpy as npimport pandas as pdfrom PIL import Imageimport matplotlib.pyplot as pltl ...コンテナとホストのフォルダを共有[Docker]

Dockerを使っていて最初に行き詰まるのは,コンテナとホストのファイルの共有をどうするかだろう.
フォルダを共有するためには -v コマンドの後に ホストのフォルダパス : コンテナのフォルダパス を書く.
...
LeakGANをインストールしサンプルを動かすまで[GAN][NLP]

長文を生成可能なLeakGANをインストールし,サンプルを動かしてみたのでメモ.本記事では,dockerで作成したコンテナ上でサンプルを動かす手順について紹介.
まずはnvidia-docker2で動作環境を用意する.
スペックルを用いて隠れた位置にある物体を追跡[CVPR][論文読み]

Tracking Multiple Objects Outside the Line of Sight using Speckle Imaging (CVPR2018)
ieeexplore.ieee.org
目的障害物によ ...
POS Taggingのタグ名を忘れたらIBMのサイトをみて思い出そう[NLP]

品詞が日本語でまとめられているので分かりやすい.
www.ibm.com
pd.read_csvでUnicodeDecodeErrorがでるときの対処法[Python][Pandas]

Windowsでpd.read_csvを使うと頻繁にエラーがでる.
エラーがでにくいcsvの読み込み方を見つけたので,メモ.
df = pd.read_csv("./hoge.csv", engine="python ...置換する文字を複数指定[Python]

import repatterns = "dog|cat|fox"repl = "animal"sentence = "dog, cat, fox, pen."re.sub(patterns, repl, sentence)>> ...
f'{hoge}’はフォーマット文字列リテラル(f-strings)[Python]

Kaggleを眺めていると見慣れない記法を発見。
x = str(x)for punct in puncts:x = x.replace(punct, f' {punct} ')return xん? f’ {p ...
MeCabをWindowsにインストールするのは意外と厄介[MeCab][Windows]

pip install MeCabだけで済むと思ってたのに意外と厄介な手順を踏んだので忘れないようにメモ
有志の方のリポジトリからexeをダウンロードどうやらまともにMeCabをインストールするにはソースのビルドなど面倒な ...
MeCabで日本語の分かち書き[MeCab][Python]

import MeCabmecab = MeCab.Tagger ("-Owakati")print(mecab.parse("平成最後の初売りセールが開催中"))平成 最後 の 初 売り セール が 開催 中
OR
import ...