|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.uiuc.ge.illigal.gale.agents.IBAgent
Implements the generic handle to Agents for Instance Based Agents (GENIFER).
Field Summary | |
protected edu.uiuc.ge.illigal.gale.agents.AgentPerformance |
agnPer
Agent Performance object |
protected edu.uiuc.ge.illigal.gale.data.AttributeSet |
attCnf
The attributes information for instances |
protected edu.uiuc.ge.illigal.gale.distance.Distance |
dis
Distance function |
protected float[] |
fakNN
KNN minimal values |
protected edu.uiuc.ge.illigal.gale.config.GALEConfiguration |
galeCnf
The GALE environment configuration object |
protected java.util.Vector |
genVec
Genetic material vector |
protected int[] |
iakNN
KNN minimal position |
protected int[] |
iaPrune
Prune information |
protected int |
iK
K number of instances |
protected java.util.Random |
rnd
Random number generator object |
Constructor Summary | |
IBAgent()
Builds a simple agent with null information |
|
IBAgent(edu.uiuc.ge.illigal.gale.config.GALEConfiguration gale,
edu.uiuc.ge.illigal.gale.data.AttributeSet att)
Builds a simple agent. |
Method Summary | |
protected float |
boundedFloat(float lb,
float ub)
Generates a random bounded float using the random number generator. |
edu.uiuc.ge.illigal.gale.agents.Agent |
buildAgent(edu.uiuc.ge.illigal.gale.config.GALEConfiguration galeCnf,
edu.uiuc.ge.illigal.gale.data.AttributeSet att)
Returns a random builded agent. |
int |
classify(edu.uiuc.ge.illigal.gale.data.Instance ins)
Classifies the given instance |
java.lang.Object |
clone()
Clones the handled agent. |
float |
complexity()
Returns a complexity measure. |
edu.uiuc.ge.illigal.gale.agents.AgentPerformance |
getPerformance()
Provides the classification performance information. |
static void |
main(java.lang.String[] sArgs)
|
edu.uiuc.ge.illigal.gale.agents.Agent |
merge(edu.uiuc.ge.illigal.gale.agents.Agent agn)
Merges two agents. |
protected void |
mutateGenotype()
Mutates the genetic material of instances. |
edu.uiuc.ge.illigal.gale.agents.Agent |
prune()
Clean spurious issues. |
void |
resetPerformance()
Resets the agents' performance. |
edu.uiuc.ge.illigal.gale.agents.Agent |
split()
Splits an agent |
java.lang.String |
toString()
Returns the stringfied form of the agent |
protected java.util.Vector |
translateArray(float[] faGen,
int iLen)
Build the vector representation of a genetic array. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected edu.uiuc.ge.illigal.gale.config.GALEConfiguration galeCnf
protected edu.uiuc.ge.illigal.gale.data.AttributeSet attCnf
protected edu.uiuc.ge.illigal.gale.agents.AgentPerformance agnPer
protected java.util.Random rnd
protected edu.uiuc.ge.illigal.gale.distance.Distance dis
protected java.util.Vector genVec
protected int iK
protected float[] fakNN
protected int[] iakNN
protected int[] iaPrune
Constructor Detail |
public IBAgent()
public IBAgent(edu.uiuc.ge.illigal.gale.config.GALEConfiguration gale, edu.uiuc.ge.illigal.gale.data.AttributeSet att)
gale
- The GALE configurationatt
- The attributes set information objectMethod Detail |
public edu.uiuc.ge.illigal.gale.agents.Agent buildAgent(edu.uiuc.ge.illigal.gale.config.GALEConfiguration galeCnf, edu.uiuc.ge.illigal.gale.data.AttributeSet att)
Agent
buildAgent
in interface Agent
galeCnf
- The GALE configuration objectatt
- The attributes set information object
public void resetPerformance()
Agent
resetPerformance
in interface Agent
public edu.uiuc.ge.illigal.gale.agents.AgentPerformance getPerformance()
Agent
getPerformance
in interface Agent
public edu.uiuc.ge.illigal.gale.agents.Agent merge(edu.uiuc.ge.illigal.gale.agents.Agent agn)
Agent
merge
in interface Agent
agn
- The second agent to be merged
public edu.uiuc.ge.illigal.gale.agents.Agent split()
Agent
split
in interface Agent
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Agent
clone
in interface Agent
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- Thrown when the agent cannot be
clonedpublic float complexity()
Agent
complexity
in interface Agent
public edu.uiuc.ge.illigal.gale.agents.Agent prune()
Agent
prune
in interface Agent
public int classify(edu.uiuc.ge.illigal.gale.data.Instance ins)
Agent
classify
in interface Agent
public java.lang.String toString()
Agent
toString
in interface Agent
toString
in class java.lang.Object
protected float boundedFloat(float lb, float ub)
lb
- lower boundub
- upper boundprotected void mutateGenotype()
protected java.util.Vector translateArray(float[] faGen, int iLen)
faGen
- the float array to translateiLen
- the length of useful information in the array
public static void main(java.lang.String[] sArgs)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |