在使用MarkovTransitionField时,运行出现UserWarning: Some quantiles are equal. The number of bins will be smaller for sample [0]. Consider decreasing the number of bins or removing these samples.
for i in range(X2.shape[1]):
mtf = MarkovTransitionField(image_size=X2.shape[0], n_bins = X2.shape[0], strategy = 'quantile')
X_mtf = mtf.fit_transform(np.array(s[i]).reshape(1, -1))#得把那个NM_M地质变量去掉,因为它的值在一小段内相同,所以就没有形态
X_mtf = X_mtf.reshape(X_mtf.shape[1], X_mtf.shape[2])
X_mtf = X_mtf.reshape(-1, 1)
X_mtf = X_mtf.reshape(X_mtf.shape[0])
X_mtf = list(X_mtf.T)
bs.append(X_mtf) 这是源码,请大神赐教
https://pyts.readthedocs.io/en/latest/generated/pyts.image.MarkovTransitionField.html