- 博客(8)
- 收藏
- 关注
原创 numpy过滤 choose where select
np.select() 满足条件则执行运算。np.where() 满足条件的过滤出来。np.choose() 按索引选出值。
2023-06-19 22:35:45
104
1
原创 numpy 排序
numpy.sort : Return a sorted copy of an array.numpy.argsort : Indirect sort.numpy.lexsort : Indirect stable sort on multiple keys.numpy.searchsorted : Find elements in sorted array.numpy.partition: Partial sort.
2023-06-19 21:37:24
68
原创 LightGBMError: Cannot set reference after freed raw data
本来是要复用oos的数据的,所以一开始把oos写在了循环外面,结果循环进行到第二次的时候就开始报错,遂把oos的生成写在了循环里面,就不报错了。lgb.Dataset不能复用。
2023-06-19 14:17:18
242
原创 lightgbm The truth value of an array with more than one element is ambiguous
上面报错,把feature_name改为list类型之后不报错了:
2023-06-19 11:21:21
129
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