はしくれエンジニアもどきのメモ

情報系技術・哲学・デザインなどの勉強メモ・備忘録です。

Jupyter

Jupyter上にGraphvizの図をSVGで描画する

Jupyter上にGraphvizの図をSVGで描画する Jupyter上にGraphviz(.dot)の図をSVGで描画することに成功したのでメモとして残す。(※拡張機能としてはまだ作れていない) Viz.jsのおかげでJavaのインストールすら不要になった..! dotファイルのコードを書い…

Jupyter Notebookインストール後の設定メモ

Jupyter Notebookインストール後の設定メモ Jupyter Notebookインストール後の「起動後のディレクトリ設定」や「ブラウザの指定」などのメモである. よさげな設定があった場合,随時更新予定. 環境 Windows10 Pro 64bit [Version 10.0.17134.285] conda 4.…

Jupyter Notebook の `Cannot configure while the Jupyter notebook server is running` エラー対策

Jupyter Notebook の Cannot configure while the Jupyter notebook server is running エラー対策 Jupyter Notebook で Cannot configure while the Jupyter notebook server is running エラーが出たときの対処メモ. 今のところ,一時的な対策しかない? …

Python で指定URLのページをブラウザから開く

Python で指定URLのページをブラウザから開く 「Python (Jupyter notebook) で指定URLのページをブラウザから開く」処理のメモ. Python で指定URLのページをブラウザから開く 環境 Python で指定URLのページをブラウザから開く 参考リンク 環境 Windows10 c…

Jupyter Notebookファイルをモジュールのようにロードする

jupyter notebookファイルをモジュールのようにロードする jupyter notebookファイルを 疑似的にpythonモジュールのようにロードして使うメモ. jupyter notebookファイルをモジュールのようにロードする 環境 notebookファイルをロード notebookファイルの…

IPython-notebook-extensions(< 0.2.0)から0.2以降へのアップデートメモ

Table of Contents¶ 1 IPython-notebook-extensions(< 0.2.0)から0.2以降へのアップデートメモ 1.1 環境 1.2 旧バージョンをアンインストール 1.2.1 インストール済みのextensionの確認 1.2.2 extensionの無効化 1.2.3 extensionのアンインストール 1.2.4 co…

キバハリアリ(myrmesia)でみる重回帰モデル

// キバハリアリ(myrmesia)でみる重回帰モデル 明けましておめでとうございます. 早速ですが,今回キバハリアリデータセットを使って重回帰を適用してみます. 今回はキバハリアリの頭幅を重回帰モデルで予測を試みます. 今回使用したデータとコードはgith…

言語処理100本ノック 3章後半メモ(正規表現)

言語処理100本ノック 3章後半メモ(正規表現) 25-29番まで。 言語処理100本ノック 3章後半メモ(正規表現) 環境 3章(後半)メモ 参考リンク 関連リンク 環境 Windows 10 conda 4.07 python 3.5.1 jupyter 4.1.0

言語処理100本ノック 3章前半メモ(正規表現)

言語処理100本ノック 3章前半メモ(正規表現) 20-24番まで。 言語処理100本ノック 3章前半メモ(正規表現) 環境 3章メモ 参考リンク 関連リンク 環境 Windows 10 conda 4.05 python 3.5.1 jupyter 4.1.0

言語処理100本ノック 2章メモ(Unixコマンドの基礎編)

言語処理100本ノック 2章メモ(Unixコマンドの基礎編) Unix環境がないので、Windows powershell で試してみました。 言語処理100本ノック 2章メモ(Unixコマンドの基礎編) 環境 2章メモ 参考リンク 関連リンク 環境 Windows 10 conda 4.05 python 3.5.1 ju…

言語処理100本ノック 1章メモ(準備運動編)

言語処理100本ノック 1章メモ(準備運動編) 全部やるのは辛いと思う(とくに後半)ので、4章までを目標にぼちぼちやっていきたいと思います。 どの業界にもこういうスタイルのテキストがあると、 初心者は勉強になりますねー。 言語処理100本ノック 1章メモ…

Python (NumPy) でLifeGame を作る3[matplotlibで可視化]

Python (NumPy) でLifeGame を作る3[matplotlibで可視化] 行列を表示しても見づらいので、matplotlibで可視化してみました。 前回: cartman0.hatenablog.com Python (NumPy) でLifeGame を作る3[matplotlibで可視化] 環境 コード 実行例 Tテトロミノ ミツバ…

matplotlib のanimation を保存

matplotlib のanimation を保存 matplotlib のグラフは、 matplotlib.animation を使うことでアニメーションにすることできる。 そのアニメーション(動画)の保存についてメモ。 matplotlib のanimation を保存 環境 matplotlib.animation の保存 mp4の場合…

Python (NumPy) でLifeGame を作る2 [class]

Python (NumPy) でLifeGame を作る2[class] 前回作ったものをclass にしてみました。 cartman0.hatenablog.com Python (NumPy) でLifeGame を作る2[class] 環境 コード 実行例 参考リンク 関連リンク 環境 Windows 10 conda 4.05 python 3.5.1 jupyter 4.1.0

Python (NumPy) でLifeGame を作る

Python (NumPy) でLifeGame を作る NumPyの使い方わかってきたし、せっかくなのでLifeGame を作ってみます。 Python (NumPy) でLifeGame を作る 環境 LifeGameって何? ライフゲームのルールと実装 セル ルール1:生存 ルール2:誕生 ルール3:死亡 ルールを…

NumPy Tutorial メモ6 (Linear Algebra)

