Machine Learning

Thumbnail of post image 137

www.kaggle.com

import osimport numpy as npimport pandas as pdfrom PIL import Imageimport matplotlib.pyplot as pltl ...

Docker

Thumbnail of post image 020

Dockerを使っていて最初に行き詰まるのは,コンテナとホストのファイルの共有をどうするかだろう.

フォルダを共有するためには -v コマンドの後に ホストのフォルダパス : コンテナのフォルダパス を書く.

...

GAN,NLP

Thumbnail of post image 122

長文を生成可能なLeakGANをインストールし,サンプルを動かしてみたのでメモ.本記事では,dockerで作成したコンテナ上でサンプルを動かす手順について紹介.

まずはnvidia-docker2で動作環境を用意する.

論文サマリ

Thumbnail of post image 091

Tracking Multiple Objects Outside the Line of Sight using Speckle Imaging (CVPR2018)

ieeexplore.ieee.org

目的

障害物によ ...

NLP

Thumbnail of post image 071

品詞が日本語でまとめられているので分かりやすい.

www.ibm.com

Pandas,Python

Thumbnail of post image 199

Windowsでpd.read_csvを使うと頻繁にエラーがでる.

エラーがでにくいcsvの読み込み方を見つけたので,メモ.

df = pd.read_csv("./hoge.csv", engine="python ...

Python

Thumbnail of post image 068

import repatterns = "dog|cat|fox"repl = "animal"sentence = "dog, cat, fox, pen."re.sub(patterns, repl, sentence)>> ...

Python

Thumbnail of post image 114

Kaggleを眺めていると見慣れない記法を発見。

x = str(x)for punct in puncts:x = x.replace(punct, f' {punct} ')return x

ん? f’ {p ...

MeCab,Windows

Thumbnail of post image 185

pip install MeCabだけで済むと思ってたのに意外と厄介な手順を踏んだので忘れないようにメモ

有志の方のリポジトリからexeをダウンロード

どうやらまともにMeCabをインストールするにはソースのビルドなど面倒な ...

MeCab,Python

Thumbnail of post image 102

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

OR

import ...