2018-05-31から1日間の記事一覧

$! は最後に実行したバックグラウンドプロセスID

$1, $2, $3, ... are the positional parameters. "$@" is an array-like construct of all positional parameters, {$1, $2, $3 ...}. "$*" is the IFS expansion of all positional parameters, $1 $2 $3 .... $# is the number of positional parameters.…

GremlinでSample作成

TinkerPop3 Documentation graph = TinkerGraph.open() marko = graph.addVertex(T.label, "person", T.id, 1, "name", "marko", "age", 29) vadas = graph.addVertex(T.label, "person", T.id, 2, "name", "vadas", "age", 27) lop = graph.addVertex(T.lab…

二次元の分類結果を plot

機械学習の結果、2 個の特徴の座標と分類結果をわかりやすく図で出力している import numpy as np import matplotlib.pyplot as plt from matplotlib.colors import ListedColormap def plot_dicision_regions(X, y, classifier, test_idx=None, resolusions…