jildt.tilde
Class languageBias
java.lang.Object
jason.asSemantics.DefaultInternalAction
jildt.tilde.languageBias
- All Implemented Interfaces:
- jason.asSemantics.InternalAction, java.io.Serializable
public class languageBias
- extends jason.asSemantics.DefaultInternalAction
Internal action to generate the learning language bias after the examples in Exs. The language
bias is the definition of which literals are going to be considered as candidates to be included in the
Logical Decision Tree. A jildt_rm directive indicates that its argument should be considered as
a candidate to refine a query tree. It is important to emphasize that this internal action only returns
the language bias, but it does not add automatically the beliefs to knowledge base of the agent.
Use:
jildt.tilde.languageBias(Exs, Lb).
Parameters:
- + examples (List): a list of examples where the language bias will be generated from.
- + language bias (List): a list of literals that form the learning language bias.
Examples: Given the training examples below.
-
jildt_example(put_label, [intend(put(b,c)), on(a,table),on(z,c),on(b,a),on(c,table),clear(table)], fail)).
-
jildt_example(put_label, [intend(put(b,c)), on(a,c),on(z,table),on(b,table),on(c,table),clear(table)], success)).
-
jildt.tilde.languageBias([1, 2], Lb)
: Lb unifies with the list [jildt_rm(clear("+")), jildt_rm(clear("-")),
jildt_rm(on("+","-")), jildt_rm(on("-","+")), jildt_rm(on("+","+")), jildt_rm(on("-","-"))]
.
-
jildt.tilde.languageBias([1, 2], Lb, X)
: Throws an exception due to only two arguments are
needed for executing the internal action.
-
jildt.tilde.languageBias(1, Lb)
: Throws an exception because the first argument must be a list.
-
jildt.tilde.languageBias([1, 2], clear("+"))
: Throws an exception because the second argument must
be variable.
- Author:
- Carlos Alberto González-Alarcón, Alejandro Guerra-Hernández, Francisco Grimaldo-Moreno
- See Also:
rho
,
Serialized Form
Method Summary |
java.lang.Object |
execute(jason.asSemantics.TransitionSystem ts,
jason.asSemantics.Unifier un,
jason.asSyntax.Term[] args)
|
static jason.asSyntax.ListTerm |
getCombinations(jason.asSyntax.Literal belief)
Gets the possible combinations of rmode literals for a given literal. |
int |
getMaxArgs()
|
int |
getMinArgs()
|
Methods inherited from class jason.asSemantics.DefaultInternalAction |
canBeUsedInContext, prepareArguments, suspendIntention |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
languageBias
public languageBias()
execute
public java.lang.Object execute(jason.asSemantics.TransitionSystem ts,
jason.asSemantics.Unifier un,
jason.asSyntax.Term[] args)
throws java.lang.Exception
- Specified by:
execute
in interface jason.asSemantics.InternalAction
- Overrides:
execute
in class jason.asSemantics.DefaultInternalAction
- Throws:
java.lang.Exception
getCombinations
public static jason.asSyntax.ListTerm getCombinations(jason.asSyntax.Literal belief)
throws jason.asSyntax.parser.ParseException
- Gets the possible combinations of rmode literals for a given literal.
- Parameters:
belief
- A literal where the combinations will be generated from.
- Returns:
- A list term compound by the possible combinations of rmode literals for a given literal.
- Throws:
jason.asSyntax.parser.ParseException
getMinArgs
public int getMinArgs()
- Overrides:
getMinArgs
in class jason.asSemantics.DefaultInternalAction
getMaxArgs
public int getMaxArgs()
- Overrides:
getMaxArgs
in class jason.asSemantics.DefaultInternalAction