|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcodesimian.CS
codesimian.DefaultCS
codesimian.BayesNode
codesimian.ContinuousBayesNode
public class ContinuousBayesNode
continuousBayesNode(list(childs...) list(probabilities...))
If P(2) exists, it is the LEARNING SPEED, which ranges 0 - 1. Closer to 0 is best.
If not, the default learning speed is used, approximately .05
CHANGE THE JAVADOC: Instead of predicting the last child, the FIRST child is predicted.
EXTERNAL TRAINING VS SELF TRAINING:
Similar to BayesNode, but modifies its own probability list (P(1))
by slowly averaging in child values. Every time this ContinuousBayesNode executes,
it gets the values of its childs and slightly updates the probabilities.
ContinuousBayesNode returns the PREDICTED value of the last child (P(1).P(P(1).countP()-1))
LIST SIZES:
Unlike a normal BayesNode, probability list's size must be 2^(child lists's size).
A normal bayesnode has a probability list has size 2^(child lists's size + 1)
because the normal bayesnode's probability is included as a child,
but a continuousBayesNode does not predict its own value.
Instead it predicts the value of its last child. This means it uses UNSUPERVISED LEARNING,
but its really the last child unknowingly being the supervisor.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class codesimian.BayesNode |
|---|
BayesNode.VerifyCountP |
| Field Summary |
|---|
| Fields inherited from class codesimian.BayesNode |
|---|
TYPE |
| Fields inherited from class codesimian.CS |
|---|
DESCRIPTION, END, EXECPROXY, FUEL, HEAP, JAVACODE, MYFUEL, NAME, NEWINSTANCE, NULL, PARENT, PARSEPRIORITY, PREV, TESTER |
| Constructor Summary | |
|---|---|
ContinuousBayesNode()
|
|
| Method Summary | |
|---|---|
static void |
copyArrayToCS(double[] array,
CS list)
|
java.lang.String |
description()
a short description of this CS, shorter than the javadoc, but long enough to tell what the params are for. |
double |
DForProxy()
returns this node's CHANCE (0.0 to 1) based on the DForProxy()s/chances of param0's params and the conditional-probabilities in param1. |
java.lang.String |
keyword()
For the CodeSimian language as a String. CodeSimian language keyword, like "+" "*" "max" ">" etc. Override this function if you want to specify a keyword other than how I derive them from the class name, like + for Add. Some CSs might never be intended to be used in the language by their keyword. The best example (4/05) is Num, because it is used in the language like "3.4" instead of "num()". |
int |
maxP()
Maximum quantity of Params |
int |
minP()
For DForProxy(). Minimum number of parameters in param[] needed to call DForProxy(). Defines which indexs of param[] DForProxy() can use. Functions with a different number of parameters must override this. OVERRIDE THIS FUNCTION IF EXEC USES A DIFFERENT NUMBER OF PARAMETERS. Default is 1. |
CS |
PType(int index)
WARNING: since type type of P(1) depends on the type of P(0) and the reverse, if you always check types before adding CSs, none can ever be added. |
boolean |
setD(double execValue)
Removes all child bayes-nodes and all conditional-probabilities. |
| Methods inherited from class codesimian.BayesNode |
|---|
addToHistory, adjustBitChance, bitChance, childCountForCondProbSize, cost, makeArraySumTo1, sum |
| Methods inherited from class codesimian.DefaultCS |
|---|
B, C, countP, decrementMyFuel, deleteP, F, fuel, getExec, getObject, heap, I, indexP, indexPName, insertB, insertC, insertD, insertF, insertI, insertJ, insertL, insertL, insertL1, insertP, insertS, insertZ, J, javaCode, LForProxy, LForProxy, myFuel, name, newInstance, objectToCS, objectToCSArray, objectToCSArray, P, prevD, prevL, S, setB, setC, setCountP, setD, setExec, setF, setFuel, setI, setJ, setL, setL, setL, setL1, setMyFuel, setName, setObject, setP, setPrevExec, setS, setZ, start, toString, V, Z |
| Methods inherited from class codesimian.CS |
|---|
addP, addP, addP, addP, addP, BForProxy, CForProxy, clone, D, deleteP, FForProxy, IForProxy, isIllusion, javaCode, JForProxy, L, L, L, L, L, maxD, minD, overwrites, parent, parsePriority, PB, PC, PD, PF, PI, PJ, PL, prevB, prevC, prevF, prevI, prevJ, prevS, prevZ, proxyOf, PS, PZ, reflect, reflect, setB, setC, setCost, setDescription, setF, setHeap, setI, setJ, setL, setL, setParent, setParsePriority, setProxyOf, setPType, setS, setTester, setZ, SForProxy, tester, VForProxy, voidReflect, ZForProxy |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ContinuousBayesNode()
| Method Detail |
|---|
public double DForProxy()
BayesNode
DForProxy in class BayesNodepublic int minP()
DefaultCS
minP in class BayesNodepublic int maxP()
CS
maxP in class BayesNodepublic java.lang.String keyword()
DefaultCS
keyword in class BayesNodeCS.parent(),
CS.newInstance(),
CS.name()public java.lang.String description()
CS
description in class BayesNodepublic boolean setD(double execValue)
BayesNode
setD in class BayesNodepublic CS PType(int index)
PType in class BayesNode
public static void copyArrayToCS(double[] array,
CS list)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||