fullseye

train_class_knn — MV classify op

使い方

k-NN の分類器を作る(特徴を標準化して保持する)。

標準偏差が 0 の列は 1 で割る(その列は距離に効かない)。 空の入力(features が 0 要素)は ValueError。

Args: features: (N, D) の特徴。 labels: 長さ N のクラス(2 種類以上)。

Returns: X、y、mu、sd を持つモデルの dict。

詳しい使い方ガイド

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(table を入力に取れる)

map_image · rectify_to_world_plane · change_radial_distortion_image · find_ncc_models · run_bg_esti · give_bg_esti · update_bg_esti · classify_class_gmm

同カテゴリ(classify)

train_class_gmm · classify_class_gmm · evaluate_class_gmm · classify_class_knn · train_class_mlp · classify_class_mlp · train_class_svm · classify_class_svm


Provenance: mvclass.py — MV operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.