- Mastering Machine Learning for Penetration Testing
- Chiheb Chebbi
- 234字
- 2021-06-25 21:03:05
TensorFlow
If you have been into machine learning for a while, you will have heard of TensorFlow, or have even used it to build a machine learning model or to feed artificial neural networks. It is an amazing open source project, developed essentially and supported by Google:

The following is the main architecture of TensorFlow, according to the official website:

If it is your first time using TensorFlow, it is highly recommended to visit the project's official website at https://www.tensorflow.org/get_started/. Let's install it on our machine, and discover some of its functionalities. There are many possibilities for installing it; you can use native PIP, Docker, Anaconda, or Virtualenv.
Let's suppose that we are going to install it on an Ubuntu machine (it also supports the other operating systems). First, check your Python version with the python --version command:

Install PIP and Virtualenv using the following command:
sudo apt-get install python-pip python-dev python-virtualenv

Now, the packages are installed:

Create a new repository using the mkdir command:
#mkdir TF-project
Create a new Virtualenv by typing the following command:
virtualenv --system-site-packages TF-project

Then, type the following command:
source <Directory_Here>/bin/activate
Upgrade TensorFlow by using the pip install -upgrade tensorflow command:

>>> import tensorflow as tf
>>> Message = tf.constant("Hello, world!")
>>> sess = tf.Session()
>>> print(sess.run(Message))
The following are the full steps to display a Hello World! message:

- Hands-On Industrial Internet of Things
- 4G小基站系統(tǒng)原理、組網(wǎng)及應(yīng)用
- Hands-On Bitcoin Programming with Python
- 云計算技術(shù)與標準化
- 數(shù)字王國里的虛擬人:技術(shù)、商業(yè)與法律解讀
- 從物聯(lián)到萬聯(lián):Node.js與樹莓派萬維物聯(lián)網(wǎng)構(gòu)建實戰(zhàn)
- Microservices Development Cookbook
- 加密與解密實戰(zhàn)全攻略
- XSS跨站腳本攻擊剖析與防御
- OpenShift Cookbook
- 邊緣計算及其資源管理技術(shù)
- 局域網(wǎng)組建與維護項目教程
- 物聯(lián)網(wǎng)與智能制造
- Full-Stack Web Development with Vue.js and Node
- iOS 12 Programming for Beginners