- Mastering Machine Learning for Penetration Testing
- Chiheb Chebbi
- 166字
- 2021-06-25 21:03:06
Theano
Optimization and speed are two key factors to building a machine learning model. Theano is a Python package that optimizes implementations and gives you the ability to take advantage of the GPU. To install it, use the following command:
pip install theano

To import all Theano modules, type:
>>> from theano import *
Here, we imported a sub-package called tensor:
>>> import theano.tensor as T
Let's suppose that we want to add two numbers:
>>> from theano import function
>>> a = T.dscalar('a')
>>> b = T.dscalar('b')
>>> c = a + b
>>> f = function([a, b], c)
The following are the full steps:

By now, we have acquired the fundamental skills to install and use the most common Python libraries used in machine learning projects. I assume that you have already installed all of the previous packages on your machine. In the subsequent chapters, we are going to use most of these packages to build fully working information security machine learning projects.
- 社交網(wǎng)絡對齊
- 物聯(lián)網(wǎng)安全:理論、實踐與創(chuàng)新
- TCP/IP入門經(jīng)典(第5版)
- 物聯(lián)網(wǎng)關(guān)鍵技術(shù)及應用
- 局域網(wǎng)組建、管理與維護項目教程(Windows Server 2003)
- 企業(yè)私有云建設指南
- React:Cross-Platform Application Development with React Native
- 物聯(lián)網(wǎng)技術(shù)與應用
- 智慧光網(wǎng)絡:關(guān)鍵技術(shù)、應用實踐和未來演進
- C/C++串口通信:典型應用實例編程實踐
- Microsoft Dynamics CRM 2011 Applications(MB2-868) Certification Guide
- Mastering Dart
- Unity Artificial Intelligence Programming
- 光纖通信系統(tǒng)與網(wǎng)絡(修訂版)
- 網(wǎng)管工具使用與技巧大全