• 2024-11-14Attention is all you need
    LLM浅谈很多人认为大模型可以直接回答问题或参与对话,但实际上,它们的核心功能是根据输入的文本预测下一个可能出现的词汇,即“Token”。这种预测能力使得LLM在各种应用中表现出色,包括但不限于:文本生成:LLM可以生成连贯且有意义的文本段落,用于写作辅助、内容创作等。问答系统:通
  • 2024-11-1176. 最小覆盖子串
    题目链接解题思路求最小子串问题,第一时间,想「以i开头的结果是什么」,求出所有的结果,最优的便是;或者「以i结尾的结果是什么」,求出所有的结果,最优的便是这个题使用「以i开头的结果是什么」,假设是[i,j]然后再求i+1的结果时,我们发现,只需要把i位置的字符去掉,就可以知道是否满足
  • 2024-11-08【论文阅读笔记】Transformer——《Attention Is All You Need》
    论文地址:https://arxiv.org/pdf/1706.03762代码地址:https://github.com/huggingface/transformers目录IntroductionBackgroundModelArchitectureEncoderLNandBNDecoderAttentionMulti-headAttentionFeed-ForwardPostionEncodingWhyself-attentionIntroductionRNN,L
  • 2024-11-08【论文阅读笔记】Transformer——《Attention Is All You Need》
    论文地址:https://arxiv.org/pdf/1706.03762代码地址:https://github.com/huggingface/transformers目录IntroductionBackgroundModelArchitectureEncoderLNandBNDecoderAttentionMulti-headAttentionFeed-ForwardPostionEncodingWhyself-attentionIntroductionRNN,L
  • 2024-11-02【书生大模型L1 Prompt Is All You Need】
    文章目录1任务说明1.1基础任务(完成此任务即完成闯关)1.2进阶任务(闯关不要求完成此任务)达标要求2Prompt介绍2.1什么是Prompt(提示词)?2.2提示词的六大原则2.3提示词优化例子2.4提示设计框架2.4.1CRISPE2.4.2CO-STAR2.5LangGPT结构化提示词2.5.1LangGPT
  • 2024-10-30CIS5200: Machine Learning
    CIS5200:MachineLearningFall2024Homework2ReleaseDate:October9,2024DueDate:October18,2024HW2willcountfor10%ofthegrade.Thisgradewillbesplitbetweenthewritten(30points)andprogramming(40points)parts.Allwrittenhomework
  • 2024-10-27Floyd 算法
    算法用途:Floyd算法是用于解决两点间最短路径的一种算法,可以处理有向图或负权的最短路问题。该算法时间复杂度为\(O(N^3)\),空间复杂度为\(O(N^2)\)。算法原理Floyd算法基于动态规划实现。Floyd算法一直在解决一个问题,寻找\(i\rightarrowj\)的最短路径(废话)。但是,既
  • 2024-10-23[算法题解] Codeforces round 979 --D. QED's Favorite Permutation
    题目链接:https://codeforces.com/contest/2030/problem/D题目:题解:FavotitePermutation即每个数满足i=p[i];此题中,p数组每次询问后保持不变,s根据询问而改变。因此每次需要进行交换的数的位置是相同的,只需要检验s变更后,操作能否满足交换需求与否。故创建需数组need,预处理nee
  • 2024-10-16YT to WAV - A Handy Tool for Audio Conversion
    Intoday'sdigitalworld,weoftenhavetheneedtoconvertaudioformats.Maybeyou'vecomeacrossagreatsongoraninterestingspeechonYouTubeandwantedtosaveitinadifferentaudioformatforvariousreasons.Well,that'swhereY
  • 2024-10-12Need BLUETOOTH PRIVILEGED permission以及requestMtu导致蓝牙断连问题
    在部分Android手机上,当连接上GATTService后直接requestMtu有可能会造成蓝牙连接中断,随后继续重新连接会报错NeedBLUETOOTHPRIVILEGEDpermission1//扫描成功后连接gatt2BluetoothDevicemRemoteDevice=mBluetoothAdapter.getRemoteDevice(result.getDevice().getAddress(
  • 2024-10-08LeetCode 1371. Find the Longest Substring Containing Vowels in Even Counts
    原题链接在这里:https://leetcode.com/problems/find-the-longest-substring-containing-vowels-in-even-counts/description/题目:Giventhestring s,returnthesizeofthelongestsubstringcontainingeachvowelanevennumberoftimes.Thatis,'a','e&
  • 2024-09-23ELEC5307 Deep Learning
    ELEC5307DeepLearningProject#1:ParametersinNeuralNetworksDue:23Oct202011:59PM1ObjectivesThislaboratoryaimstointroducethebasictechniquesindeepneuralnetworks.Inthislaboratoryyouwill:LearntousePyTorchtoloadimagesand
  • 2024-09-22COMP5328 - Advanced Machine Learning
    COMP5328-AdvancedMachineLearningAssignment1Due:19/09/2024,11:59PMThisassignmentistobecompletedingroupsof3to4students.Itisworth25%ofyourtotalmark.1ObjectiveTheobjectiveofthisassignmentistoimplementNon-negativeMatri
  • 2024-09-19SIT742: Modern Data Science
    DeakinUniversityTrimester2,2024SchoolofITAssignment2UnitTeam:SIT742SIT742:ModernDataScienceExtensionRequestStudentswithdifficultyinmeetingthedeadlinebecauseofvariousreasons,mustapplyforanassignmentextensionnolaterthan
  • 2024-09-18159.235 2023 S02 Wireframe Data Viewer
    159.2352023S02—Assignment2Thisassignmentcoversthetopics:coordinates,transformations,3dmodelling,andvisiblesurfaces.WireframeDataViewerWriteaJavaprogramthatrendersa3dimensionaltrianglewireframesurfacedatamodelandallowso
  • 2024-09-18Attention is all you need 论文阅读笔记
    AttentionisallyouneedTransformeronlybasedonattentionmechanisms,dispensingCNN,RNNIntroductionandBackgroundRNN必须将前一步生成的h
  • 2024-09-14滑动窗口算法—最小覆盖子串
    题目         ”最小覆盖子串“问题,难度为Hard,题目如下:        给你两个字符串S和T,请你在S中找到包含T中全部字母的最短子串。如果S中没有这样一个子串,则算法返回空串,如果存在这样一个子串,则可以认为答案是唯一的。    比如输入S="ADB
  • 2024-09-14ITD102: Computer Technology Fundamentals
    ITD102:ComputerTechnologyFundamentalsWorkbook2:HighLevelTechnologiesThisdocumentcontainsthe practicalexercises questionsrelevanttothesecondpartofthisunit.RaspberryPi:AllstudentsneedaRaspberryPi.Thereisnotextbooktopurchas
  • 2024-09-10ECOM 2001 Term Project Description
    ECOM 2001 TermProjectDescriptionDue 30Septemberat 9:00AMAWSTIntroductionThe aim of thisproject is toprepare, evaluate and analyse stockmarket data and torecommend an optimalportfo- lioconsistingof two stocks. Youhavebeen
  • 2024-09-05Transformer: Attention is all you need
    Transformer于2017年提出,最开始应用于NLP领域,随着Transformer的快速发展,在视觉领域中也越来越多的论文或应用用到了Transformer,这里记录一下自己学习的一些知识点。PDF:《AttentionIsAllYouNeed》Code:attention-is-all-you-need-pytorch一、前置知识1.1注意力机制Tran
  • 2024-08-29`need_resched` 标志
    `need_resched`标志是Linux内核中用于进程调度的一个重要标志。这个标志的主要功能是通知内核,当前正在运行的进程或线程已经准备好放弃CPU,让出执行权给其他进程或线程。简单来说,`need_resched`告诉内核:“我已经完成了我的工作的一部分,现在有一个或多个其他进程/线程可能更需
  • 2024-08-26Authentication scenarios and recommendations MSAL vs Microsoft.Identity.Web
    AuthenticationscenariosandrecommendationsIfyouhaveawebapporanAPIrunninginAzureAppService,youcanrestrictaccesstoitbasedontheidentityoftheusersorapplicationsthatrequestit.AppServiceoffersseveralauthenticationsolution
  • 2024-08-22LeetCode 2952. Minimum Number of Coins to be Added
    原题链接在这里:https://leetcode.com/problems/minimum-number-of-coins-to-be-added/description/题目:Youaregivena 0-indexed integerarray coins,representingthevaluesofthecoinsavailable,andaninteger target.Aninteger x is obtainable ifthere
  • 2024-08-19C. Splitting Items
    https://codeforces.com/contest/2004/problem/C总结:一开始看错题了,思维惯性的认为alice会拿前一半大的元素,bob会拿后一半大的元素。。其实不是,而是每个人都挑最大的拿voidsolve(){intn,k;cin>>n>>k;vector<int>a(n);for(auto&x:a){
  • 2024-08-10Python网络爬虫抓取动态网页并将数据存入数据库MySQL
    简述以下的代码是使用python实现的网络爬虫,抓取动态网页http://hb.qq.com/baoliao/。此网页中的最新、精华下面的内容是由JavaScript动态生成的。审查网页元素与网页源码是不同。以上是网页源码以上是审查网页元素所以此处不能简单的使用正则表达式来获取内容。