NumPy Tutorial メモ6 (Linear Algebra) NumPy Tutorial(LinearAlgebra (numpy.matrix、 ベクトルのスタック、ヒストグラムの描画など))についてのメモ。 NumPy Tutorial メモ6 (Linear Algebra) NumPy Tutorial(LinearAlgebra) メモ 参考リンク 関連リ…

NumPy Tutorial メモ5 (Fancy indexing and index tricks)

NumPy Tutorial メモ5 (Fancy indexing and index tricks) NumPy Tutorial(Fancy indexing and index tricks(軸を拡張するix_)など)についてのメモ。 NumPy Tutorial メモ5 (Fancy indexing and index tricks) NumPy Tutorial(Fancy indexing and index …

NumPy Tutorial メモ4 (Less Basic)

NumPy Tutorial メモ4 (Less Basic) NumPy Tutorial(Less Basic(行列のBroadCastingルール))についてのメモ。 NumPy Tutorial メモ4 (Less Basic) NumPy Tutorial(Less Basic) メモ 参考リンク 関連リンク NumPy Tutorialメモ4(Less Basic) nbviewer

NumPy Tutorial メモ3 (Copies and Views)

NumPy Tutorial メモ3 (Copies and Views) NumPy Tutorial(コピーなし、シャローコピー、ディープコピー)についてのメモ。 NumPy Tutorial メモ3 (Copies and Views) NumPy Tutorial(Copies and Views) メモ 参考リンク 関連リンク NumPy Tutorialメモ3(Co…

NumPy Tutorial メモ2 (ShapeManipulation)

NumPy Tutorial メモ2 (ShapeManipulation) NumPy Tutorial(ShapeManipulation reveal, flat, hstack, vstackなど)についてのメモ。 NumPy Tutorial メモ2 (ShapeManipulation) NumPy Tutorial(ShapeManipulation) メモ 参考リンク 関連リンク NumPy Tutor…

NumPy Tutorial メモ1(Basic)

NumPy Tutorial メモ1(Basic) NumPy Tutorial(Basic ndarrayの属性、配列の作成、配列の表示、基本演算、ユニバーサル関数、配列へのアクセスなど)についてのメモ。 以下のリンクを参考にした。 naoyat.hatenablog.jp NumPy 配列の基礎 — 機械学習の Pytho…

Dive Into Python3 特殊メソッド名メモ

Dive Into Python3 特殊メソッド名メモ Dive Into Python3 AppendixB 特殊メソッド名 (__init__(), __new__() など)についてのメモ。 Dive Into Python3 特殊メソッド名メモ 16章 Pythonライブラリをパッケージ化 メモ 関連リンク Dive Into Python3 Appen…

Dive Into Python3 16章メモ(Pythonライブラリをパッケージ化)

Dive Into Python3 16章メモ(Pythonライブラリをパッケージ化) Dive Into Python3 16章Pythonライブラリをパッケージ化する (Distutilsモジュール)、パッケージ化するときに必要そうな情報についてのメモ。 Dive Into Python3 16章メモ(Pythonライブラ…

Dive Into Python3 14章メモ(HTTPウェブサービス)

Dive Into Python3 14章メモ(HTTPウェブサービス) Dive Into Python3 14章HTTPウェブサービス (urllib.requestモジュール、httplib2モジュール、Basic認証)についてのメモ。 Dive Into Python3 14章メモ(HTTPウェブサービス) 14章 HTTPウェブサービス …

Dive Into Python3 13章メモ(Pythonオブジェクトをシリアライズ)

Dive Into Python3 13章メモ(Pythonオブジェクトをシリアライズ) Dive Into Python3 13章PYTHONオブジェクトをシリアライズする (pickleモジュール、jsonモジュール でのシリアライズ・ディシリアライズ)についてのメモ。 Dive Into Python3 13章メモ(P…

Dive Into Python3 12章メモ(XML)

Dive Into Python3 12章メモ(XML) Dive Into Python3 12章XML (Atomフィード、ElementTreeライブラリ、lxmlライブラリ、XMLのシリアライズ)についてのメモ。 Dive Into Python3 12章メモ(XML) 12章 XML メモ 関連リンク Dive Into Python3 12章(XML)…

Dive Into Python3 11章メモ(ファイル)

Dive Into Python3 11章メモ(ファイル) Dive Into Python3 11章ファイル (ストリームオブジェクト、ioモジュール)についてのメモ。 Dive Into Python3 11章メモ(ファイル) 11章 ファイル メモ 関連リンク Dive Into Python3 11章(ファイル)メモ nbvi…

Dive Into Python3 10章メモ(リファクタリング)

Dive Into Python3 10章メモ(リファクタリング) Dive Into Python3 10章リファクタリング についてのメモ。 Dive Into Python3 10章メモ(リファクタリング) 10章 リファクタリングメモ 関連リンク Dive Into Python3 10章(リファクタリング)メモ nbvie…

Dive Into Python3 9章メモ(ユニットテスト)

Dive Into Python3 9章メモ(ユニットテスト) Dive Into Python3 9章ユニットテスト(unittestモジュール、テスト駆動開発(TDD)、-vオプション、マジックコマンド%tb、Exceptionクラスの継承、testメソッドの作成)についてのメモ。 Dive Into Python3 9章…

Dive Into Python3 8章メモ(高度なイテレータ)

Dive Into Python3 8章メモ(高度なイテレータ) Dive Into Python3 8章高度なイテレータ(itertoolsモジュール、itertools.permutations(順列)、sorted、itertools.groupby、itertools.chain、zip、subprocessモジュール、eval)についてのメモ。 Dive In…