Skip to content

Commit 15f86f3

Browse files
authored
Merge pull request o3de#531 from kberg0/MachineLearningGem
Machine learning gem
2 parents 9a692fd + d7cf2c5 commit 15f86f3

File tree

119 files changed

+5719
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+5719
-0
lines changed
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 16 additions & 0 deletions
Loading
51.3 KB
Binary file not shown.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"entries": [
3+
{
4+
"base": "{4E0AAD3E-A05D-3BCB-2F80-B80A602913F9}",
5+
"context": "ScriptCanvas::Node",
6+
"variant": "",
7+
"details": {
8+
"name": "Accumulate training gradients",
9+
"category": "MachineLearning",
10+
"tooltip": "Accumulates the loss gradients for a machine learning model against a set of activations and a set of expected outputs."
11+
},
12+
"slots": [
13+
{
14+
"base": "Input_In_0",
15+
"details": {
16+
"name": "In",
17+
"tooltip": "Parameters controlling loss gradient calculation"
18+
}
19+
},
20+
{
21+
"base": "DataInput_Model_0",
22+
"details": {
23+
"name": "Model"
24+
}
25+
},
26+
{
27+
"base": "DataInput_CostFunction_1",
28+
"details": {
29+
"name": "CostFunction"
30+
}
31+
},
32+
{
33+
"base": "DataInput_Activations_2",
34+
"details": {
35+
"name": "Activations"
36+
}
37+
},
38+
{
39+
"base": "DataInput_ExpectedOutput_3",
40+
"details": {
41+
"name": "ExpectedOutput"
42+
}
43+
},
44+
{
45+
"base": "Output_On In_0",
46+
"details": {
47+
"name": "On In",
48+
"tooltip": "Parameters controlling loss gradient calculation"
49+
}
50+
},
51+
{
52+
"base": "DataOutput_Model_0",
53+
"details": {
54+
"name": "Model"
55+
}
56+
}
57+
]
58+
}
59+
]
60+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"entries": [
3+
{
4+
"base": "{0FA8FC88-6C4B-9260-6CC3-F2154691B279}",
5+
"context": "ScriptCanvas::Node",
6+
"variant": "",
7+
"details": {
8+
"name": "Compute cost",
9+
"category": "MachineLearning",
10+
"tooltip": "Calculates the total 'cost' of a machine learning model against a set of activations and a set of expected outputs."
11+
},
12+
"slots": [
13+
{
14+
"base": "Input_In_0",
15+
"details": {
16+
"name": "In",
17+
"tooltip": "Parameters controlling the cost calculation"
18+
}
19+
},
20+
{
21+
"base": "DataInput_Model_0",
22+
"details": {
23+
"name": "Model"
24+
}
25+
},
26+
{
27+
"base": "DataInput_CostFunction_1",
28+
"details": {
29+
"name": "CostFunction"
30+
}
31+
},
32+
{
33+
"base": "DataInput_Activations_2",
34+
"details": {
35+
"name": "Activations"
36+
}
37+
},
38+
{
39+
"base": "DataInput_ExpectedOutput_3",
40+
"details": {
41+
"name": "ExpectedOutput"
42+
}
43+
},
44+
{
45+
"base": "Output_On In_0",
46+
"details": {
47+
"name": "On In",
48+
"tooltip": "Parameters controlling the cost calculation"
49+
}
50+
},
51+
{
52+
"base": "DataOutput_Cost_0",
53+
"details": {
54+
"name": "Cost"
55+
}
56+
}
57+
]
58+
}
59+
]
60+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"entries": [
3+
{
4+
"base": "{CE7FD101-9866-AD89-0D38-90165BD10B2C}",
5+
"context": "ScriptCanvas::Node",
6+
"variant": "",
7+
"details": {
8+
"name": "Feed forward",
9+
"category": "MachineLearning",
10+
"tooltip": "Performs a feed-forward operation on the model to obtain a set of outputs given an input."
11+
},
12+
"slots": [
13+
{
14+
"base": "Input_In_0",
15+
"details": {
16+
"name": "In",
17+
"tooltip": "Parameters controlling the feed forward operation"
18+
}
19+
},
20+
{
21+
"base": "DataInput_Model_0",
22+
"details": {
23+
"name": "Model"
24+
}
25+
},
26+
{
27+
"base": "DataInput_Activations_1",
28+
"details": {
29+
"name": "Activations"
30+
}
31+
},
32+
{
33+
"base": "Output_On In_0",
34+
"details": {
35+
"name": "On In",
36+
"tooltip": "Parameters controlling the feed forward operation"
37+
}
38+
},
39+
{
40+
"base": "DataOutput_Output_0",
41+
"details": {
42+
"name": "Output"
43+
}
44+
}
45+
]
46+
}
47+
]
48+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"entries": [
3+
{
4+
"base": "{73A0AA0F-C71C-2FA9-0D04-B0927EB81CEC}",
5+
"context": "ScriptCanvas::Node",
6+
"variant": "",
7+
"details": {
8+
"name": "Load training data",
9+
"category": "MachineLearning",
10+
"tooltip": "Loads a set of labeled training data."
11+
},
12+
"slots": [
13+
{
14+
"base": "Input_In_0",
15+
"details": {
16+
"name": "In",
17+
"tooltip": "Parameters controlling what data to load"
18+
}
19+
},
20+
{
21+
"base": "Output_On In_0",
22+
"details": {
23+
"name": "On In",
24+
"tooltip": "Parameters controlling what data to load"
25+
}
26+
},
27+
{
28+
"base": "DataOutput_Data_0",
29+
"details": {
30+
"name": "Data"
31+
}
32+
}
33+
]
34+
}
35+
]
36+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"entries": [
3+
{
4+
"base": "{F5A5E296-F8C1-8316-87D7-80FB5DED6BF7}",
5+
"context": "ScriptCanvas::Node",
6+
"variant": "",
7+
"details": {
8+
"name": "One hot encoder",
9+
"category": "MachineLearning",
10+
"tooltip": "One-hot encodes a value."
11+
},
12+
"slots": [
13+
{
14+
"base": "Input_In_0",
15+
"details": {
16+
"name": "In",
17+
"tooltip": "Parameters controlling the one-hot encoding"
18+
}
19+
},
20+
{
21+
"base": "DataInput_value_0",
22+
"details": {
23+
"name": "value"
24+
}
25+
},
26+
{
27+
"base": "DataInput_maxValue_1",
28+
"details": {
29+
"name": "maxValue"
30+
}
31+
},
32+
{
33+
"base": "Output_On In_0",
34+
"details": {
35+
"name": "On In",
36+
"tooltip": "Parameters controlling the one-hot encoding"
37+
}
38+
},
39+
{
40+
"base": "DataOutput_oneHot_0",
41+
"details": {
42+
"name": "oneHot"
43+
}
44+
}
45+
]
46+
}
47+
]
48+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"entries": [
3+
{
4+
"base": "{716A4682-81F5-11EF-B2F0-938CED78825E}",
5+
"context": "ScriptCanvas::Node",
6+
"variant": "",
7+
"details": {
8+
"name": "Gradient descent",
9+
"category": "MachineLearning",
10+
"tooltip": "Performs a gradient descent step on a model, and zeroes all gradient vectors."
11+
},
12+
"slots": [
13+
{
14+
"base": "Input_In_0",
15+
"details": {
16+
"name": "In",
17+
"tooltip": "Parameters controlling gradient descent"
18+
}
19+
},
20+
{
21+
"base": "DataInput_Model_0",
22+
"details": {
23+
"name": "Model"
24+
}
25+
},
26+
{
27+
"base": "DataInput_LearningRate_1",
28+
"details": {
29+
"name": "LearningRate"
30+
}
31+
},
32+
{
33+
"base": "Output_On In_0",
34+
"details": {
35+
"name": "On In",
36+
"tooltip": "Parameters controlling gradient descent"
37+
}
38+
},
39+
{
40+
"base": "DataOutput_Model_0",
41+
"details": {
42+
"name": "Model"
43+
}
44+
}
45+
]
46+
}
47+
]
48+
}

0 commit comments

Comments
 (0)