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

📄 lab1hebb.frm

📁 bp, backpropagation 神经网络 简单认字 错误开发实例。
💻 FRM
📖 第 1 页 / 共 3 页
字号:
            Strikethrough   =   0   'False
         EndProperty
         Height          =   675
         Index           =   2
         Left            =   240
         TabIndex        =   11
         Top             =   2640
         Width           =   675
      End
      Begin VB.TextBox Tgt 
         Alignment       =   2  'Center
         Enabled         =   0   'False
         BeginProperty Font 
            Name            =   "Times New Roman"
            Size            =   14.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   675
         Index           =   1
         Left            =   240
         TabIndex        =   10
         Top             =   1800
         Width           =   675
      End
      Begin VB.TextBox Tgt 
         Alignment       =   2  'Center
         Enabled         =   0   'False
         BeginProperty Font 
            Name            =   "Times New Roman"
            Size            =   14.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   675
         Index           =   0
         Left            =   240
         TabIndex        =   9
         Top             =   960
         Width           =   675
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "Input"
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   4335
      Left            =   240
      TabIndex        =   18
      Top             =   840
      Width           =   2775
      Begin VB.TextBox t 
         Alignment       =   2  'Center
         BackColor       =   &H8000000B&
         BeginProperty Font 
            Name            =   "Times New Roman"
            Size            =   14.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   675
         Index           =   3
         Left            =   1800
         Locked          =   -1  'True
         TabIndex        =   0
         Text            =   "1"
         Top             =   3480
         Width           =   675
      End
      Begin VB.TextBox X2 
         Alignment       =   2  'Center
         BeginProperty Font 
            Name            =   "Times New Roman"
            Size            =   14.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   675
         Index           =   3
         Left            =   960
         TabIndex        =   8
         Top             =   3480
         Width           =   675
      End
      Begin VB.TextBox X1 
         Alignment       =   2  'Center
         BeginProperty Font 
            Name            =   "Times New Roman"
            Size            =   14.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   675
         Index           =   3
         Left            =   120
         TabIndex        =   7
         Top             =   3480
         Width           =   675
      End
      Begin VB.TextBox t 
         Alignment       =   2  'Center
         BackColor       =   &H8000000B&
         BeginProperty Font 
            Name            =   "Times New Roman"
            Size            =   14.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   675
         Index           =   2
         Left            =   1800
         Locked          =   -1  'True
         TabIndex        =   15
         Text            =   "1"
         Top             =   2640
         Width           =   675
      End
      Begin VB.TextBox X2 
         Alignment       =   2  'Center
         BeginProperty Font 
            Name            =   "Times New Roman"
            Size            =   14.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   675
         Index           =   2
         Left            =   960
         TabIndex        =   6
         Top             =   2640
         Width           =   675
      End
      Begin VB.TextBox X1 
         Alignment       =   2  'Center
         BeginProperty Font 
            Name            =   "Times New Roman"
            Size            =   14.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   675
         Index           =   2
         Left            =   120
         TabIndex        =   5
         Top             =   2640
         Width           =   675
      End
      Begin VB.TextBox t 
         Alignment       =   2  'Center
         BackColor       =   &H8000000B&
         BeginProperty Font 
            Name            =   "Times New Roman"
            Size            =   14.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   675
         Index           =   1
         Left            =   1800
         Locked          =   -1  'True
         TabIndex        =   16
         Text            =   "1"
         Top             =   1800
         Width           =   675
      End
      Begin VB.TextBox X2 
         Alignment       =   2  'Center
         BeginProperty Font 
            Name            =   "Times New Roman"
            Size            =   14.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   675
         Index           =   1
         Left            =   960
         TabIndex        =   4
         Top             =   1800
         Width           =   675
      End
      Begin VB.TextBox X1 
         Alignment       =   2  'Center
         BeginProperty Font 
            Name            =   "Times New Roman"
            Size            =   14.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   675
         Index           =   1
         Left            =   120
         TabIndex        =   3
         Top             =   1800
         Width           =   675
      End
      Begin VB.TextBox t 
         Alignment       =   2  'Center
         BackColor       =   &H8000000B&
         BeginProperty Font 
            Name            =   "Times New Roman"
            Size            =   14.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   675
         Index           =   0
         Left            =   1800
         Locked          =   -1  'True
         TabIndex        =   17
         Text            =   "1"
         Top             =   960
         Width           =   675
      End
      Begin VB.TextBox X2 
         Alignment       =   2  'Center
         BeginProperty Font 
            Name            =   "Times New Roman"
            Size            =   14.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   675
         Index           =   0
         Left            =   960
         TabIndex        =   2
         Top             =   960
         Width           =   675
      End
      Begin VB.TextBox X1 
         Alignment       =   2  'Center
         BeginProperty Font 
            Name            =   "Times New Roman"
            Size            =   14.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   675
         Index           =   0
         Left            =   120
         TabIndex        =   1
         Top             =   960
         Width           =   675
      End
      Begin VB.Label Label8 
         Caption         =   "t"
         BeginProperty Font 
            Name            =   "Times New Roman"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H000000FF&
         Height          =   255
         Left            =   2040
         TabIndex        =   54
         Top             =   600
         Width           =   255
      End
      Begin VB.Label Label7 
         Caption         =   "(X2)"
         BeginProperty Font 
            Name            =   "Times New Roman"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H000000FF&
         Height          =   255
         Left            =   1080
         TabIndex        =   53
         Top             =   600
         Width           =   495
      End
      Begin VB.Label Label2 
         Caption         =   "(X1)"
         BeginProperty Font 
            Name            =   "Times New Roman"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H000000FF&
         Height          =   255
         Left            =   240
         TabIndex        =   52
         Top             =   600
         Width           =   495
      End
   End
End
Attribute VB_Name = "lab1Hebb"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdAnd_Click()

For i = 0 To 3
Tgt(i).Text = X1(i).Text And X2(i).Text
Next i

End Sub

Private Sub cmdOr_Click()

For i = 0 To 3
Tgt(i).Text = X1(i).Text Or X2(i).Text
Next i

End Sub

Private Sub Reset_Click()
For i = 0 To 3
w1(i).Text = ""
w2(i).Text = ""
Tgt(i).Text = ""
w1(i).Text = ""
w2(i).Text = ""
w3(i + 1).Text = ""
w4(i + 1).Text = ""
tgtbaru(i).Text = ""
tgtbaru2(i + 1).Text = ""
X1(i).Text = ""
X2(i).Text = ""

Next i
w3(4).Text = ""
w4(4).Text = ""
tgtbaru2(4) = ""

End Sub

Private Sub Run_Click()

    For i = 0 To 3
    w1(i).Text = X1(i).Text * Tgt(i).Text
    w2(i).Text = X2(i).Text * Tgt(i).Text
    tgtbaru(i).Text = Tgt(i).Text
    w3(i + 1).Text = Val(w3(i).Text) + Val(w1(i).Text)
    w4(i + 1).Text = Val(w2(i).Text) + Val(w4(i).Text)
    tgtbaru2(i + 1).Text = Val(Tgt(i).Text) + Val(tgtbaru2(i).Text)

    Next i
    

End Sub

⌨️ 快捷键说明

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