AI期末复习(PolyU)

2024-05-02 05:28
文章标签 ai 复习 期末 polyu

本文主要是介绍AI期末复习(PolyU),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

文档详见评论链接

Tutorial 2-Search Algorithm
Breadth-first search宽度优先搜索
[图片]
[图片]
open表由queue队列实现,因此加在尾部。
[图片]
Depth-first search深度优先搜索
[图片]
[图片]
open表由stack栈实现,因此加在头部。
[图片]
Hill climbing (a heuristic search algorithm)
[图片]
Hill climbing algorithm goes uphill along the steepest possible path until can go no further up, which may return a state that is a local maximum.
Advantages

  • Avoid traversal避免遍历所有解。
  • Achieve the purpose of improving efficiency提高搜索效率。
    Disadvantages
  • Not necesssarily find the global maximum but converge on a local maximum不一定找到最优解但收敛于局部最优解。
  • In plateau cases, the hill climber may not be able to determine in which direction it should step, and may wander in a direction that never leads to improvement.在高原(比较平坦)的情况下,登山者可能无法确定应该朝哪个方向前进,并且可能在一个永远无法改善的方向上徘徊。
  • Ridges problem: If the target function creates a narrow ridge that ascends in a non-axis-aligned direction, then the hill climber can only ascend the ridge by zig-zagging.山脊问题:如果目标函数创建了一个狭窄的山脊,它以非轴线对齐的方向上升,那么爬山者只能通过曲折攀登山脊。

Best-first Search (Greedy Search贪心算法)
The node with the lowest evaluation is expanded first, i.e., 𝑎𝑟𝑔𝑚𝑖𝑛(𝑓(𝑛))
f(n) = ℎ(𝑛) = 𝑒𝑠𝑡𝑖𝑚𝑎𝑡𝑒𝑑 𝑐𝑜𝑠𝑡 𝑜𝑓 𝑡ℎ𝑒 𝑐ℎ𝑒𝑎𝑝𝑒𝑠𝑡 𝑝𝑎𝑡ℎ 𝑓𝑟𝑜𝑚 𝑠𝑡𝑎𝑡𝑒 𝑎𝑡 𝑛𝑜𝑑𝑒 𝑛 𝑡𝑜 𝑎 𝑔𝑜𝑎𝑙 𝑠𝑡𝑎𝑡𝑒
If 𝑛 is a goal node, then ℎ(𝑛) = 0.
[图片]
Limitations of Greedy Search

  1. not optimal
    [图片]
    A* Search
    [图片]
    [图片]
    [图片]
    [图片]
    Exercise
    [图片]
    Breadth-first search:A B C D E F
    [图片]
    Depth-first search:A D F
    [图片]
    [图片]
    [图片]
    [图片]
    [图片]
    openList, closeList = [start], []
    while True:
    currentNode = lowest f cost in openList
    if currentNode == end: return
    for neighbour in currentNode.Neighbours:
    if closeList.contains(neighbour) continue
    if new_neighbour_f <= old_neighbour_f or not openList.contains(neighbour):
    neighbour.f = new_neighbour_f
    if not openList.contains(neighbour):
    openList.add(neighbour)
    [图片]
    [图片]
    [图片]
    [图片]
    [图片]
    [图片]
    [图片]
    [图片]
    [图片]
    [图片]

Tutorial 3-Genetic Algorithm
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]

Tutorial 4-Multi-objective Optimization
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
Exercise 1同 Tutorial 3的Exercise 4
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]

Tutorial 5-Regression and Gradient Descent
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]

Tutorial 6-Scaling, Overfitting and Kmeans
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]

Tutorial 7-Building a Perceptron
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]

Tutorial 8-Building a Neural Network
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]

Tutorial 9-Attention and Transformer
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]

Tutorial 10-Ensemble Learning
[图片]
[图片]
[图片]
[图片]

Tutorial 11-Fuzzy
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]
[图片]

Tutorial 12-Fuzzy2
[图片]
[图片]
按列两两求最小,然后整列求最大。
[图片]
P的行,与Q的列逐个元素求最小值,然后选择最小值里的最大值。
[图片]
[图片]
[图片]
[图片]
[图片]

