摘要:
报错:'0.80454153 is not JSON serializable' 输出y_pred_prob的类别:<type 'numpy.float32'> 参考https://stackoverflow.com/questions/27050108/convert-numpy-type-to- 阅读全文
摘要:
from itertools import islice start = 1 # 跳过第一行idx=0,从idx=1开始读取文件 with codecs.open('data.json', encoding='utf-8') as fr: for idx, line in enumerate(islice(fr, start, None)): print i... 阅读全文