Artificial Intelligence Programming with Python 笔记二

本文介绍了AI开发中硬件如GPU和FPGA的作用,它们对机器学习和深度学习的加速效果。此外,提到了Python中的Scikit-Learn和TensorFlow等常用框架,以及PyTorch和Keras等接口库。还简单展示了使用Python进行图形绘制的示例代码。
摘要由CSDN通过智能技术生成

本章主要介绍了AI相关的开发工具,编程语言,框架等,属于比较简单的部分,略读即可,笔记如下:

关于硬件

Computers with GPUs For a more advanced user, if you want to train
more data or build more complicated, larger AI models, you will need
a more advanced computer, i.e., a computer with a graphics processing
unit (GPU). That typically includes a CPU with 8 cores, 32 GB RAM,
1 TB hard drive, and most importantly an NVIDIA GeForce RTX 1080 8GB GPU. GPUs, originally developed for video games, have
been increasingly used in machine learning and deep learning. GPUs can significantly speed up the calculations, thanks to their massive parallel processes. A prebuilt computer with a GPU is usually around $3,000, but you can get it much cheaper if you build it yourself.

带GPU的计算机如果你想训练,可以为更高级的用户。你需要更多的数据或构建更复杂、更大的人工智能模型

更先进的计算机,即具有图形处理功能的计算机单元(GPU)。这通常包括具有8个核的CPU、32GB RAM、32GB内存、32GB存储空间和32GB内存,1 TB硬盘,最重要的是NVIDIA GeForce RTX 1080 8GB GPU。

GPU最初是为视频游戏开发的,被越来越多地用于机器学习和深度学习。

GPU可以大大加快计算速度,这要归功于它们庞大的并行过程。一台预装GPU的电脑通常在3000美元左右,但如果你自己建造,你可以买到便宜得多的。

Computers with FPGAs Field Programmable Gate Array (FPGA) is also
increasingly being used in AI. Altera and Xilinx are the two most wellknown FPGA manufacturers. Acquiring Altera in 2015, Intel has since developed many FPGA-based AI applications. In 2018, for example, Intel achieved 3,700 frames per second processing with its Arria 10 GX 1150 FPGA. A computer with the Intel Arria 10 GX FPGA can easily cost more than $5,000

带有FPGA的计算机现场可编程门阵列(FPGA)也是Altera和Xilinx是两个最知名的FPGA制造商。

英特尔于2015年收购Altera,此后开发了许多基于FPGA的人工智能应用程序。例如,2018年,英特尔凭借其Arria 10 GX 1150 FPGA实现了每秒3700帧的处理。一台带有Intel Arria 10 GX FPGA的计算机的成本很容易超过5000美元。

简单的Python画图程序

import numpy as np
import matplotlib.pyplot as plt

x = np.linspace(-np.pi, np.pi, 50)
y1 = np.sin(x)
y2 = np.cos(x)
y3 = 2 * x + 1
y4 = x ** 3 + 9

plt.plot(x, y1, color = 'blue', marker = "s", label='Sin')
plt.plot(x, y2, color = 'red', marker = "o", label='Cos')
plt.plot(x, y3, color = 'green', marker = "o", label='2 * x + 1')
plt.plot(x, y4, color = 'yellow', marker = "o", label='x ** 3 + 9')

plt.legend()
plt.show()



在这里插入图片描述

AI 框架

  1. Scikit-Learn is the most widely used Python framework for machine learning. It is divided into two main categories, supervised learning and unsupervised learning. For supervised learning, it has a set of algorithms for classification and regression.
  2. Google’s TensorFlow is undoubtedly the most widely used Python framework for AI. It is called TensorFlow because its basic data structure is a tensor, a simple multidimensional array of numbers or functions. TensorFlow is widely used for image classification, object detection, image segmentation, pose detection, text sentiment, language translation, speech recognition, and so on.
  3. Keras is an open source software library that provides a Python interface for other AI libraries and frameworks. Keras is best known as the standard interface for the TensorFlow. However, Keras, as a back end, also supports many others, such as Microsoft Cognitive Toolkit, R, Theano, and PlaidML.
  4. Facebook’s PyTorch is an open source machine learning library based on the Torch library. It is developed by Facebook’s AI Research Lab. PyTorch is getting more popular in recent years and has caught up with TensorFlow.
  5. OpenCV (Open Source Computer Vision Library) is probably the most popular cross-platform and free library. It was originally developed by Intel and aimed at real-time computer vision.

有价值的链接:
Dive into Deep Learning书籍:
Dive into Deep Learning

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Artificial Intelligence is becoming increasingly relevant in the modern world where everything is driven by technology and data. It is used extensively across many fields such as search engines, image recognition, robotics, finance, and so on. We will explore various real-world scenarios in this book and you’ll learn about various algorithms that can be used to build Artificial Intelligence applications. During the course of this book, you will find out how to make informed decisions about what algorithms to use in a given context. Starting from the basics of Artificial Intelligence, you will learn how to develop various building blocks using different data mining techniques. You will see how to implement different algorithms to get the best possible results, and will understand how to apply them to real-world scenarios. If you want to add an intelligence layer to any application that’s based on images, text, stock market, or some other form of data, this exciting book on Artificial Intelligence will definitely be your guide! What You Will Learn Realize different classification and regression techniques Understand the concept of clustering and how to use it to automatically segment data See how to build an intelligent recommender system Understand logic programming and how to use it Build automatic speech recognition systems Understand the basics of heuristic search and genetic programming Develop games using Artificial Intelligence Learn how reinforcement learning works Discover how to build intelligent applications centered on images, text, and time series data See how to use deep learning algorithms and build applications based on it Table of Contents Chapter 1. Introduction to Artificial Intelligence Chapter 2. Classification and Regression Using Supervised Learning Chapter 3. Predictive Analytics with Ensemble Learning Chapter 4. Detecting Patterns with Unsupervised Learning Chapter 5. Building Recommender Systems Chapter 6. Logic Programming Chapter 7. Heuri
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值