期中考:

  1. 图搜索 * 2
  2. 逻辑代数 * 2
  3. bfs dfs
  4. a*
  5. 贝叶斯公式
  6. Kmeans
  7. 反向传播

这篇关于AI期末复习(PolyU)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/953467

相关文章

Spring AI集成DeepSeek三步搞定Java智能应用的详细过程

《SpringAI集成DeepSeek三步搞定Java智能应用的详细过程》本文介绍了如何使用SpringAI集成DeepSeek,一个国内顶尖的多模态大模型,SpringAI提供了一套统一的接口,简... 目录DeepSeek 介绍Spring AI 是什么?Spring AI 的主要功能包括1、环境准备2

Spring AI集成DeepSeek实现流式输出的操作方法

《SpringAI集成DeepSeek实现流式输出的操作方法》本文介绍了如何在SpringBoot中使用Sse(Server-SentEvents)技术实现流式输出,后端使用SpringMVC中的S... 目录一、后端代码二、前端代码三、运行项目小天有话说题外话参考资料前面一篇文章我们实现了《Spring

Spring AI与DeepSeek实战一之快速打造智能对话应用

《SpringAI与DeepSeek实战一之快速打造智能对话应用》本文详细介绍了如何通过SpringAI框架集成DeepSeek大模型,实现普通对话和流式对话功能,步骤包括申请API-KEY、项目搭... 目录一、概述二、申请DeepSeek的API-KEY三、项目搭建3.1. 开发环境要求3.2. mav

C#集成DeepSeek模型实现AI私有化的流程步骤(本地部署与API调用教程)

《C#集成DeepSeek模型实现AI私有化的流程步骤(本地部署与API调用教程)》本文主要介绍了C#集成DeepSeek模型实现AI私有化的方法,包括搭建基础环境,如安装Ollama和下载DeepS... 目录前言搭建基础环境1、安装 Ollama2、下载 DeepSeek R1 模型客户端 ChatBo

Spring AI集成DeepSeek的详细步骤

《SpringAI集成DeepSeek的详细步骤》DeepSeek作为一款卓越的国产AI模型,越来越多的公司考虑在自己的应用中集成,对于Java应用来说,我们可以借助SpringAI集成DeepSe... 目录DeepSeek 介绍Spring AI 是什么?1、环境准备2、构建项目2.1、pom依赖2.2

Deepseek R1模型本地化部署+API接口调用详细教程(释放AI生产力)

《DeepseekR1模型本地化部署+API接口调用详细教程(释放AI生产力)》本文介绍了本地部署DeepSeekR1模型和通过API调用将其集成到VSCode中的过程,作者详细步骤展示了如何下载和... 目录前言一、deepseek R1模型与chatGPT o1系列模型对比二、本地部署步骤1.安装oll

Spring AI Alibaba接入大模型时的依赖问题小结

《SpringAIAlibaba接入大模型时的依赖问题小结》文章介绍了如何在pom.xml文件中配置SpringAIAlibaba依赖,并提供了一个示例pom.xml文件,同时,建议将Maven仓... 目录(一)pom.XML文件:(二)application.yml配置文件(一)pom.xml文件:首

SpringBoot整合DeepSeek实现AI对话功能

《SpringBoot整合DeepSeek实现AI对话功能》本文介绍了如何在SpringBoot项目中整合DeepSeekAPI和本地私有化部署DeepSeekR1模型,通过SpringAI框架简化了... 目录Spring AI版本依赖整合DeepSeek API key整合本地化部署的DeepSeek

PyCharm接入DeepSeek实现AI编程的操作流程

《PyCharm接入DeepSeek实现AI编程的操作流程》DeepSeek是一家专注于人工智能技术研发的公司,致力于开发高性能、低成本的AI模型,接下来,我们把DeepSeek接入到PyCharm中... 目录引言效果演示创建API key在PyCharm中下载Continue插件配置Continue引言

Ubuntu系统怎么安装Warp? 新一代AI 终端神器安装使用方法

《Ubuntu系统怎么安装Warp?新一代AI终端神器安装使用方法》Warp是一款使用Rust开发的现代化AI终端工具,该怎么再Ubuntu系统中安装使用呢?下面我们就来看看详细教程... Warp Terminal 是一款使用 Rust 开发的现代化「AI 终端」工具。最初它只支持 MACOS,但在 20