登录
首页 » Others » 多标签文本分类:关于基于神经网络的多标签文本分类-源码.zip

多标签文本分类:关于基于神经网络的多标签文本分类-源码.zip

于 2021-11-24 发布
0 216
下载积分: 1 下载次数: 2

代码说明:

深度学习的多标签文本分类 该存储库是我的研究项目,也是对TensorFlow,深度学习(Fasttext,CNN,LSTM等)的研究。 该项目的主要目的是解决基于深度神经网络的多标签文本分类问题。 因此,根据这种问题的特征,数据标签的格式类似于[0、1、0,...,1、1]。 要求 Python 3.6 Tensorflow 1.15.0 Tensorboard 1.15.0 斯克莱恩0.19.1 脾气暴躁的1.16.2 Gensim 3.8.3 Tqdm 4.49.0 项目 项目结构如下: . ├── Model │   ├── test_model.py │   ├──

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • C#—上位机——数据波形显示
    基于C#的显示数据波形的上位机,可进一步开发显示多条数据波形,在线保存数据,可将数据显示为excel格式
    2020-11-06下载
    积分:1
  • PID控制超详细教(含软硬件上位机,很好)
    PID控制超详细教程(含软硬件上位机,很好)SUNPLUS调节控制做电机速度控制月录页模拟控制模拟控制原理数字控制位置式算法增量式算法控制器参数整定凑试法临界比例法经验法采样周期的选择参数调整规则的探索自校正控制器软件说明软件说明档案构成界面子程序说明程序范例程序程序流程与说明中断子流稈与说明使用资源硬件使用资源说明实验测试响应曲线参考文献SUNPLUS调节控制做电机速度控制修订记录日期版本编写及修订者编写及修订说明初版错误校正SUNPLUS调节控制做电机速度控制模拟控制将偏差的比例()、积分()和微分()通过线性组合构成控制量用这一控制量对被控对象进行控制,这样的控制器称控制器、模拟控制原理在模拟控制系统中,控制器最常用的控制规律是控制。为了说明控制器的工作原理,先看个例子。如图—所示是一个小功率直流电机的调速原理图。给定速度与实际转速进行比较,其差值,经过控制器调整后输出电压控制信号经过功率放大后,驱动直流电动机改变其转速。+控器直流电机图小功率直流电机调速系统常规的模拟控制系统原理框图如图—所示。该系统由模拟控制器和被控对象组成。图中是给定值是系统的实际输岀值,给定值与实际输出值构成控制偏差式-)作为控制的输入,作为控制器的输出和被控对象的输入。所以模拟控制器的控制规律为式其中:控制器的比例系数搾制器的积分时间,也称积分系数控訇器的微分时间,也称微分系数比例积分被控对象微分图—模拟控制系统原理图比例部分SUNPLUS调节控制做电机速度控制比例部分的数学式表示是:在模拟控制器中,比例环节的作用是对偏差瞬闩作岀反应。偏差一旦产生控制器立即产生控制作用,使控制量向减少偏差的方冋变化。控制作用的强弱取决于比例系数,比例系数越大,控制作用越强,则过渡过程越快,控制过程的静态偏差也就越小;但是越大,也越容易产生振荡,破坏系统的稳定性。故而,比例系数选择必须恰当,才能过渡时间少,静差小而又稳定的效果。、积分部分积分部分的数学式表小是从积分部分的数学表达式可以知道,只要存在偏差,则它的控制作用就不断的增加;只有在偏差时,它的积分才能是一个常数,控制作用才是一个不会增加的常数。可见,积分部分可以消除系统的偏差积分环节的调节作用虽然会消除静态误差,但也会降低系统的响应速度,增加系统的超调量。积分常数越大,积分的积累作用越弱,这时系统在过渡时不会产生振荡;但是增大积分常数会诚慢静态误差的消除过程,消除偏差所需的时间也较长,但可以减少超调量,提髙系统的稳定性.当较小时,则积分的作用较强,这时系统过渡时间中有可能产生振荡,不过消陰偏差所需的时间较短。所以必须根据实际控制的只体要求来确定。、微分部分微分部分的数学式表示是实际的控制系统除了希望消除静态误差外,还要求加快调节过程。在偏差岀现的瞬间,或在偏差变化的瞬间,不但要对偏差量做岀立即响应(比例环节的作用),而∏要根据偏差的变化趋势预先给岀适当的纠正。为了实现这一作用,可在控制器的基础上加入微分环节,形成控制器。微分环节的作用使阻止偏差的变化。它是根据偏差的变化趋势(变化速度)进行控制。偏差变化的越快,微分控制器的输出就越大,并能在偏差值变大之前进行修正。微分作用的引入,将有助于减小超调量,克服振荡,使系统趋于穩定,特別对髙阶系统非常有利,它加快了系统的跟踪速度但微分的作用对输入信号的噪声很敏感,对那些噪声较人的系统一般不用微分,或在微分起作用之前先对输入信号进行滤波。微分部分的作用由微分时间常薮决定。越大时,则它抑制偏差变化的作用越强棫小时,则它反抗偏差变化的作用越弱。微分部分显然对系统稳定有很大的作用。适当地选择微分常数,可以使微分作用达到最优由于计算机的出现,讣算机进入了控制领或。人们将模拟控制规律引入到计算机中来。对(式—)的控制规律进行适当的变換,就可以用软件实现控制,即数字搾制。SUNPLUS调节控制做电机速度控制数字控制数字式控制算法可以分为位置式和增量式控制算法。位置式算法由于计算杋控制是一种采样控制,它只能根据样时矧的偏差计算控制量,而不能像模拟控制那样连续输岀控制量量,进行连续控制。由于这·特点(式)中的积分项和黴分项不能直接使用,必须进行离散化处理。离散化处理的方法为:以作为采样周期,作为采样序号,则离散采样时间对应着连续时间,用矩形法数值积分近似代替积分,用一阶后向差分近似代膂微分,可作如下近似变换:≈1T〔k=0,1,2.e()h(门-Tag(),()-以(k-1)7]8-1di(式上式中,为了衣示的方便,将类似于简化成等。将(式-)代入(式一),就可以得到离散的表达式为(式一)或+(式其米样序号,一,,第次釆样时刻的计算机输出值:第次采样时刻输入的偏差值第—次采样时刻输入的偏差值:积分系数,微分系数,如果采样周期足够小,则〔式—)或(式—)的近似计算可以获得足够精确的结果,离散控制过程与连续过程十分接近。(式—)或(式一)表示的控制算法式直接按(式一)所给出的控制规律定义进行计算的,所以它给出了全部控制量的大小,因此被称为全量式或位置式控制算法这种算法的缺点是:由于全量输出,所以每次输出均与过去状态有关,计算时要对进行累加,SUNPLUS调节控制做电机速度控制工作量人;并且,因为计算杋输岀的对应的是执行机构的实际位置,如果计算机岀现故障,输岀的将大幅度变化,会引起执行机构的大幅度变化,有可能因此造成严重的生产事枚,这在实生产际中是不允许的。増量式探制算法可以避免着重现象发生。增量式算法所谓增量式是指数宇控制器的输岀只是控制量的增量Δ。当执行机构需要的控制量是增量,而不是位置量的绝对数佶时,可以使用增量式控制算法进行控制。增量式控制算法可以通过(式一)推导出。由(式一)可以得到控制器的第个采样时刻的输出值为+∑+式将(式一)与(式一)相减并整理,就可以得到增量式控制算法公式为△(式其中由(式—)可以看出,如果计算机控制系统采用恒定的采样周期日确定只要使用前后三次测量的偏差值,就可以由(式—)求出控制量。增量式控制算法与位置式算法(式一)相比,计算量小的多,因此在实际中得到广泛的应用而位置式搾制算法也可以通过增量式控制算法推岀递推计算公式:△式(式—)就是目前在计算机控制中广泛应用的数字递推控制算法控制器参数整定搾制器参数整定:指决定调节器的比例系数、积分时间、微分时间和采样周期的SUNPLUS调节控制做电机速度控制具体数值。整定的实质是通过改变调节器的参数,使其特性和过程特性相匹配,以改善系统的动态和静态指标,取得最佳的控制效果。整定调节器参数的方法很多,归纳起来可分为两大类,即理论计算整定法和工程整定法。理论计算整定法有对数频率特性法和根轨迹法等;工程整定法冇凑试法、临界比例法、经验法、衰减曲线法和响应曲线法等。工程整定法特点不需要事先知道过程的数学模型,直接在过程控制系统中进行现场整定方法简单、计算简便、易于掌握凑试法按照先比例()、再积分()、最后微分()的顺序。置调节器积分时间∞,微分时间在比例系数按经验设置的初值条件下,将系统投入运行,由小到大整定比例系数求得满意的衰减度过渡过程曲线引入积分作用(此时应将上述比例系数设置为)。将由大到小进行整定若需引入微分作用时,则将按经验值或按(~)设置,并由小到人加入临界比例法在闭坯控制系统甲,将调节器置纯比例作用卜,从小到大逐渐改变调节器的比例系教,得到竿幅振荡的过渡过程。此时的比例系数称为临界比例系数相邻两个波峰间的时间间隔,称为临界振荡周期二界比例度法步骤:将调节器的积分时间置于最大(∞),微分时间置零),比例系数适当,平衡操作一段时问,把系统投入自动运行、将比例系数逐渐增大,得到等幅振荡过程,记卜临界比例系数和临界振蕩周期值根据和值,采用经验公式,计算出调节器各个参数,即、和的值。按先再最后的操作程序将调节器整定参数调到计算值上。若还不够满意,可再作进步调整。临界比例度法整定注意事项:有的过程控制系统,临界比例系数很大,使系统接近两式控制,调节阀不是全关就是全开,对工业生产不利有的过程控制系统,当调节器比例系数调到最大刻度值时,系统仍不产生等幅振荡,对此,就把最大刻度的比例度作为临界比例度进行调节器参数整定经验法用凑试汯确定参数需要经过多次反复的实验,为了减少凑试次数,提高工作效率,可以借鉴他人的经验,并根据‘定的要求,事先作少量的实验,以得到若「基准参数,然后按照经验公式用这些基准参数导出控制参数,这就是经验法。临界比例法就是一种经验法。这种方法首先将控制器选为纯比例控制器,并形成闭环,改变比例系数,使系统对阶跃输入的响应达到临界状态,这时记下比例系数、临界振荡周期为,根SUNPLUS调节控制做电机速度控制据一提供的经验公式,就可以由这两个基准参数得到不同类型控制器的参数,如表一所示。衣—临界比例法确定的模拟控制器参数控制器类型这种临界比例汯使针对模拟ˆ控制器,对于数字控制器,只要釆样周期取的较小,原则上也同样使用。在电动机的控制中,可以先采用临界比例法,然后在采用临界比例法求得结果的基础上,用凑试法进一步完善表一的控制参数,实际上是按衰减度为时得到的。通常认为的衰减度能兼顾到稳定性和快速性。如果要求更大的衰减,则必须用凑试法对参数作进一步的调整。采样周期的选择香农()采样定律:为不失真地复现信号的变化,采样频率至少应大于或等于连续信号最高频率分量的二倍。根据采样定律可以确定采样周期的上限值。实际采样周期的选择还要受到多方面因素的影响,不同的系统采样周期应根据具体情况米选择。采样周期的选择,通常按照过程特性与丨扰大小适当来选取采样周期:郾对于响应快、(如流量、压力)波动大、易受干扰的过程,应选取较短的采样周期:反之,当过程响应慢(如温度、成价)、滞后人时,可选取较长的采样周期采样周期的选取应与参数的整定进行综合考虑,采样周期应远小于过程的扰动信号的周期,在执行器的响应速度比较慢时,过小的采样周期将失去意义,因此可适当选大ˉ点;在计算机运算速度允许的条件下,采样周期短,则控制品质好;当过程的纯滞后时间较长时,一般选取采样周期为纯滞后时间的参数调整规则的探索人们通过对控制理论的认识和长期人工操作经验的总结,可知参数应依据以卜儿点来适应系统的动态过程。在偏差比较大时,为使尽快消除偏差,提高响应速度,冋时为了避免系统响应岀现超调,取大值,取零;在偏差比较小时,为继续减小偏差,并防止超调过大、产生振荡、稳定性变坏,值要减小,取小值;在偏差很小时,为消除静差,克服超调,使系统尽快稳定,值继续减小,值不变或稍取大。当偏差与偏差变化率同号时,被控量是朝偏离既定值方向变化。因此,当被控量接近定值时,反号的比列作用阻碍积分作用,避免积分超调及随之而来的振荡,有利于控制;而当被控量远未接近各定值并向定值变化时,则由于这两项反向,将会减慢控制过程。在偏差比较大时,偏差变化率与偏差异号时,值取零或负值,以加快控制的动态过程。偏差变化率的大小表明偏差变化的速率,越大,取值越小,取值越大,反之亦然。同时,要结合偏差大小来考虑
    2020-12-06下载
    积分:1
  • C++ MFC 餐厅点菜管理系统
    我们的课程设计,用VC++6.0做的,数据写在本地文件中,可直接运行。包含完整的源码。功能共分5个模块:菜品管理模块(包含菜品的录入,查询,修改,删除。),会员办理模块(会员可打折),顾客点餐模块(包含菜品选择,修改,删除,计算金额,提交会员信息可打折。),统计模块(根据日,月,季度三个时间来统计营业额。),公告管理模块(可添加,删除,修改公告信息。)希望对大家有帮助。
    2020-12-04下载
    积分:1
  • Visual Assist X 2237+破解补丁+汉化包+菜单+设置提示+每日提示汉化(通杀所有VS版本2015,2017...)亲测可用
    Visual Assist X 2237+破解补丁+汉化包+菜单+设置提示+每日提示汉化(通杀所有VS版本2015,2017...)亲测可用
    2020-11-27下载
    积分:1
  • Matlab的模拟退火算法工具包
    这是Matlab的模拟退火算法的工具包,对学习、应用SA算法很有用
    2020-11-29下载
    积分:1
  • 利用dbn+nn实现手写数字识别
    MatlabReadMNIST是用来从train-labels-idx1-ubyte,train-images-idx3-ubyte,t10k-labels-idx1-ubyte,t10k-images-idx3-ubyte中获取数据的(已经获取好了),只要运行ceshi.m就可以了,修改ceshi.m读入的图片就可以识别不同的图片,自己提供输入图片也可以,不过要注意输入图片的大小要是28*28
    2020-12-02下载
    积分:1
  • 四川大学历年考研C语言试及答案
    四川大学历年考研C语言试题及答案
    2020-12-07下载
    积分:1
  • ansoft Maxwell 3d教.pdf
    ansoft Maxwell 3d 向导式的用户界面、精度驱动的自适应剖分技术和强大的后处理器时的Maxwell 3D成为业界最佳的高性能三维电磁设计软件。可以分析涡流、位移电流、集肤效应和邻近效应具有不可忽视作用的系统,得到电机、母线、变压器、线圈等电磁部件的整体特性。功率损耗、线圈损耗、某一频率下的阻抗(R和L)、力、转矩、电感、储能等参数可以自动计算。同时也可以给出整个相位的磁力线、B和H分布图、能量密度、温度分布等图形结果。本文件是软件使用教程.希望能帮助大家·Printing HistorNew editions of this manual include material up dated since theprevious edition. The manual printing date, indicating the manualscurrent edition, changes w hen a ncw edition is printed. Minorcorrections and updates incorporated al reprint do not cause the daleto changeUpdate packages may be issued betw een editions and containadditional and/ or rep lacement pages to be merged into the manualby the user Pages which are rearranged because of changes on aprevious page are not considered to be revised.EditionDateSoftwareRevisionFebruary 1991April 199212December 1993October 19964.1September 19995.06December 20006.0WWW⊥nmTypeface ConventionsComputerCter type is used fon promptsand messages, for field names, and for keyboard entries that must be ty ped in theirentirety exactly as shown. For example, thenstruction"copy filel"means to type the w ordcopy, to type a space. and then to type filelMenu/Command Computer type is also used to display the commands that are needed to perform a specifictask Menu levels are separated by forwardslashes (/) For example, the instructionhoose File/Open"means to choose the Opencommand under the file menuItalicsItalic type is used for emphasis and for thetitles of manuals and other publications. Italictype is also used for key board entries when aname or a variable must be typed in place ofthe words in italics. For example, the instruc-rion“ copy filename” means to type the wordcopy, to type a space, and then to type then amc of a filc. such as filelKeysHelvetica type is used for labeled keys on thecomputer keyboard. For example, the instruc-tion"Press Return?"means to press the key onthe com puter that is lahcled Returnwww.docin.coInstallationBefore you use Maxwell 3D, you must1. Set up your systems graphical windowing systerm2. Install the Maxwell softw are, using the directions in theAnsell PC or UNIX Installation guideIf you have not yet done these steps, refer to the ansoft installetionguides and the documentation that came w ith your computer systemor ask your system administrator for helpsing a Graphical User InterfaceIf you are familiar with the concepts of using a mouse, menus, andother graphical user interface(GUn)tools, skip to Chapter 1“ IntroductionIf you have not used GuI systems before, this section will help youunderstand some of the terminology used in this guide. Since GUIare basically visual, the best way to learn to use them is by practicingon your systemMost gui systcms usc a mouseas a poinTing device, with whichyou can select areas on the screenfor command execution andmoving from one program toanother. Your mouse may have 2www.door 3 buttons; Maxwell 3D ignoresthe middle button on 3-buttondelsAnsoft products donot usc this button. You canprogram mouse buttons to work in non-standard ways, as you mightwant to if you are left-handed. For simplicity, the left-hand hutton(under your forefinger if you are right-handed) is called the leftbutton, and the one on far right is the right mouse button. You willprobably find the terms intuitive once you use these buttons a fewtimesPoint and click; Right clickTo choose an item with the mouse, first move it on your desk until thearrow cursor is on that item; you are now pointing" at the item. Next,ress and release the left bu tton thlled"clicking " Point-andclick is the most common action you will make with your mouseally, click" refers to a lefise button clickYou can sometimes use your right mouse button to access or entercommands. In the 3d Modeler for instance, a right mouse buttonclick causes a short menu of commands to appear at the moustcursor. Generally, right click "refers to a right mouse button clickDouble-ClickOccasionally you may want to sclect all of thc text in a box,orperform a special lask(such as indicating the end of drawing a linewhile you are using Maxwell 3D. You can do this efficiently byquickly clicking twice with your left mouse button -a doubleDragging objects; Click and HoldWhen you are drawing in the 3D Modeler, you can often use yourmouse to enter objects and move around the screen. Frequently, youwill click the mouse button and hold it down until the next part of thecommand is reached (the object is oved, the next point is enteredand so forth). If you click and hold on the edge of a w indow, you canposition, or drag, the window on your screen. You can often dragobjects in Maxwell; experiment to see w hat will moveTool BarsTool bars are shortcut methods for entering commands. There is atool bar in the 3d Modeler and most of the setup modules for severalcommand s. To use a tool bar. click the mouse cursor on the buttonyou want to use. Here is an example of a tool bar囗。圖哦良风≌固函MenusWithin each screen of maxwell 3d are areas w hich list subsets ormenus,of commands. You can access a menu by clicking your mouseon the word or button that indicates the menu. The menu is pulleddown, listing the commands available on that menu. (For examplethc New command is availablc on the File mcnu. Usually, thc mcnuwill remain displayed until you choose a command, or click on thedesktop to exit. If the menu does not remain displayed, click and holdthe mouse button, then release the button to make your choiceFile Edit viewNewopenCloseSavectrl+SSave AsImportExportExitctrl+QAn arrow on the right side of a command indicates that there is asubmenu for that command. An ellipsis (. )indicates that a pop-upwindow appears aftcr choosing this commandWhen you are asked to use a menu command, each level is separatedby a"/". Thus, to zoom in on a drawing, you would choose the viewLoom In menu command To open a new file, you would choose File/There are also pop-up menus, which appear when you righL-click ona maxwell modeler window. choose commands from thcsc menus inthe same way as from menu barsFor more information on using GUIs, refer to"User Interface"in theMaxwell Control Panel,s online help systemOther ReferencesFor detailed information on Maxwell 3d commands refer to theonline documentation for the maxwell 3d field simulatorTo start maxwell 3d, you must first access the maxwell controlPanel. for more detailed inform ation on the maxwell control panelcommands, refer to the Maxwell Control Panels online help systemwww.docin.comTable of Contents1. Introduction1-1General Procedure.1-2The Sample Problem1-4Meshes.....,,,,,,,,面2. Create aAccess the maxwell Control Panel·:.·:·甲,,,,,,,,,,2-2Start the Project managerCreate a Project directoryCreate a New project··,···············,·,,,,,,,,,,2-6Enter notes2-73. Draw the model3-1Open the project3-2Start. the 3D Modeler3-3Side window........................snaps3-6Define the problem region: Coordinates and Units ..,...... 3-7Absolute and relative coordinates3-7Grids3-7Zooming in and out of the view window3-9Create the electromagnet3-10Draw the Coil...,,.,..,3-10Draw thc Circlc........,..,...,,,......,..........3-10Create the Cylinder,,3-11Create the hole for the Core3-12Draw the Core·中··············3-13SavingP3-14Create the magnel翻...3-15Draw the magnet3-15Move the magnet3-15Toggle Off the Background..................3-16Create a termini..........,,,,,..,,,,......,,,..3-17Create the Coil terminal..........,,......,,,.,..3-18Define the Problem Region;..,;;“;##.3-20Define the Problem Region .................. 3-21Shading and rendering . ......................................3-22Exit the 3d modeler3-234 Define The problemAccess the Material Manager4-2Exclude the background·····+···,,,,,,,,,,,,,,.4-2Assign Steel to the CoreAssign Copper to the Coil4-3Assign vacuum to the problem Region.......4.......4-3Assign NdFe35 to the Magnet4-3Access the 3D Boundary/Source Manager45assign a current to the coil.....4-6Define the sourceAssigning the Source lo the Termina.........,..,,,,∴4-64-7Check the Direction of the CurrentExit the 3D Boundary/Source Manager4-85. Generate a Solution5-1Setup executive Parameters······5-2Create a Force Setup for the Magnet.5-3Create a Force Setup for the Coil and Core5-3Create a Force Setup for the entire model·········Exiting the Executive Parameters moduleSpecifying Solution Criteria·非5-5Solver type11翻自。■非非首·····:.··.·Magnetic Field SolveResidualSolve for Field and Parameters+++++++++++++++++++++;,+“++Adaptive analysisContents-2
    2020-11-27下载
    积分:1
  • feature extraction(深度学习,特征提取)
    feature extraction(深度学习,特征提取)
    2020-04-22下载
    积分:1
  • C++算法大全及面试详解
    C++算法大全及面试题详解资料包包含两个word文档,一个C++算法大全,一个C++面试经典题及答案详解(包含大量代码)。这两份资料整理了C++的常见算法、常见考点和重要知识技巧,内容齐全,涵盖各类应试考点,满满干货(代码里程多)。这份精细资料旨在为大家面试面试C++程序员或算法工程师提供一些有用参考。
    2020-12-11下载
    积分:1
  • 696518资源总数
  • 105885会员总数
  • 31今日下载