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

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

Python

Poisson分布の条件付分布(Conditional)は二項分布に従うことの証明

// Poisson分布の条件付分布(Conditional)は二項分布に従うことの証明 Poisson分布の条件付分布(Conditional)は,二項分布に従うことの証明のメモ. ついでにSimulation もやってみる. Poisson分布の条件付分布(Conditional)は二項分布に従うことの証明 Poi…

Poisson分布の再生性(Reproductive property)の証明とシミュレーション

// Poisson分布の再生性(Reproductive property)の証明とシミュレーション Poisson分布の再生性(Reproductive property)の証明のメモ. Poisson分布の再生性(Reproductive property)の証明とシミュレーション ポアソン分布の再生性の証明 再生性のシミュレー…

言語処理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…

Python のdoctest を試す

Python のdoctest を試す 簡単にテストできるdoctest についてのメモ。 unittestモジュールより手軽に利用でき、 テスト駆動開発っぽいことができる。 Python のdoctest を試す 環境 doctest テストの実行 raise Exception のテスト 参考リンク 関連リンク …

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

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

Pythonの.pyファイルの関連付け[Windows]

Pythonの.pyファイルの関連付け[Windows] Python .pyファイルの関連付けについてのメモ。 Pythonの.pyファイルの関連付け[Windows] 環境 .pyファイルの関連付け assocコマンド ftypeコマンド 参考リンク 関連リンク 環境 Windows 10 conda 4.05 Python 3.5.1

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…

Dive Into Python3 7章メモ(クラスとイテレータ)

Dive Into Python3 7章メモ(クラスとイテレータ) Dive Into Python3 7章クラスとイテレータ(class, __init__, __iter__)についてのメモ。 Dive Into Python3 7章メモ(クラスとイテレータ) 7章 クラスとイテレータメモ 関連リンク Dive Into Python3 7…

Dive Into Python3 6章メモ(クロージャとジェネレータ)

Dive Into Python3 6章メモ(クロージャとジェネレータ) Dive Into Python3 6章クロージャとジェネレータについてのメモ。 Dive Into Python3 6章メモ(クロージャとジェネレータ) 6章 クロージャとジェネレータメモ 関連リンク Dive Into Python3 6章(ク…

Dive Into Python3 5章メモ(正規表現)

Dive Into Python3 5章メモ(正規表現) Dive Into Python3 5章正規表現(reモジュール、re.search()、 re.sub()、re.compile()、 冗長な正規表現、ローマ数字の正規表現、電話番号の正規表現)についてのメモ。 Dive Into Python3 5章メモ(正規表現) 5章 …