edu.illinois.cs.cogcomp.saul.classifier
syntactic sugar to create simple calls to the function
The function is used to filter the generated candidates from the head object; remember that the inference starts from the head object.
The function is used to filter the generated candidates from the head object; remember that the inference starts
from the head object. This function finds the objects of type T
which are connected to the target object of
type HEAD
. If we don't define filter
, by default it returns all objects connected to HEAD
.
The filter is useful for the JointTraining
when we go over all global objects and generate all contained object
that serve as examples for the basic classifiers involved in the JoinTraining
. It is possible that we do not
want to use all possible candidates but some of them, for example when we have a way to filter the negative
candidates, this can come in the filter.
Simple logback configuration.
Simple logback configuration.
Hopefully this will be discoverable by just typing loggerConfig.[TAB]
Examples: format: OFF
loggerConfig.Logger("org.apache.spark").setLevel(Level.WARN) loggerConfig.Logger().addAppender( loggerConfig.newPatternLayoutEncoder("%-5level [%thread]: %message%n"), loggerConfig.newConsoleAppender )
format: ON
The pathToHead
returns only one object of type HEAD, if there are many of them i.e.
The pathToHead
returns only one object of type HEAD, if there are many of them i.e. Iterable[HEAD]
then it
simply returns the head
of the Iterable
Test with given data, use internally
Test with given data, use internally
if the collection of data (which is and Iterable of type T) is not given it is derived from the data model based on its type
The file to write the predictions (can be null
)
it is the label that we want to exclude for evaluation, this is useful for evaluating the multi-class classifiers when we need to measure overall F1 instead of accuracy and we need to exclude the negative class
List of (label, (f1,precision,recall))
Test Constrained Classifier with automatically derived test instances.
Test Constrained Classifier with automatically derived test instances.
List of (label, (f1,precision,recall))
The input to a ConstrainedClassifier is of type
T
. However given an input, the inference is based upon the head object of typeHEAD
corresponding to the input (of typeT
).the object type given to the classifier as input
the object type inference is based upon