Class/Object

edu.illinois.cs.cogcomp.saul.classifier

ConstrainedClassifier

Related Docs: object ConstrainedClassifier | package classifier

Permalink

abstract class ConstrainedClassifier[T <: AnyRef, HEAD <: AnyRef] extends LBJClassifierEquivalent with Logging

The input to a ConstrainedClassifier is of type T. However given an input, the inference is based upon the head object of type HEAD corresponding to the input (of type T).

T

the object type given to the classifier as input

HEAD

the object type inference is based upon

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ConstrainedClassifier
  2. Logging
  3. LBJClassifierEquivalent
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ConstrainedClassifier(onClassifier: LBJLearnerEquivalent)(implicit tType: ClassTag[T], headType: ClassTag[HEAD])

    Permalink

Type Members

  1. type LEFT = T

    Permalink
  2. type RIGHT = HEAD

    Permalink

Abstract Value Members

  1. abstract def subjectTo: LfsConstraint[HEAD]

    Permalink

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def __allowableValues: List[String]

    Permalink
  5. def apply(example: AnyRef): String

    Permalink

    syntactic sugar to create simple calls to the function

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def buildWithConstraint(inferenceCondition: InferenceCondition[T, HEAD])(t: T): String

    Permalink
  8. def buildWithConstraint(infer: InferenceCondition[T, HEAD], cls: Learner)(t: T): String

    Permalink
  9. def className: String

    Permalink
  10. val classifier: Classifier

    Permalink
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def filter(t: T, head: HEAD): Boolean

    Permalink

    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.

  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def findHead(x: T): Option[HEAD]

    Permalink
  17. def getCandidates(head: HEAD): Seq[T]

    Permalink
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def getClassSimpleNameForClassifier: String

    Permalink
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. implicit val headType: ClassTag[HEAD]

    Permalink
  22. lazy val internalLogger: Logger

    Permalink
    Definition Classes
    Logging
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. object logger

    Permalink
    Definition Classes
    Logging
  25. object loggerConfig

    Permalink

    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

    Definition Classes
    Logging
  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. val onClassifier: LBJLearnerEquivalent

    Permalink
  30. val pathToHead: Option[Edge[T, HEAD]]

    Permalink

    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

  31. def solver: ILPSolver

    Permalink
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. implicit val tType: ClassTag[T]

    Permalink
  34. def test(testData: Iterable[T] = null, outFile: String = null, outputGranularity: Int = 0, exclude: String = ""): Results

    Permalink

    Test with given data, use internally

    Test with given data, use internally

    testData

    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

    outFile

    The file to write the predictions (can be null)

    exclude

    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

    returns

    List of (label, (f1,precision,recall))

  35. def test(): Results

    Permalink

    Test Constrained Classifier with automatically derived test instances.

    Test Constrained Classifier with automatically derived test instances.

    returns

    List of (label, (f1,precision,recall))

  36. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Logging

Inherited from LBJClassifierEquivalent

Inherited from AnyRef

Inherited from Any

Ungrouped