摘要:
功能:四舍五入取值,常用在逻辑回归值为 0 或 1 中 def around(a: Union[ndarray, Iterable, int, float], decimals: Optional[int] = 0, out: Optional[ndarray] = None) → Any 参数: 阅读全文
posted @ 2020-07-19 16:57
-费费
阅读(2837)
评论(0)
推荐(0)
摘要:
在 python 中,与数据类型相关函数及属性有三个: 名称 作用 type() 返回参数的数据类型 dtype() 返回数组中元素的数据类型 astype() 对数据类型进行转换 实例: import numpy as np a = np.arange(5) type(a) Out[4]: num 阅读全文
posted @ 2020-07-19 14:07
-费费
阅读(2938)
评论(0)
推荐(0)

浙公网安备 33010602011771号