翔泳社では、「独習」「徹底入門」「スラスラわかる」「絵で見てわかる」「一年生」などの人気シリーズをはじめ、言語や開発手法、最新技術を解説した書籍を多数手がけています。プロジェクトマネジメントやチームビルティングといった管理職向けの ...
今回はOpenCVで読み込んだ画像データをTensorFlowに渡して簡単な画像分類をしてみる。 【1】numpy.ndarrayとtf.Tensorオブジェクト互換性 OpenCVで読み込んだ画像データの実態は「numpy.ndarrayオブジェクト」である。 これに対しTensorFlowは主に「tf.Tensorオブジェクト」を ...
科学技術計算や機械学習、大規模なデータ分析を行う際、膨大な数値データを高速に処理することは不可欠です。Python標準のリスト型は柔軟性が高い一方で、大量のデータを扱う際の処理速度やメモリ効率には限界があります。そこで、データサイエンスの ...
This module takes an input ndarray and either appends a singleton dimension (a dimension of length one) or inserts it before a specific dimension. input: The input ndarray to be unsqueeze axes ...
Within many development languages, there is a popular paradigm of using N-Dimensional arrays. They allow you to write numerical code that would otherwise require many levels of nested loops in only a ...
This library implements the basic vector operations of the Level 1 Basic Linear Algebra Subprograms (BLAS). Many of these functions are also implemented in ndarray-ops—which also has functions that ...