Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Feature 側の label 数が少ない場合 #2

@micchu

Description

@micchu

feat_labels = np.unique(brain_labels)

ここを下記のように書いてしまと,BData側には存在するが,Feature側には存在しない,という条件のlabelがある場合,エラーが起こる.
feat_labels = np.unique(brain_labels)

feat_labels はきちんとFeatures側から取得しなければならない.
下記のような昔のバージョンだと正しく実装されているので,こちら,最新版というか,get_labels_multi_bdatas 族の関数を使い始めた実装から生じたバグです.

https://github.com/KamitaniLab/feature-decoding/blob/ca949e1db2bd690fbe0e4b00ae21447335de713f/featdec_cv_fastl2lir_train.py

つまり元バージョンに差し戻すと問題ないです.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions