我试图根据提供的here的要点来计算Pearson Correlation。奇怪地得到ValueError: all the input array dimensions for the concatenation axis must match exactly, but along下面是提供的函数: def cor_selector(X, y, num_feats): feature_name = X.columns.tolist()[True if i in
我已经构建了一个输入矩阵,并且一直收到以下错误。ValueError: Input contains NaN, infinity or a value too large for dtype('float64').我该怎么做才能去掉矩阵中的无限值,以便可以使用亲和传播算法?
我使用的是anaconda和python 2.7.9。