自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 scipy 生存函数=1-分布函数

scipy.stats.norm中介绍到,直接使用sf接口会比1-cdf来的准确。

2023-06-20 20:41:28 77

原创 numpy 关联排序

3. np.choose——待探索,不快。1. 直接位置索引——耗时1.57s。2. sorted——耗时18.2s。

2023-06-20 00:11:08 44

原创 numpy过滤 choose where select

np.select() 满足条件则执行运算。np.where() 满足条件的过滤出来。np.choose() 按索引选出值。

2023-06-19 22:35:45 49 1

原创 numba 多线程更快?

return b。

2023-06-19 22:24:29 62

原创 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 30

原创 ndarray setflags/flags

1. 执行df_tst.flags ,结果:2.设置flags。

2023-06-19 21:18:44 54

原创 LightGBMError: Cannot set reference after freed raw data

本来是要复用oos的数据的,所以一开始把oos写在了循环外面,结果循环进行到第二次的时候就开始报错,遂把oos的生成写在了循环里面,就不报错了。lgb.Dataset不能复用。

2023-06-19 14:17:18 118

原创 lightgbm The truth value of an array with more than one element is ambiguous

上面报错,把feature_name改为list类型之后不报错了:

2023-06-19 11:21:21 65

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除