Index

A B C D E F G H I L N O P Q S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

accuracy(TrainingSet) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
 
add(TrainingInstance) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.TrainingSet
 
add(E) - Method in interface com.github.basking2.sdsai.sandbox.List
 
addEdge(Node, Node) - Method in class com.github.basking2.sdsai.sandbox.graph.Graph
Add and edge from start to stop.
addInEdge(Edge) - Method in class com.github.basking2.sdsai.sandbox.graph.GraphNode
Add an in-edge to this node.
addInEdge(Edge) - Method in interface com.github.basking2.sdsai.sandbox.graph.Node
Add an in-edge to this node.
addOutEdge(Edge) - Method in class com.github.basking2.sdsai.sandbox.graph.GraphNode
Adding an out-edge.
addOutEdge(Edge) - Method in interface com.github.basking2.sdsai.sandbox.graph.Node
Adding an out-edge.
answer - Variable in class com.github.basking2.sdsai.sandbox.ai.nnet.TrainingInstance
 
answer() - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
Return the index of what the NeuralNet thinks is the current answer.

B

block - Variable in class com.github.basking2.sdsai.sandbox.Queue
If there is a limit on the queue length, block the thread that is attempting to add more data.

C

clear() - Method in interface com.github.basking2.sdsai.sandbox.List
 
clearVisited() - Method in class com.github.basking2.sdsai.sandbox.graph.GraphNode
 
clearVisited() - Method in interface com.github.basking2.sdsai.sandbox.graph.Node
 
com.github.basking2.sdsai.sandbox - package com.github.basking2.sdsai.sandbox
 
com.github.basking2.sdsai.sandbox.ai.nnet - package com.github.basking2.sdsai.sandbox.ai.nnet
 
com.github.basking2.sdsai.sandbox.graph - package com.github.basking2.sdsai.sandbox.graph
 
copy() - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
This will make a copy of the NeurlaNet and ALL nodes and edges.
copy() - Method in interface com.github.basking2.sdsai.sandbox.graph.Edge
 
copy() - Method in class com.github.basking2.sdsai.sandbox.graph.GraphCopier
Copy the nodes from src to dst.
copy() - Method in class com.github.basking2.sdsai.sandbox.graph.GraphEdge
 
copy() - Method in class com.github.basking2.sdsai.sandbox.graph.GraphNode
 
copy() - Method in interface com.github.basking2.sdsai.sandbox.graph.Node
 

D

data - Variable in class com.github.basking2.sdsai.sandbox.ai.nnet.TrainingInstance
 
data - Variable in class com.github.basking2.sdsai.sandbox.Queue.QE
 
decide(double[]) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
 
del(int) - Method in interface com.github.basking2.sdsai.sandbox.List
 
del(TrainingInstance) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.TrainingSet
Delete the matching array objects contained in t.
del(E) - Method in interface com.github.basking2.sdsai.sandbox.List
 
delInEdge(Edge) - Method in class com.github.basking2.sdsai.sandbox.graph.GraphNode
 
delInEdge(Edge) - Method in interface com.github.basking2.sdsai.sandbox.graph.Node
 
delOutEdge(Edge) - Method in class com.github.basking2.sdsai.sandbox.graph.GraphNode
 
delOutEdge(Edge) - Method in interface com.github.basking2.sdsai.sandbox.graph.Node
 
dequeue() - Method in class com.github.basking2.sdsai.sandbox.Queue
 
dequeue(long) - Method in class com.github.basking2.sdsai.sandbox.Queue
Block until there is data to return if this is a blocking queue.
dropHead - Variable in class com.github.basking2.sdsai.sandbox.Queue
If limit is greater than 0 do we dropTail (drop the oldest element) or ignore the added element.
dst - Variable in class com.github.basking2.sdsai.sandbox.graph.GraphEdge
 

E

Edge - Interface in com.github.basking2.sdsai.sandbox.graph
 
EgressEdge - Class in com.github.basking2.sdsai.sandbox.ai.nnet
 
EgressEdge(HiddenNode) - Constructor for class com.github.basking2.sdsai.sandbox.ai.nnet.EgressEdge
 
