登录
首页 » Others » 逻辑斯蒂回归模型

逻辑斯蒂回归模型

于 2020-12-01 发布
0 276
下载积分: 1 下载次数: 1

代码说明:

逻辑回归 Logistic Regression LR 模型其实仅在线性回归的基础上 套用了一个逻辑函数 但也就由于这个逻辑函数 使得逻辑回归模型成为了机器学习领域一颗耀眼的明星 本代码实现了逻辑斯蒂回归模型

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

发表评论

0 个回复

  • 国家商用密码算法开放动态库及演示序C#语言版本
    国家商用密码算法开放动态库及演示程序,支持如下国家商业密码算法:SM2、SM3、SM4,同时也支持AES对称加密算法。
    2020-12-05下载
    积分:1
  • adams仿真案例讲解
    adams分析实例,定轴轮系和行星轮系传动模拟和仿真3.5在 ADAMS/view中位置方向库中选择位置旋转( Position: Rotate.)图标一,在角度(Ange一栏中输入90,表示将对象旋转90度。如图3-3所示。在 ADAMS/View窗口中用鼠标左键选择圆柱体,将出来一个白色箭头移动光标,使白色箭头的位置和指向如图3-8所示。然后点击鼠标左键,旋转后的圆柱体如图3-9所示。gravity图3-8圆柱体的位置旋转图3-9旋转90后的圆柱体4.创建旋转副、齿轮副、旋转驱动4.1选择 ADAMS/wiew约束库中的旋转副( Joint: Revolute图标。,参数选择2Bod1loc和 Normal to grid,在ADAMS/view工作窗口中先用鼠标左键选择齿轮(PART2)然后选择机架( ground),接着选择齿轮上的PART2cm如图4-1所示。图中显亮的部分就是所创建的旋转副( JOINT_1该旋转副连接机架和齿轮,使齿轮能相对机架旋转4-1齿轮上的旋转副4.2再次选择 ADAMS/iew约束厍中的旋转副( Joint:Revolute)图标参数选择2Bod-1Loc和 Normal ToGrid。在 ADAMS/wew工作窗口中先月鼠标左键选择齿轮PART3),然后选择机架〔 ground),接着选择齿轮上的PART3.cm,如图4-2所示。图中显亮的部分就是所创建的旋转副( JOINT_2)该旋转副连接机架和齿轮使齿轮能相对机架旋转图42蜗杆上的旋转副43创建完两个定轴齿轮上的旋转副后,还要创建两个定轴齿轮的啮合点( MARKER)。齿轮副的啮合点和旋转刮必须有相同的参考连杆(机架),并且啮合点Z轴的方向与齿轮的传动方向相同。所以在本题中,啮合点( MARKER)必须定义在机架( ground)上,机架可以看作机架选择 ADAMSAVIew工具箱的动态选择( Dynamic Pick)图标,将两个齿轮的啮合处进行放大,再选择动态旋转图标鬥,进行适当的旋转。选择 ADAMS/View零件库中的标记点工具图标数选择如图4-3所示。选择坐标为(100,50,0),如图4-4所示,图中显亮的部分就是所创建的啮合点( MARKER14)。MarkerAdd to groundLyOrientati onlobal xY图4-3标记点的选项图44蜗轮蜗杆的啮合点4.4下面将对上面做出的啮合点进行位置移动和方位旋转,使该啮合点位于两齿轮中心线上,并使啮合点的Z轴方向与齿轮旋转方向相同。在ADAMS/View窗口中,在两个齿轮啮合处点击鼠标右键,运择 - Maker:rr-Clr de: CYLINDER_1MARKER14 Modify,如图45所示。在弹出的对话框中,将 LocationAl: raSelct栏的值1000.50.0,00改为100.0,25,00(位置移动)将 Orientation栏中的值0.0,0.0,0.0修改为0,90,0方位旋转)如图46所示。点击对话椎下而的OKApea『ane键讲行确定,旋转后的啮合点( MARKER_14)如图4-7所不。从图中可以看出,啮合点的Z轴(蓝色)Z轴的方向与齿轮的啮合方向相同图4-5属性修改对话框Nanedingzhoulaensi two. cround MARKER_ 7Inn n. 25. nLocation Relative Ta. dingzhouluerutitws0.0,90.0,0.0Ori entation Relative Td. dingzhoulueas i twoirer」[spy]a0写糖图4-7旋转后的啮合点图4-6进行坐标轴的旋转45选择 ADAMS/View约束库中的齿轮副(Gear)图标在弹出的对话框中的 Joint Name栏中,点击鼠标右键分别选择 JOINT1、JONr2。如图4-7所示。在 Common Velocity Marker栏中,点击鼠标右键选择啮合点( MARKER14)。如图4-8所示,然后点击对话框下面的OK按钮,两个齿轮的齿轮副创建出来,如图49所示1 Constraint Create Complex Joint Gearme[mhte×1cmmndingrhoulNeni GEAR 1Gear Nemedinczhouluenxi two GEAR_1Adms工dCommentsJoint NameN 1, JOINT 2Common Velocity MarkerCommon veloci ty Markey鬥 AREER1ParameterizedingzhouluenxiApplyCaneelJoINT 247齿轮副的创建对话框图48齿轮副的创建要素图4-9定轴齿轮的齿轮副46在 ADAMS/View驱动库中选择旋转驱动( Rotational joint Motion)按钮,在sped-栏中输入360,360表示旋转驱动每秒钟旋转360度。在 ADAMS/View工作窗口中,两个齿轮中仟选一个作为丰动齿轮,本设计中选择左边的齿轮(红色的),用鼠标左键点击齿轮上的旋转副( JOINT1),一个旋转驱动创建出来,如图4-10所示,图中显亮的部分为旋转驱动。图4-10齿轮上的旋转驱动5仿真模型5.1点击彷真按钮圖设置仿真终止时间〔 End Time冫为1,仿真工作步长( Step Size)为0.01然后点击开始仿真按钮进行仿真52对小齿轮的进行运动分析。因为太齿轮的齿数为x1=50,小齿轮的齿数2=25,模数m=4mm,因此根据机械原理可以知道,对于标准外啮合渐开线直齿圆柱体齿轮传动,小齿轮的转速为大齿轮的2倍。对小齿轮的旋转副 JOINT2进行角位置分析。在 ADAMS/View工作窗口中用鼠标右键点击小齿轮的旋转副JOINT2,选择 Modify命令,如图5-1所示,在弹出的修改对话框中选-CyInder: CYUND-R 2择测量( Measures)图标如图52所示。在弹出的测量对话框中-M=rsr:cri-Marker: MAR ER 5将 Characteristic栏设置为Ax/Ay! Az Projected Rotation,将st gourdComponent栏设置为Z,将From/At栏设置为PART3. MARKER5(或者ground MARKER6),其他的设置如图5-3所示。然后点击对话框下面的Jark::JoI_2OK”确认。生成的时间-角度曲线如图5-4所示。1 Joint MeasureMeasure namedingchouluensi two. JOINT_2 MEA 2JointJUINT 2Characteristic: Art/ Ay/Ar Projected Rotation图5-1旋转副属性修改命令ComponentC(ZFrom/此tC PART 3, MARKER 5tameI 2HARKER 6Crientati onSecond BodyRepresent coordinates inTypel revoluteForce Display Honev Create Strip Chartpose Mations)图5-3测量力对话框的设置团网」」_sy」cd图5-2修改对话框1 J0INT_2_MEA_17500Tine:1.000Current: 72037500.510图54时间和角度的曲线图由图5-4可以知道,当大齿轮每秒逆时针转过360度时,小齿轮顺时针转过的角度为720度符合标准外啮合渐开线直齿圆柱体齿轮传动角速度与齿轮的分度圆半径成反比。ADAMS分析实例-定轴轮系和行星轮系传动模拟有一对外聩合洧开线直圆柱体齿轮传动已知x1=50,32=25,m=4mm,=20°。两个齿轮的厚度都是5mm。1.启动 ADAMS双击桌面上 ADAMS/View的快捷图标,打开 ADAMS/View在欢迎对话框中选择“ Create a new model”,在模型名称( Model name)栏中输入; xingxingchiluen:在重力名称( Gravity)栏巾选择“ Earth normal(- Global y)”;在单位名称( Units)栏中选择“MMKS-mm,kg, N s, deg”。如图1-1所示。How would you l:ke to proceed?C Open an existing databaseImport a fileADAMSStart it D: AllAlS12Model name ing:ingchiluenGravity Earth Normal (-Global r)inits MMES-m,kg趴,degWurkiny Gril Fellingsv Show冒 orkime Grid图1-1欢迎对话框C Rectangular C Folar2.设置工作环境2.1对于这个模型,网格间距需要设置成更高的精度以满足要求。szC750mn)(500mm)在 ADAMS/View菜单栏中,选择设置(〈stim)下拉菜单中的工作sp网格( Working grid)命令。系统弹出设置T作网格对話框,将网格ColorWeight的尺寸Sie)中的X和Y分别设置成750mm和500m,间距( Spacing) Dots Contrast1中的X和Y都设置成50mm。然后点击“OK”确定。如图21所表 Ares Contrast1Lines Contrast厂 Triad Solid2.2用鼠标左键点击选择( Select)图标,控制面板出现在| Set location工具箱中。Set orientationQ23用鼠标左键点击动态放大( Dynamic Zo0m)图标Applyance在模型窗口中,点击鼠标左键并按住不放,移动鼠标进行放大或缩小。创建齿轮图2-1设置工作网格对话框3.1在 ADAMS/View零件库中选择圆柱Cylinder体 Cylinder)图标参数选择为“NewNew PartPart”,长度( Length)选择50mm(齿轮Y Length的厚度),半径( Radius)选择100mmm×ZV Radius210))。如图31所示。4×50100图3-1设置圆柱体选项3.2在 ADAMS/view工作窗凵中先用鼠标任意左键选择点(,,0)mm,然后选择点(0,50,0)。则一个圆柱体(PART2)创建出来。如图3-2所示。3-2创建圆柱体(齿轮)33在 ADAMS/iew中位置/方向库中选择位置旋转( Pusillum: Rotate,,)Selectedopy图标,在角度(Ange一栏中输入90.表示将对象旋转90度。如图33| About所示。在 ADAMS/wiew窗口中用鼠标左键选择圆柱体,将出来一个白色箭Angle头,移动光标,使白色箭头的位置和指向如图3-4所示。然后点击鼠标左键旋转后的圆柱体如佟3-5所示。图3-3位置旋转选项图3-4圆柱体的位置旋转35旋转90后的圆柱体34在 ADAMS/View零件库中选择圆柱体( Cylinder)图标,参数选择为“ New part”,长度( Length)选择50mm(齿轮的厚度),半径( Radius)选择50mm(m×z4×25=50)如图3-1所示。在 ADAMS/iew工作窗口口先用鼠标左键选择点(150,0,0)mm,然后选择点(150,50,0)。则一个圆柱体(PART3)创建出来。如图3-6所小。图3-6创建圆柱体(齿纶)3.5在 ADAMS/View中位置/方向库中选择位置旋转( Position: Rotate.)图标"一,在角度(Ange)一栏中输入90,表示将对象旋转90度。如图3-3所示。在 ADAMS/View窗口中用鼠标左键选择圆柱体,将出来一个自色箭头,移动光标,使白色箭头的位置和指向如图3-7所示。然后点击鼠标左键,旋转后的陨柱体如图3-8所示。3-7圆柱体的位置旋转图3-8旋转90后的圆杜体36在 ADAMS/VIew零件库中选择杆仁ik图标,,参数选择为如图39所示。在 ADAMS/View工作窗口中先用鼠标左键选择点PART2 MARKER1,然后选择点PART3 MARKER2。则一个连杆(PART4)创建出来。如图3-10所示。图3-10创建的连杆4.创建旋转副、齿轮副、固定副、旋转驱动4.1在本改计选择左边的齿轮(红色的)为固定齿轮选择 ADAMSaView约束库中的旋转副( Joint: Revolute)图标参数选择2Bod-1Loc和 Normal to grid。在ADAMS/View工作窗口中先用鼠标左键选择连杆aJ LDr3(PART_4),然后选择机架( ground),接着选择齿轮上的PART4 MARKER3,如图4-1所示。图中显亮的部分就是所创建的旋转副( JOINT1),该旋转副连接机架和连杆,使连杆能相对机架旋转。图4-1连杆的旋转别4.2再次选择 ADAMS/view约東库中的旋转副( Joint: Revolute)图标参数选择2Bod-lIoc和 Normal to grid。在 ADAMS/view工作窗口中先用鼠标左键选择齿轮(PART_2),然后选择连杆(PART_4),接着选择齿轮上的PART2cm(或者PART2 MARKER1),如图42所示。图中显亮的部分就是所创建的旋转副( JOINT2),该旋转副连接连杆和固定齿轮,使连杆能对固定齿轮旋转。因为 JOINT1和JOINT2重合在一起,所以从图4-2中区分不出来图4-2固定齿轮的旋转副43再次选择 ADAMS/view约束库中的旋转副( Joint: Revolute)饜标",参数近择2Bod-1Loc和Normal to grid。在 ADAMS/view工作窗口中先用鼠标左键选择齿轮(PART3),然后选择连杆(PART4),接着选择齿轮上的PART3cm(或者PART3 MARKER2),如图43所示。图中显亮的部分就是所创建的旋转副( JOINT3),该旋转副连接连杆和行星轮使迕杆能带动行星轮旋转。图4-3行星轮的旋转副44创建完两个齿轮和连杆上的旋转副后,还要创建两个齿轮的啮合点( MARKER)。因为行星轮要在定齿轮上做圆周运动,所以行星轮和固定齿轮的啮合点不是匝定不动的,它随着行星轮的运动而不断地变化,因此,可以把啮合点固定在连杆上,因为迕杆和行星轮一起做园周运动,并且两齿轮旋转中心的连线一定经过啮合点。下面我们将把啮合点围在连杆,并且使啮合点Z轴的方向与齿轮的传动方向相同。选择 ADAMS/view零件库中的标记点工具图标参数选择如图44所示。选择连杆(PART4)在选择连杆上点PART4cm,如图45所示,图中显亮的部分就是所创建的啮合点( MARKER_11)arherAdd to partOrientationGlobal xY图44标记点的选项图4-5固定齿轮和行星轮之间的啮合点45上面所创建的啮合点不在两个齿轮的分度圆的交线上,下面将对上面做出的啮合点进行位置移动和方位旋转使该啮合点位于两齿轮交线上,并仅啮合点的Z轴方向与齿轮旋转方向相同。在 ADAMS/VIew窗口中,在两个齿轮啮合处点击鼠标右键,选拦- Maker: MARKER14→ Modify,如图4-5所示。在弹出的对话框中,将 Location栏的值75.0.25.0,-25.改为100.0,25.0.-250(位置移动),将 Orientation栏中的值0.0.0.0.
    2021-05-06下载
    积分: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
  • 系统与控制丛书 模型预测控制_陈虹
    模型预测控制入门教材,系统与控制丛书 模型预测控制_陈虹著
    2020-12-03下载
    积分:1
  • photoshopCC dds插件
    photoshop CC 2018 64位可用dds64位插件,兼容所有PS64位使用
    2020-11-28下载
    积分:1
  • asp.net留言簿实验报告
    这是我的留言簿的实验报告,完整版。里面包括运行界面截图和部分代码。
    2020-11-03下载
    积分:1
  • echarts地图各省、市、县js和json
    整理的Echarts省市县地图js文件和json,省市很全,不骗人,可以放心使用。希望对你们有帮助
    2020-12-03下载
    积分:1
  • WPF日期时间控件-DateTimePicker
    1.日期时间控件,可以直接点击使用2.是源代码文件3.压缩包里面有使用说明文档,并有当初设计时详细的思路流程可以参考
    2021-05-06下载
    积分:1
  • 多相滤波matlab仿真
    基于多相滤波的可行性的matlab仿真程序
    2020-07-02下载
    积分:1
  • 单相并网逆变器PQ仿真
    【实例简介】单相并网逆变器,LCL滤波,设置PQ即可输出输出设定功率到模拟电网
    2021-11-18 00:51:48下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载