PILで透過PNGのαチャンネルを消す方法[Python][PIL][RGBA]

In: from PIL import ImageIn: img_pil = Image.open("hoge.png")In: img_pil.mode Out: 'RGBA'In: img_pil = img_pil.convert(" ...
find_allの後にfind_allしたいとき[Python] [Beautiful soup]

Beautiful soupでパースしたオブジェクトにfind_allの後にfind_allをするとエラーが出る.# エラーがでる例soup = BeautifulSoup(html, "html.parser")obj = soup.fi ...
Kaggleからダウンロード可能な機械学習用データセット

Kaggleは世界中のデータサイエンティストが自身の腕を競い合うコンペティションだ.
競技者たちはスポンサーが提供するデータセットに適切な予測なモデルを構築し,その予測精度を競う.もしあなたが1位をとることができたのであれ ...
‘/etc/apt/sources.list.d/cuda.list’ を上書きしようとしています。のエラーがでたときの対処法

入力したコマンド:
$ sudo dpkg -i cuda-repo-ubuntu1710_9.2.88-1_amd64.debでたエラー:
(データベースを読み込んでいます … 現在 127833 ...
Ubuntu16.04にNeo4jをインストールして動かすまで

Neo4j のインストール
リポジトリキーを取得し、aptリストに追加
$ wget --no-check-certificate -O - | sudo apt-key add -$ sudo apt-get update$ ...Win版AnacondaでPermission deniedがでたときの対処法

Anaconda Prompt上で以下のコマンドを打つだけでOK
(標準のCommand PromptやWindows Power Shellではない)
anaconda-navigator --resetGraphvizで描いたノードに画像を貼り付ける(Pythonで)

ノードの引数に貼り付けたい画像のバスを書くだけ。
from graphviz import Digraph# Ready to parent graph.g = Digraph(comment = 'Graph')g.node( ...NLPででてくる BIO Tag って何?

BIO Tagは Entity Recognition や Semantic Role Labeling のタスクなどで単語につけるタグとして用いられ, それぞれの文字に以下の意味がある.
B: ‘beginn ...
深層学習用環境のセットアップ Ubuntu GNOME 16.04 LTS + CUDA9.1 + cuDNN7

Ubuntu GNOME 16.04 LTS のインストール
日本語のフォルダ名を英語に変換
Linux kernel header のインストールを行う
CUDA9.1 のインストール
NVIDIA drivers ...
日本語のフォルダ名を英語に変換
Linux kernel header のインストールを行う
CUDA9.1 のインストール
NVIDIA drivers ...
Pythonの実行環境を構築したDockerコンテナに入ってコマンド実行

Pythonの実行環境を構築したDockerコンテナに入ってコマンド実行
$ docker exec hoge-container python hoge.py arg1 arg2hoge-container: Pytho ...