empty() - Method in interface com.github.basking2.sdsai.sandbox.List
 
empty() - Method in class com.github.basking2.sdsai.sandbox.Queue
 
enqueue(E) - Method in class com.github.basking2.sdsai.sandbox.Queue
 
enqueue(E, long) - Method in class com.github.basking2.sdsai.sandbox.Queue
This method will attempt to enqueue an object according to the rules of this queue.
errorDistance(TrainingInstance) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
How "far" are we from being right?
eta - Variable in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
Speed at which to "learn."
ETA - Static variable in interface com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNetElement
 

F

find(E) - Method in interface com.github.basking2.sdsai.sandbox.List
returns the index of the object.
flush() - Method in class com.github.basking2.sdsai.sandbox.Queue
Safely empty the queue and notify all thread waiting on this.
forceEnqueue(E) - Method in class com.github.basking2.sdsai.sandbox.Queue
Enqueue the object without checking any limits to this Queue's length.

G

get(int) - Method in interface com.github.basking2.sdsai.sandbox.List
 
get(Edge) - Method in class com.github.basking2.sdsai.sandbox.graph.GraphCopier
Given an edge, the edge in the copied graph which connects the same two nodes in the SAME direction and has the same weight is returned.
get(Node) - Method in interface com.github.basking2.sdsai.sandbox.graph.Edge
Returns null if the edge does not contain n.
get(Node) - Method in class com.github.basking2.sdsai.sandbox.graph.GraphCopier
Given a node, src is scanned and the corrosponding node in cpy is returned.
get(Node) - Method in class com.github.basking2.sdsai.sandbox.graph.GraphEdge
 
getAnswer() - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.TrainingInstance
 
getBlock() - Method in class com.github.basking2.sdsai.sandbox.Queue
 
getCpyNodes() - Method in class com.github.basking2.sdsai.sandbox.graph.GraphCopier
 
getData() - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.TrainingInstance
 
getData(int) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.TrainingSet
 
getDestination() - Method in interface com.github.basking2.sdsai.sandbox.graph.Edge
 
getDestination() - Method in class com.github.basking2.sdsai.sandbox.graph.GraphEdge
 
getDropHead() - Method in class com.github.basking2.sdsai.sandbox.Queue
 
getEdges() - Method in class com.github.basking2.sdsai.sandbox.graph.GraphNode
 
getEdges() - Method in interface com.github.basking2.sdsai.sandbox.graph.Node
 
getEndOfQueueObject() - Method in class com.github.basking2.sdsai.sandbox.Queue
 
getInEdges() - Method in class com.github.basking2.sdsai.sandbox.graph.GraphNode
 
getInEdges() - Method in interface com.github.basking2.sdsai.sandbox.graph.Node
 
getInstance(int) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.TrainingSet
 
getKey() - Method in class com.github.basking2.sdsai.sandbox.graph.GraphEdge
 
getLimit() - Method in class com.github.basking2.sdsai.sandbox.Queue
 
getNeighbors() - Method in class com.github.basking2.sdsai.sandbox.graph.GraphNode
Get all neighboring nodes.
getNeighbors() - Method in interface com.github.basking2.sdsai.sandbox.graph.Node
 
getOutEdges() - Method in class com.github.basking2.sdsai.sandbox.graph.GraphNode
 
getOutEdges() - Method in interface com.github.basking2.sdsai.sandbox.graph.Node
 
getOutput(int) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.EgressEdge
 
getOutput(int) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.HiddenEdge
 
getOutput(int) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.HiddenNode
Computes output for this node by getting input from the in-Edge.
getOutput(int) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.IngressEdge
 
getOutput(int) - Method in interface com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNetElement
Get output of the given version.
getOutputs() - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
 
getSigma(int) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.EgressEdge
 
getSigma(int) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.HiddenEdge
 
getSigma(int) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.HiddenNode
Compute the error for this node.
getSigma(int) - Method in interface com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNetElement
Return the error (or sigma value) of this node in the neural network.
getSource() - Method in interface com.github.basking2.sdsai.sandbox.graph.Edge
 
