0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

numpy > 特定のインデックスをnp.array()に逐次足す / そのリストをインデックスとして使って要素を取り出す

0
Last updated at Posted at 2016-10-22
動作環境
Ubuntu 14.04 LTS desktop amd64
GeForce GTX 750 Ti
ASRock Z170M Pro4S [Intel Z170chipset]
TensorFlow v0.11
cuDNN v5.1 for Linux
CUDA v7.5
Python 2.7.6
IPython 5.1.0 -- An enhanced Interactive Python.

TensorFlowのmnist.pyにあるnext_batchをQMC改造しようとしている。QMC(Halton Sequence)は順次計算され、そのリストを持ってtrainデータの要素を取得しようと考えている。

インデックスが得られた場合の要素の取り出しは以下で理解した。
http://qiita.com/7of9/items/6851c743de9faee4ab00

次はインデックスに数値を順次足す処理を理解する。
色々試したところ、以下で実行できた。

qiita.png

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?