网页学习体会

  • 首页
  • 个人博客
您的位置: 首页  >  IT文章  >  02.Fancy Indexing

02.Fancy Indexing

分类: IT文章 • 2024-07-11 13:54:00
import numpy as np
x = np.arange(16)

index = [3,5,8]
x[index]
array([3, 5, 8])
X = x.reshape(4,-1)
X
array([[ 0,  1,  2,  3],
       [ 4,  5,  6,  7],
       [ 8,  9, 10, 11],
       [12, 13, 14, 15]])
row = np.array([0,1,2])
col = np.array([1,2,3])
X[row,col]
array([ 1,  6, 11])

col = [True,False,True,True]
X[col]
array([[ 0,  1,  2,  3],
       [ 8,  9, 10, 11],
       [12, 13, 14, 15]])
															

相关推荐

  • Esper系列(十一)NamedWindow语法Merge、Queries、Indexing、Dropping
  • Phoenix二级索引(Secondary Indexing)的使用
  • Elasticsearch NEST – Examples for mapping between Query and C# Elasticsearch NEST – Examples for mapping between Query and C# 1. Indexing Employee Documents 2. Retrieving a Document 3. Search Lite 4. Search with Query DSL 5. Search with Query String 6. More-Complicated Searches 7. Full-Text Search 8. Phrase Search 9. Highlighting Our Searches 10. Analytics 11. Analytics limit 12. Analytics with Average 13. Retrieving Part of a Document 14. Updating a
  • Error on adding indexing context central, Unknown format version:
  • sqlserver indexing server win7解决办法
  • 02.Fancy Indexing
  • Lucene/Solr Dev 二 : Indexing and Searching Simultaneously
  • lucene 4.6 之indexing 之 IndexChain,目录数据结构
  • 理解奇异值分解SVD和潜在语义索引LSI(Latent Semantic Indexing)
  • IDEA一直在indexing的解决方案
  • 09.超参数
  • 01.Numpy数组的基本应用
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 网页学习体会    备案号:   粤ICP备20002247号