getSource() - Method in class com.github.basking2.sdsai.sandbox.graph.GraphEdge
 
getSrcNodes() - Method in class com.github.basking2.sdsai.sandbox.graph.GraphCopier
 
getTargetIndex(int) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.TrainingSet
Return the index of the "answer" or the index of the only 1-valued element in a training instance i.
getTargets() - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.TrainingInstance
 
getTargets(int) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.TrainingSet
 
getWeight() - Method in interface com.github.basking2.sdsai.sandbox.graph.Edge
 
getWeight() - Method in class com.github.basking2.sdsai.sandbox.graph.GraphEdge
 
getWorst(TrainingSet) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
Return the training instance which we think is least well performed on.
getWorst(TrainingSet, int) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
Find the training instance that does nth worst.
Graph - Class in com.github.basking2.sdsai.sandbox.graph
This is a wrapper class for working with nodes.
Graph() - Constructor for class com.github.basking2.sdsai.sandbox.graph.Graph
 
GraphCopier - Class in com.github.basking2.sdsai.sandbox.graph
 
GraphCopier(Node[]) - Constructor for class com.github.basking2.sdsai.sandbox.graph.GraphCopier
Several start points can be given.
GraphEdge - Class in com.github.basking2.sdsai.sandbox.graph
 
GraphEdge() - Constructor for class com.github.basking2.sdsai.sandbox.graph.GraphEdge
 
GraphEdge(Node, Node) - Constructor for class com.github.basking2.sdsai.sandbox.graph.GraphEdge
 
GraphElement - Interface in com.github.basking2.sdsai.sandbox.graph
 
GraphNode - Class in com.github.basking2.sdsai.sandbox.graph
 
GraphNode() - Constructor for class com.github.basking2.sdsai.sandbox.graph.GraphNode
 

H

HiddenEdge - Class in com.github.basking2.sdsai.sandbox.ai.nnet
 
HiddenEdge() - Constructor for class com.github.basking2.sdsai.sandbox.ai.nnet.HiddenEdge
 
HiddenEdge(HiddenNode, HiddenNode) - Constructor for class com.github.basking2.sdsai.sandbox.ai.nnet.HiddenEdge
 
HiddenNode - Class in com.github.basking2.sdsai.sandbox.ai.nnet
 
HiddenNode() - Constructor for class com.github.basking2.sdsai.sandbox.ai.nnet.HiddenNode
 

I

inEdge - Variable in class com.github.basking2.sdsai.sandbox.graph.GraphNode
 
IngressEdge - Class in com.github.basking2.sdsai.sandbox.ai.nnet
 
IngressEdge(HiddenNode) - Constructor for class com.github.basking2.sdsai.sandbox.ai.nnet.IngressEdge
 
input - Variable in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
 
isDirected() - Method in class com.github.basking2.sdsai.sandbox.graph.GraphNode
 
isDirected() - Method in interface com.github.basking2.sdsai.sandbox.graph.Node
Will return if this graph is directed or not.

L

learn - Variable in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
 
limit - Variable in class com.github.basking2.sdsai.sandbox.Queue
if greater than 0 then this Queue will not hold more than limit elements.
List<E> - Interface in com.github.basking2.sdsai.sandbox
 

N

NeuralNet - Class in com.github.basking2.sdsai.sandbox.ai.nnet
 
NeuralNet(int, int, int[], boolean) - Constructor for class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
This constructor automates the process of building a neural net.
NeuralNet(IngressEdge[], EgressEdge[]) - Constructor for class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
This constructor takes a user-constructed neural net.
NeuralNetElement - Interface in com.github.basking2.sdsai.sandbox.ai.nnet
 
next - Variable in class com.github.basking2.sdsai.sandbox.Queue.QE
 
nextVersion() - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
 
Node - Interface in com.github.basking2.sdsai.sandbox.graph
 

O

outEdge - Variable in class com.github.basking2.sdsai.sandbox.graph.GraphNode
 
output - Variable in class com.github.basking2.sdsai.sandbox.ai.nnet.HiddenNode
 
