天天看點

人工智能實踐:Tensorflow筆記02:TF常用函數

1。類型轉化,找最大最小值:

人工智能實踐:Tensorflow筆記02:TF常用函數

2.axis

人工智能實踐:Tensorflow筆記02:TF常用函數
人工智能實踐:Tensorflow筆記02:TF常用函數

3.可訓練:variable

人工智能實踐:Tensorflow筆記02:TF常用函數

4.數學運算:

人工智能實踐:Tensorflow筆記02:TF常用函數
人工智能實踐:Tensorflow筆記02:TF常用函數
人工智能實踐:Tensorflow筆記02:TF常用函數

5.标簽和特征配對:

人工智能實踐:Tensorflow筆記02:TF常用函數
人工智能實踐:Tensorflow筆記02:TF常用函數

6求導數:

人工智能實踐:Tensorflow筆記02:TF常用函數

7。enumerate:枚舉出所有元素,且都加上枚舉的索引号。

人工智能實踐:Tensorflow筆記02:TF常用函數

8。獨熱碼:

人工智能實踐:Tensorflow筆記02:TF常用函數
人工智能實踐:Tensorflow筆記02:TF常用函數

也就是讓哪個位置為0.

9。softmax:把數字變為機率,全部和為1.

人工智能實踐:Tensorflow筆記02:TF常用函數
人工智能實踐:Tensorflow筆記02:TF常用函數

10。sub等自更新

人工智能實踐:Tensorflow筆記02:TF常用函數

11。找指定軸的最大最小值:

人工智能實踐:Tensorflow筆記02:TF常用函數

繼續閱讀