|
|
|
|
|
by RossBencina
189 days ago
|
|
Interesting. Are there more examples somewhere? I'm curious about cases where multiple examples are required. The associativity "example" corresponds directly to the rewrite rule definition, so it doesn't really illuminate the distinction between specifying a rewrite rule and inferring a rule from multiple examples. |
|
The system needs multiple examples when there is more than one varying part and a single example is ambiguous. A simple example is wrapping a function call. With:
the system learns that: the function name varies the argument varies he outer log(…) is constantFrom that it infers the general rule and applies it to new inputs. A single example would not be enough to disambiguate that pattern.