Skip to content

Commit

Permalink
Adedd RFT Transfomation of Stimulus Function example
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyLo1 committed Mar 4, 2019
1 parent da3bf81 commit b418eb9
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 11 deletions.
2 changes: 1 addition & 1 deletion ALANNStreams/TypesPlus/Params.fs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ let HORIZON = 1.0f // System Personality Fa
let CONF_MAX_CLAMP = 0.99f // Clamp value for truth conf to avoid rounding to 1.0f

// Node Related Parameters
let ACTIVATION_THRESHOLD = 0.85f // Minimum concept STI for concept activation
let ACTIVATION_THRESHOLD = 0.70f // Minimum concept STI for concept activation
let RESTING_POTENTIAL = 0.25f // After firing node attention is reset to this
let DECAY_RATE = 0.10f // Lambda decay rate for node forgetting - higher value -> slower decay
let LATENCY_PERIOD = 1L // Concept latency period in milliseconds
Expand Down
21 changes: 11 additions & 10 deletions ALANNUI/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions ALANNUI/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,11 @@ private void MatchToSampleBtn_Click(object sender, EventArgs e)
SendTestToServer(MatchToSampleTest);
}

private void TransformFuncBtn_Click(object sender, EventArgs e)
{
SendTestToServer(TransformStimulusFuncTest);
}

private void SendCmdToServer(string cmd, params string[] list)
{
var cmdStr = cmd + (list.Length == 0 ? "" : list[0]);
Expand Down Expand Up @@ -442,6 +447,18 @@ private void DisplayWelcomeMessage()
"<(* ?what _) --> example>?"
};

string[] TransformStimulusFuncTest =
{
"<([bad] * [good]) --> opposite>.",
"<juice --> [good]>.",
"<\"Juice\" <-> juice>.",
"<(\"Coffee\" * \"Juice\") --> opposite>.",
"<(\"Beer\" * \"Juice\") --> better>.",
"<(better / _ [good]) <-> [great]>.",
"<\"Beer\" --> [great]>?",
"<\"Coffee\" --> [bad]>?"
};

string[] Samples =
{
"<cat --> animal>.",
Expand Down

0 comments on commit b418eb9

Please sign in to comment.