FOIL (Target predicate, Predicates, Examples) • Pos ← positive Examples • Neg ← negative Examples • Learned rules ← {} • while Pos, do Learn a NewRule – NewRule ← most general rule possible (no preconditions) – NewRuleNeg ← Neg – while NewRuleNeg, do Add a new literal to specialize NewRule 1. Candidate literals ← generate candidates based on Predicates 2. Best literal ← argmaxL∈Candidate literals Foil Gain (L,NewRule) 3. add Best literal to NewRule preconditions 4. NewRuleNeg ← subset of NewRuleNeg that satisfies NewRule preconditions – Learned rules ← Learned rules+NewRule – Pos ← Pos − {members of Pos covered by NewRule} • Return Learned rules
|
Lamarckian Model | Baldwinian Model
|
The Lamarckian Model essentially says that the traits which an individual acquires in his/her lifetime can be passed on to its offspring. It is named after French biologist Jean-Baptiste Lamarck. Even though, natural biology has completely disregarded Lamarckism as we all know that only the information in the genotype can be transmitted. However, from a computation view point, it has been shown that adopting the Lamarckian model gives good results for some of the problems. In the Lamarckian model, a local search operator examines the neighborhood (acquiring new traits), and if a better chromosome is found, it becomes the offspring. .
| The Baldwinian model is an intermediate idea named after James Mark Baldwin. In the Baldwin model, the chromosomes can encode a tendency of learning beneficial behaviors. This means, that unlike the Lamarckian model, we don’t transmit the acquired traits to the next generation, and neither do we completely ignore the acquired traits like in the Darwinian Model. The Baldwin Model is in the middle of these two extremes, wherein the tendency of an individual to acquire certain traits is encoded rather than the traits themselves. In this Baldwinian Model, a local search operator examines the neighborhood (acquiring new traits), and if a better chromosome is found, it only assigns the improved fitness to the chromosome and does not modify the chromosome itself. The change in fitness signifies the chromosomes capability to “acquire the trait”, even though it is not passed directly to the future generations |
Positive Reinforcement is defined as when an event, occurs due to a particular behavior, increases the strength and the frequency of the behavior. In other words, it has a positive effect on behavior.Advantages :
Negative Reinforcement is defined as strengthening of a behavior because a negative condition is stopped or avoided.Advantages: