博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
numpy array_split()
阅读量:4709 次
发布时间:2019-06-10

本文共 521 字,大约阅读时间需要 1 分钟。

numpy.
array_split
(ary, indices_or_sections, axis=0)

Split an array into multiple sub-arrays.

Please refer to the split documentation. The only difference between these functions is that array_split allows indices_or_sections to be an integer that does not equally divide the axis.

See also

Split array into multiple sub-arrays of equal size.

Examples

>>> x = np.arange(8.0) >>> np.array_split(x, 3) [array([ 0., 1., 2.]), array([ 3., 4., 5.]), array([ 6., 7.])]

转载于:https://www.cnblogs.com/qinduanyinghua/p/7134346.html

你可能感兴趣的文章
iPad软件提交注意事项
查看>>
约束和异常处理
查看>>
css 布局
查看>>
RESTful风格化
查看>>
C# 多线程学习系列二
查看>>
如何将你的github仓库部署到github pages(转)
查看>>
几个重要的shell命令:diff patch tar find grep
查看>>
学习笔记
查看>>
JS ES6 -- let命令
查看>>
查找空座位问题
查看>>
几个简单规则改进你的SEO效果
查看>>
UVA10820 Send a Table
查看>>
主流css reset的讲解分析(转载)
查看>>
OpenCV4Android Tutorial0解析
查看>>
Oracle数据库(一)
查看>>
SVD与文本摘要
查看>>
HDU 5451 广义斐波那契数列
查看>>
mysql5.6配置文件my.ini位置
查看>>
[BZOJ4820][SDOI2017]硬币游戏(高斯消元+KMP)
查看>>
构造矩阵解决这个问题 【nyoj299 Matrix Power Series】
查看>>