解决 'ValueError: The number of classes has to be greater than one' 错误:SVM模型标签问题
'E://论文程序//LBPGLCM_SVM_Project-main//LBP朱笔特改.py:84: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray./n data = np.array(data).reshape(-1, 1)/nE://Anaconda//envs//XIN//lib//site-packages//sklearn//utils//validation.py:1143: DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change the shape of y to (n_samples, ), for example using ravel()./n y = column_or_1d(y, warn=True)/nTraceback (most recent call last):/n File /'E://论文程序//LBPGLCM_SVM_Project-main//LBP朱笔特改.py/', line 98, in
原文地址: https://www.cveoy.top/t/topic/pHs6 著作权归作者所有。请勿转载和采集!