from modshogun import BinaryLabels # ランダムに5つのラベルを生成 label = BinaryLabels(5) label.get_num_labels() → 5 label.get_values() → array([ 2.00000000e+000, 2.00000000e+000, 1.38338381e-322,0.00000000e+000, 0.00000000e+000]) from modshogun import CSVFile # あらかじめ用意したCSVファイルからでも作成可能 label_from_csv = BinaryLabels(CSVFile(file_path)) from modshogun import RealFeatures import numpy as np # 3x3のランダム行列 feat_arr