File size: 1,562 Bytes
b1b3bae
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Public Interface IANNModel

    Property Data As List(Of List(Of Single))

    Property MetaData As IConvergenceHelperMetaData

    Property Parameters As IModelParameters

    Property SerializedModelData As String

    Property TensorName_Output As String

    Property TensorName_X As String

    Property TensorName_Y As String

    Property session As Object

    Sub Dispose()

    Function LoadData(ByVal data As List(Of XElement)) As Boolean

    Function Predict(ByVal inputdata As List(Of Single)) As List(Of Single)

    Sub PrepareData()

    Function SaveData() As List(Of XElement)

    Function Summary() As String

    Sub Train(Optional ByVal flowsheet As IFlowsheet = Nothing)

End Interface

Public Interface IModelParameters

    Property AbsoluteMSETolerance As Single

    Property BatchSize As Integer

    Property Labels As List(Of String)

    Property Labels_Outputs As List(Of String)

    Property LearningRate As Single

    Property MaxScale As Single

    Property MaxValues As List(Of Single)

    Property MinScale As Single

    Property MinValues As List(Of Single)

    Property NumberOfEpochs As Integer

    Property NumberOfLayers As Integer

    Property NumberOfNeuronsOnFirstLayer As Integer

    Property RelativeMSETolerance As Single

    Property SplitFactor As Single

    Property TensorName_Output As String

    Property TensorName_X As String

    Property TensorName_Y As String

    Function LoadData(ByVal data As List(Of XElement)) As Boolean

    Function SaveData() As List(Of XElement)

End Interface