当前位置:网站首页>np. unravel_ Index() finds the index value of an element (or group of elements) of the array after being pulled into one dimension. The corresponding index value in the original dimension (or specify
np. unravel_ Index() finds the index value of an element (or group of elements) of the array after being pulled into one dimension. The corresponding index value in the original dimension (or specify
2022-07-28 04:36:00 【Growing radish on Mars】
np.unravel_index() Generally speaking, it is related to np.argmax(A) or np.argmin(A) In combination with
https://blog.csdn.net/MaeveShi/article/details/107378520
One sentence summary : Find an element of the array ( Or a group of elements ) The index value after being pulled into one dimension is in the original dimension ( Or specify a new dimension ) The corresponding index in
The summary given on the official website is convert a flat index or array of flat indices into a tuple of coordinate arrays.
ind_max = np.argmax(A) The return is to pull 1 Index of the array of dimensions
print(ind_max)
18
# Known by observation , 18 It's a matrix A in 99 Index value after stretching into one dimension , Next use unravel_index Ask it in its own dimension (2,3,5) Index value under
ind_max_src = np.unravel_index(ind_max, A.shape)
https://blog.csdn.net/MaeveShi/article/details/107378520
边栏推荐
- [Sylar] framework Chapter 8 timer module
- Reading the paper "learning span level interactions for aspect sentimental triple extraction"
- 方舟生存进化自建服务器要多少成本?
- Solana's "deceptive behavior": making mobile phones and opening stores
- 【sylar】框架篇-Chapter20-守护进程模块
- Information system project manager (2022) - key content: Knowledge Management (15)
- Important SQL server functions - string utilities
- Information system project manager (2022) - key content: Strategic Management (17)
- Ma Yi, Shen Xiangyang, Cao Ying's latest AI overview is hot! It took 3 months to build, netizens: required papers
- bubble sort
猜你喜欢

Efficient practice intelligent analysis of massive log data in aviation industry
![[yolov5 practice 5] traffic sign recognition system based on yolov5 -yolov5 integration pyqt5](/img/81/89b8e38801f706ef396943a79ef4c5.png)
[yolov5 practice 5] traffic sign recognition system based on yolov5 -yolov5 integration pyqt5

23 openwrt switch VLAN configuration

How to select reliable securities analysts?

How to upgrade a pair of 12.2 RAC(primary) and a pair of 12.2 RAC(dataguard) to 19c

Shanghai Telecom released public computing services and signed the action plan of "Joint Innovation Center for intelligent computing applications" with Huawei and other partners

Learn regular expressions (regexp)

Bio annotation of emotion analysis aste triples extraction

Use Baidu developer tool 4.0 to build a dedicated applet IDE

H. 265 web player easyplayer realizes webrtc video real-time recording function
随机推荐
Solana「迷惑行为」:造手机、开门店
[record of question brushing] 9. Number of palindromes
方舟生存进化自建服务器要多少成本?
Practice and thinking of AI standardization engine in pink client
Cloud native Devops status survey questionnaire solicitation: kodelurover launched jointly with oschina
Gerrit operation - rollback a patch_ set
[Sylar] framework -chapter7-io coordination scheduling module
[Sylar] practical part - redis based parameter query service
[Sylar] framework -chapter15 stream module
Information system project manager (2022) - key content: Project Risk Management (11)
MySQL数据库————初识数据库
Idea start project MVN command terminal cannot recognize "MVN" item as cmdlet
How to upgrade a pair of 12.2 RAC(primary) and a pair of 12.2 RAC(dataguard) to 19c
Important SQL server functions - string utilities
[Sylar] framework -chapter12 bytearray module
Important SQL server functions - date functions
[Sylar] framework chapter -chapter21- environment variable module
CMake使用基础汇总
Constructor of member function
高数_第4章__曲线积分_习题解法