- Neural Network Programming with TensorFlow
- Manpreet Singh Ghotra Rajdeep Dua
- 83字
- 2021-07-02 15:17:10
Determinant
Determinant shows us information about the matrix that is helpful in linear equations and also helps in finding the inverse of a matrix.
For a given matrix X, the determinant is shown as follows:


The following example shows how to get a determinant using TensorFlow:
import tensorflow as tf
import numpy as np
x = np.array([[10.0, 15.0, 20.0], [0.0, 1.0, 5.0], [3.0, 5.0, 7.0]], dtype=np.float32)
det = tf.matrix_determinant(x)
with tf.Session() as sess:
print(sess.run(det))
The output of this is shown as follows:
-15.0
推薦閱讀
- 輕松學(xué)大數(shù)據(jù)挖掘:算法、場景與數(shù)據(jù)產(chǎn)品
- SQL查詢:從入門到實踐(第4版)
- 數(shù)據(jù)結(jié)構(gòu)與算法(C語言版)
- 揭秘云計算與大數(shù)據(jù)
- Enterprise Integration with WSO2 ESB
- 深入淺出MySQL:數(shù)據(jù)庫開發(fā)、優(yōu)化與管理維護(第2版)
- 數(shù)據(jù)驅(qū)動:從方法到實踐
- Mockito Cookbook
- 數(shù)亦有道:Python數(shù)據(jù)科學(xué)指南
- 云數(shù)據(jù)中心網(wǎng)絡(luò)與SDN:技術(shù)架構(gòu)與實現(xiàn)
- 辦公應(yīng)用與計算思維案例教程
- R語言數(shù)據(jù)挖掘
- 貫通SQL Server 2008數(shù)據(jù)庫系統(tǒng)開發(fā)
- 智慧城市中的大數(shù)據(jù)分析技術(shù)
- The Natural Language Processing Workshop