Python

Thumbnail of post image 126

なんでこんなことするの?

CNNで学習するために、画像ファイルをTrainingとValidationに分けたかったから。

画像ファイルを7:3に分けるスクリプトfrom glob import globfrom os.path ...

Python

Thumbnail of post image 188

In: from PIL import ImageIn: img_pil = Image.open("hoge.png")In: img_pil.mode Out: 'RGBA'In: img_pil = img_pil.convert(" ...

Python

Thumbnail of post image 171

Beautiful soupでパースしたオブジェクトにfind_allの後にfind_allをするとエラーが出る.# エラーがでる例soup = BeautifulSoup(html, "html.parser")obj = soup.fi ...

Machine Learning

Thumbnail of post image 067

Kaggleは世界中のデータサイエンティストが自身の腕を競い合うコンペティションだ.

競技者たちはスポンサーが提供するデータセットに適切な予測なモデルを構築し,その予測精度を競う.もしあなたが1位をとることができたのであれ ...

Linux

Thumbnail of post image 190

入力したコマンド:

$ sudo dpkg -i cuda-repo-ubuntu1710_9.2.88-1_amd64.deb

でたエラー:

(データベースを読み込んでいます … 現在 127833 ...

Neo4j,Ubuntu

Thumbnail of post image 121

Neo4j のインストール

リポジトリキーを取得し、aptリストに追加

$ wget --no-check-certificate -O - | sudo apt-key add -$ sudo apt-get update$ ...

Python

Thumbnail of post image 143

Anaconda Prompt上で以下のコマンドを打つだけでOK

(標準のCommand PromptやWindows Power Shellではない)

anaconda-navigator --reset

Python

Thumbnail of post image 008

ノードの引数に貼り付けたい画像のバスを書くだけ。

from graphviz import Digraph# Ready to parent graph.g = Digraph(comment = 'Graph')g.node( ...

NLP

Thumbnail of post image 171

BIO Tagは Entity Recognition や Semantic Role Labeling のタスクなどで単語につけるタグとして用いられ, それぞれの文字に以下の意味がある.

B: ‘beginn ...

Linux,Ubuntu

Thumbnail of post image 052

Ubuntu GNOME 16.04 LTS のインストール
日本語のフォルダ名を英語に変換
Linux kernel header のインストールを行う
CUDA9.1 のインストール
NVIDIA drivers ...