org.allenai.nlpstack.parse.poly.decisiontree

DecisionTreeJustification

Related Doc: package decisiontree

case class DecisionTreeJustification(decisionTree: DecisionTree, node: Int) extends Justification with Product with Serializable

Structure to represent a decision tree's justification for a certain classification outcome. Contains index of the chosen node and the breadcrumb that led to it: (feature index, feature value) tuple at each decision point.

Linear Supertypes
Serializable, Serializable, Product, Equals, Justification, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DecisionTreeJustification
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Justification
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DecisionTreeJustification(decisionTree: DecisionTree, node: Int)

Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. val decisionTree: DecisionTree

  7. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  8. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  10. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. val node: Int

  13. final def notify(): Unit

    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  15. def prettyPrint(featureNames: Map[Int, FeatureName]): String

    Helper Method used to custom print a DecisionTreeJustification for Weirdness analysis.

    Helper Method used to custom print a DecisionTreeJustification for Weirdness analysis.

    For a Justification that looks like: [ parent1.cpos.nexus = 0, child.cpos.. = 0, parent2.cpos.. = 0, self.cpos.notFound = 0, parent2.alabel.ADVMOD = 0, child1.direction.R = 0, self.cpos.VERB = 0, parent.cpos.notFound = 0, children.card.0 = 0, children.card.1 = 1, parent.suffix.s = 0, parent.cpos.ADP = 0, self.keyword.'s = 0, child1.alabel.AMOD = 0, child1.alabel.DEP = 0, child1.alabel.NSUBJ = 0, parent.cpos.. = 0, child.keyword.was = 0, child1.alabel.TMOD = 0, child1.alabel.COP = 0, child1.alabel.POSSESSIVE = 0, child1.keyword.is = 0, child1.alabel.PRT = 0, self.cpos.CONJ = 0, child1.alabel.VMOD = 0, child.cpos.NOUN = 0, self.cpos.ADP = 1, child1.keyword.did = 0, child.keyword.are = 0, self.keyword.at = 1 ]

    Explanation generated will look like: [ [ children.card = 1 ], [ self.cpos = ADP ], [ self.keyword = at ], [ child.cpos <> {NOUN, .} ], [ child.keyword <> {are, was} ], [ child1.alabel <> {VMOD, AMOD, NSUBJ, COP, DEP, POSSESSIVE, TMOD, PRT} ], [ child1.direction <> R ], [ child1.keyword <> {did, is} ], [ parent.cpos <> {., notFound, ADP} ], [ parent.suffix <> s ], [ parent1.cpos <> nexus ], [ parent2.alabel <> ADVMOD ], [ parent2.cpos <> . ] ]

    Definition Classes
    DecisionTreeJustificationJustification
  16. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  17. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Justification

Inherited from AnyRef

Inherited from Any

Ungrouped