how_to_use
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
how_to_use [2018/01/25 10:48] – liyong | how_to_use [2018/03/29 16:54] (current) – liyong | ||
---|---|---|---|
Line 85: | Line 85: | ||
options.approximation = Options.Approximation.UNDER; | options.approximation = Options.Approximation.UNDER; | ||
// set NBA learner, here we use tree-based syntactic FDFA learner | // set NBA learner, here we use tree-based syntactic FDFA learner | ||
- | options.algorithm = Algorithm.SYNTACTIC; | + | options.algorithm = Options.Algorithm.SYNTACTIC; |
- | options.structure = Structure.TREE; | + | options.structure = Options.Structure.TREE; |
LearnerBase< | LearnerBase< | ||
if(options.algorithm == Options.Algorithm.NBA_LDOLLAR) { | if(options.algorithm == Options.Algorithm.NBA_LDOLLAR) { | ||
// input teacher as a membership oracle for the learner | // input teacher as a membership oracle for the learner | ||
- | | + | |
}else if(options.algorithm == Options.Algorithm.PERIODIC | }else if(options.algorithm == Options.Algorithm.PERIODIC | ||
|| options.algorithm == Options.Algorithm.SYNTACTIC | || options.algorithm == Options.Algorithm.SYNTACTIC | ||
|| options.algorithm == Options.Algorithm.RECURRENT) { | || options.algorithm == Options.Algorithm.RECURRENT) { | ||
- | | + | |
} else { | } else { | ||
throw new UnsupportedOperationException(" | throw new UnsupportedOperationException(" | ||
Line 137: | Line 137: | ||
The complete code is the class roll.main.Executor. | The complete code is the class roll.main.Executor. | ||
+ | |||
===== Acknowledgement ===== | ===== Acknowledgement ===== | ||
We use [[http:// | We use [[http:// |
how_to_use.txt · Last modified: 2018/03/29 16:54 by liyong