次のコードでニューロンのセットを取得するために neupy を使用しています。
All = pd.read_csv("inputfile.csv")
df = pd.DataFrame(All)
coords = df.as_matrix(columns=['lat', 'lng'])
sofmnet = algorithms.SOFM(n_inputs=2,
n_outputs=4,
step=0.5,
show_epoch=1,
shuffle_data=True,
verbose=True,
learning_radius=1,
features_grid=(4, 1),)
sofmnet.train(coords,epochs=20)
neuronlocations = sofmnet.weight.T
1-各ニューロンに関連付けられたポイントのセットを読み取る/取得する方法は? 2-inputfile.csv には日付、緯度、経度のフィールドがあります。毎日の各ニューロンのポイント数をカウントしたい。どうやって進める?ありがとう