Skip to content

ValueError: Found array with 0 sample(s) (shape=(0, 59)) while a minimum of 1 is required by StandardScaler. #13

@sohan-ranjan

Description

@sohan-ranjan

While running the run_train_SVM.py, the feature values do get computed, but not sure if they are getting added .
train_SVM.py in main(multi_mode, winL, winR, do_preprocess, use_weight_class, maxRR, use_RR, norm_RR, compute_morph, oversamp_method, pca_k, feature_selection, do_cross_val, C_value, gamma_value, reduced_DS, leads_flag)
195 # scaled: zero mean unit variance ( z-score )
196 scaler = StandardScaler()
--> 197 scaler.fit(tr_features)
198 tr_features_scaled = scaler.transform(tr_features)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions