⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form4.frm

📁 是关于MATALB 神经网络与VB的混合编程,希望对大家有所帮助
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form4 
   Caption         =   "参数设置"
   ClientHeight    =   5355
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   3990
   ControlBox      =   0   'False
   LinkTopic       =   "Form4"
   ScaleHeight     =   5355
   ScaleWidth      =   3990
   StartUpPosition =   2  'CenterScreen
   Begin VB.Frame Frame3 
      Caption         =   "请选择神经元的传递函数"
      Height          =   735
      Left            =   240
      TabIndex        =   14
      Top             =   3840
      Width           =   3495
      Begin VB.ComboBox Combo1 
         Height          =   300
         Left            =   0
         TabIndex        =   15
         Top             =   360
         Width           =   3495
      End
   End
   Begin VB.Frame Frame2 
      Caption         =   "调整权值的方式"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   1095
      Left            =   240
      TabIndex        =   11
      Top             =   2520
      Width           =   3495
      Begin VB.OptionButton Option1 
         Caption         =   "按单个样本误差调整权值"
         Height          =   375
         Left            =   120
         TabIndex        =   13
         Top             =   600
         Width           =   2415
      End
      Begin VB.OptionButton Option2 
         Caption         =   "按总体误差调整权值"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9.75
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   120
         TabIndex        =   12
         Top             =   360
         Width           =   2175
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "训练参数"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   2295
      Left            =   240
      TabIndex        =   2
      Top             =   120
      Width           =   3375
      Begin VB.TextBox Text1 
         Height          =   375
         Left            =   1320
         TabIndex        =   6
         Text            =   "0.002"
         Top             =   360
         Width           =   1815
      End
      Begin VB.TextBox Text2 
         Height          =   375
         Left            =   1320
         TabIndex        =   5
         Text            =   "8000"
         Top             =   840
         Width           =   1815
      End
      Begin VB.TextBox Text3 
         Height          =   375
         Left            =   1320
         TabIndex        =   4
         Text            =   "0.9"
         Top             =   1320
         Width           =   1815
      End
      Begin VB.TextBox Text4 
         Height          =   375
         Left            =   1320
         TabIndex        =   3
         Text            =   "0.7"
         Top             =   1800
         Width           =   1815
      End
      Begin VB.Label Label5 
         Caption         =   "误差上限"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9.75
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   240
         TabIndex        =   10
         Top             =   480
         Width           =   855
      End
      Begin VB.Label Label6 
         Caption         =   "训练次数"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9.75
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   240
         TabIndex        =   9
         Top             =   960
         Width           =   855
      End
      Begin VB.Label Label1 
         Caption         =   "学习速率"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9.75
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   240
         TabIndex        =   8
         Top             =   1440
         Width           =   855
      End
      Begin VB.Label Label2 
         Caption         =   "动量因子"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9.75
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   240
         TabIndex        =   7
         Top             =   1920
         Width           =   855
      End
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   2160
      TabIndex        =   1
      Top             =   4680
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   600
      TabIndex        =   0
      Top             =   4680
      Width           =   975
   End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()

    Err_Up = Text1.Text
    Prac_Num = Text2.Text
    L = Text4.Text  '动量因子
    p = Text3.Text  '学习速率
    If Option1.Value = True Then
       Flag = 1
    ElseIf Option2.Value = True Then
       Flag = 2
    End If
    FunctionNum = Combo1.ListIndex
'    Form4.Visible = False
'    MsgBox "检验前,请先选择检验样本", , "注意"
'    Form2.Command5.Enabled = True
'    Form2.structure.Enabled = True
     Unload Me
     Form1.Show
     
End Sub

Private Sub Command2_Click()

    Unload Me
    
End Sub

Private Sub Form_Load()

    Dim i As Integer, n As Integer
    Set FunctionX = New FunctionDLL.Function
    n = FunctionX.GetNum
    For i = 0 To n - 1
        Combo1.AddItem FunctionX.FunctionX(i)
    Next i
    Combo1.Text = Combo1.List(0)
    Combo1.ListIndex = 0
    
    Option2.Value = True
    Flag = 2
    Text1.Text = Err_Up
    Text2.Text = Prac_Num
    Text3.Text = p
    Text4.Text = L
    
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -