2018-01-01から1年間の記事一覧
numpy のrandom 等 で乱数操作のの説明となります。 関連のページ: https://docs.scipy.org/doc/numpy/reference/routines.random.html numpyモジュールのimport import numpy as np import numpy.random as random randn() seed指定で毎回同じ乱数が出る ra…
データ解析、機械学習で使用される統計などの技術 python の数学系ライブラリについての内容となります。========= 参考は。大学さまの公開資料や、python数学系ライブラリの参考記事、 統計学の参考記事を参考にしています。より詳しく理解されたい方は 記…
numpy のsort() 等の説明となります。 関連のページ: https://docs.scipy.org/doc/numpy/reference/routines.sort.html sort() # ソート a1 = np.array([5,4,3,2,1]) print(a1 ) a1.sort() print(a1 ) 結果: [5 4 3 2 1] [1 2 3 4 5] sort() 実行後に、配列…
numpy の配列作成等の内容となります。 関連のページ: https://docs.scipy.org/doc/numpy/reference/routines.array-creation.html index: index: array() arange() linspace() zeros() ones() array() array(配列 , dtype ) # array() a1 = np.array([5,4,3…