output - Variable in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
 
output - Variable in class com.github.basking2.sdsai.sandbox.ai.nnet.ScaledHiddenNode
 
outputVersion - Variable in class com.github.basking2.sdsai.sandbox.ai.nnet.HiddenNode
 
outputVersion - Variable in class com.github.basking2.sdsai.sandbox.ai.nnet.ScaledHiddenNode
 

P

peek() - Method in class com.github.basking2.sdsai.sandbox.Queue
 

Q

QE(F, Queue.QE<F>) - Constructor for class com.github.basking2.sdsai.sandbox.Queue.QE
 
Queue<E> - Class in com.github.basking2.sdsai.sandbox
 
Queue() - Constructor for class com.github.basking2.sdsai.sandbox.Queue
 
Queue.QE<F> - Class in com.github.basking2.sdsai.sandbox
This is a Queue Element.

S

ScaledHiddenNode - Class in com.github.basking2.sdsai.sandbox.ai.nnet
This class adds a scaling edge to the HiddenNode.
ScaledHiddenNode() - Constructor for class com.github.basking2.sdsai.sandbox.ai.nnet.ScaledHiddenNode
 
scaler - Variable in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
A scaler used to alter the range of eta values computed.
set(int, E) - Method in interface com.github.basking2.sdsai.sandbox.List
Set the object at index i to o.
set(TrainingInstance) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
 
setBlock(boolean) - Method in class com.github.basking2.sdsai.sandbox.Queue
If this is set to true, the the queue will block when the limit is exceeded on an enqueue.
setClosed(boolean) - Method in class com.github.basking2.sdsai.sandbox.Queue
 
setDestination(Node) - Method in interface com.github.basking2.sdsai.sandbox.graph.Edge
 
setDestination(Node) - Method in class com.github.basking2.sdsai.sandbox.graph.GraphEdge
This will add this edge to the in edge set of node n.
setDropHead(boolean) - Method in class com.github.basking2.sdsai.sandbox.Queue
 
setEdges(Set<Edge>) - Method in class com.github.basking2.sdsai.sandbox.graph.GraphNode
This will set bot inEdges and outEdges equal to v.
setEdges(Set<Edge>) - Method in interface com.github.basking2.sdsai.sandbox.graph.Node
 
setInEdges(Set<Edge>) - Method in class com.github.basking2.sdsai.sandbox.graph.GraphNode
 
setInEdges(Set<Edge>) - Method in interface com.github.basking2.sdsai.sandbox.graph.Node
 
setInput(double) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.IngressEdge
 
setInputs(double[]) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
 
setKey(double) - Method in class com.github.basking2.sdsai.sandbox.graph.GraphEdge
 
setLimit(int) - Method in class com.github.basking2.sdsai.sandbox.Queue
Set a limit on the length of this Queue.
setOutEdges(Set<Edge>) - Method in class com.github.basking2.sdsai.sandbox.graph.GraphNode
 
setOutEdges(Set<Edge>) - Method in interface com.github.basking2.sdsai.sandbox.graph.Node
 
setSource(Node) - Method in interface com.github.basking2.sdsai.sandbox.graph.Edge
 
setSource(Node) - Method in class com.github.basking2.sdsai.sandbox.graph.GraphEdge
This will add this edgs to the out edge set of node n.
setTarget(double) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.EgressEdge
 
setTargets(double[]) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
 
setVisited() - Method in class com.github.basking2.sdsai.sandbox.graph.GraphNode
 
setVisited() - Method in interface com.github.basking2.sdsai.sandbox.graph.Node
 
sigma - Variable in class com.github.basking2.sdsai.sandbox.ai.nnet.HiddenNode
 
sigma - Variable in class com.github.basking2.sdsai.sandbox.ai.nnet.ScaledHiddenNode
 
sigma() - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
Get the summed error gradient of the outputs.
sigmaVersion - Variable in class com.github.basking2.sdsai.sandbox.ai.nnet.HiddenNode
 
sigmaVersion - Variable in class com.github.basking2.sdsai.sandbox.ai.nnet.ScaledHiddenNode
 
size - Variable in class com.github.basking2.sdsai.sandbox.Queue
 
size() - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.TrainingSet
 
size() - Method in interface com.github.basking2.sdsai.sandbox.List
 
size() - Method in class com.github.basking2.sdsai.sandbox.Queue
 
src - Variable in class com.github.basking2.sdsai.sandbox.graph.GraphEdge
 
stopTraining() - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
In an asynchronous environment it may be beneficial to be able to cause the train() method to stop and exit.

T

target - Variable in class com.github.basking2.sdsai.sandbox.ai.nnet.TrainingInstance
 
test(TrainingSet) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
Test the neural net presupposing that only ONE output is "on" at any given time.
toArray() - Method in interface com.github.basking2.sdsai.sandbox.List
 
train(TrainingInstance) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
Train the neural net with the data input instance and the target values.
train(TrainingSet) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
This method will train the neural net once given the TrainingSet s.
train(TrainingSet, double) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
Traing until stopped (using stopTraining) or until the accuracy exceeds acc.
train(TrainingSet, double, int) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
Train n times or until the accuracy is met.
train(TrainingSet, int) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
Training i times.
TrainingException - Exception in com.github.basking2.sdsai.sandbox.ai.nnet
 
TrainingException() - Constructor for exception com.github.basking2.sdsai.sandbox.ai.nnet.TrainingException
 
TrainingInstance - Class in com.github.basking2.sdsai.sandbox.ai.nnet
 
TrainingInstance() - Constructor for class com.github.basking2.sdsai.sandbox.ai.nnet.TrainingInstance
 
TrainingInstance(double[], double[]) - Constructor for class com.github.basking2.sdsai.sandbox.ai.nnet.TrainingInstance
 
TrainingSet - Class in com.github.basking2.sdsai.sandbox.ai.nnet
 
TrainingSet() - Constructor for class com.github.basking2.sdsai.sandbox.ai.nnet.TrainingSet
 
TrainingSet(double[][], double[][]) - Constructor for class com.github.basking2.sdsai.sandbox.ai.nnet.TrainingSet
 
TrainingSet(TrainingInstance) - Constructor for class com.github.basking2.sdsai.sandbox.ai.nnet.TrainingSet
 
trainUp(TrainingSet) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
This is intended to be the generic training method for a NeuralNet.

U

undo() - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.HiddenEdge
Return to a previous weight.
undo() - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
Undo last training results.
undoVersion - Variable in class com.github.basking2.sdsai.sandbox.ai.nnet.HiddenEdge
 
update(int) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.EgressEdge
 
update(int) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.HiddenEdge
 
update(int) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.HiddenNode
This update simply calls update on the inEdges.
update(int) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.IngressEdge
 
update(int) - Method in interface com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNetElement
When called all elements preceeding the one this is called on will be trained be getting a sigma value from the next element, computing their sigma value, and calling update on the previous node.
update(int, double) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.EgressEdge
 
update(int, double) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.HiddenEdge
Like update(boolean v) but eta (or the drastic-ness) of the change can be specified.
update(int, double) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.HiddenNode
 
update(int, double) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.IngressEdge
 
update(int, double) - Method in interface com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNetElement
Like other update methods, but the importance, or eta can be specified.

V

v - Variable in class com.github.basking2.sdsai.sandbox.graph.GraphNode
Visited boolean
version - Variable in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
Version of input or output.
visited() - Method in class com.github.basking2.sdsai.sandbox.graph.GraphNode
 
visited() - Method in interface com.github.basking2.sdsai.sandbox.graph.Node
Check if this node has been visited or not.

W

weight - Variable in class com.github.basking2.sdsai.sandbox.graph.GraphEdge
 
willBlock() - Method in class com.github.basking2.sdsai.sandbox.Queue
 
worst(TrainingSet) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
Find the training instance that performs the worst.
worst(TrainingSet, int) - Method in class com.github.basking2.sdsai.sandbox.ai.nnet.NeuralNet
Return the index of the training instance that is the nth worst.
A B C D E F G H I L N O P Q S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form