cc.factorie.variable

HammingLoss

object HammingLoss extends HammingLossTemplate[LabeledVar]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. HammingLoss
  2. HammingLossTemplate
  3. TupleTemplateWithStatistics2
  4. TupleFamilyWithStatistics2
  5. TupleFamily2
  6. Template2
  7. Template
  8. Model
  9. FamilyWithNeighborClasses
  10. Family2
  11. FamilyWithNeighborDomains
  12. Family
  13. AnyRef
  14. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. final case class Factor(_1: N1, _2: N2) extends Factor2[N1, N2] with Family2.Factor with Product with Serializable

    Definition Classes
    Family2Family
  2. type FactorType = Factor

    Definition Classes
    Family2
  3. abstract type FamilyType <: Family

    Definition Classes
    Family
  4. type NeighborType1 = LabeledVar

    Definition Classes
    Family2Family
  5. type NeighborType2 = TargetType

    Definition Classes
    Family2
  6. type StatisticsType = (LabeledVar.Value, LabeledVar.TargetType.Value)

    Definition Classes
    TupleFamily2Family

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def %(n: String): HammingLoss.this.type

    Assign this Template a name which will be used later when its factors are printed.

    Assign this Template a name which will be used later when its factors are printed.

    Definition Classes
    Family
  5. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  7. def accuracy(variables: Iterable[LabeledVar]): Double

    Definition Classes
    HammingLossTemplate
  8. final def addFactors(v: Var, result: Set[model.Factor]): Unit

    Not intended to be called by users.

    Not intended to be called by users. This method calls unroll and efficiently deduplicates the resulting Factors by adding them to the result Set.

    Definition Classes
    Template2TemplateModel
  9. def addFactors(dl: DiffList, result: Set[model.Factor]): Unit

    Append to "result" all Factors in this Model that are affected by the given DiffList.

    Append to "result" all Factors in this Model that are affected by the given DiffList. This method must not append duplicates.

    Definition Classes
    Model
  10. def addFactors(d: Diff, result: Set[model.Factor]): Unit

    Append to "result" all Factors in this Model that are affected by the given Diff.

    Append to "result" all Factors in this Model that are affected by the given Diff. This method must not append duplicates.

    Definition Classes
    Model
  11. def addFactors(variables: Iterable[Var], result: Set[model.Factor]): Unit

    Append to "result" all Factors in this Model that touch any of the given "variables".

    Append to "result" all Factors in this Model that touch any of the given "variables". This method must not append duplicates.

    Definition Classes
    Model
  12. def addLimitedDiscreteCurrentValuesIn12(variables: Iterable[Var]): Unit

    Definition Classes
    Template2
  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  14. def assignmentScore(dl: DiffList, assignment: Assignment): Double

    Definition Classes
    Model
  15. def assignmentScore(d: Diff, assignment: Assignment): Double

    Definition Classes
    Model
  16. def assignmentScore(vars: Iterable[Var], assignment: Assignment): Double

    Definition Classes
    Model
  17. def assignmentScore(variable: Var, assignment: Assignment): Double

    Definition Classes
    Model
  18. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. def currentScore(dl: DiffList): Double

    Definition Classes
    Model
  20. def currentScore(d: Diff): Double

    Definition Classes
    Model
  21. def currentScore(vars: Iterable[Var]): Double

    Definition Classes
    Model
  22. def currentScore(variable: Var): Double

    Definition Classes
    Model
  23. def defaultFactorName: String

    Definition Classes
    Family
  24. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  26. var factorName: String

    Definition Classes
    Family
  27. final def factors(variables: Iterable[Var]): Iterable[FactorType]

    Return all Factors in this Model that touch any of the given "variables".

    Return all Factors in this Model that touch any of the given "variables". The result will not have any duplicate Factors.

    Definition Classes
    TemplateModel
  28. final def factors(v: Var): Iterable[FactorType]

    Users should call this method to create and return all Factors of this Template touching the given Var.

    Users should call this method to create and return all Factors of this Template touching the given Var.

    Definition Classes
    TemplateModel
  29. def factors(dl: DiffList): Iterable[model.Factor]

    Return all Factors in this Model that are affected by the given DiffList.

    Return all Factors in this Model that are affected by the given DiffList. The result will not have any duplicate Factors. By default returns just the factors that neighbor the DiffList.variables, but this method may be overridden for special handling of the DiffList

    Definition Classes
    Model
  30. def factors(d: Diff): Iterable[model.Factor]

    Return all Factors in this Model that are affected by the given Diff.

    Return all Factors in this Model that are affected by the given Diff. The result will not have any duplicate Factors. By default returns just the factors that neighbor Diff.variable, but this method may be overridden for special handling of the Diff

    Definition Classes
    Model
  31. def factorsOfClass[F <: model.Factor](d: DiffList)(implicit fm: ClassTag[F]): Iterable[F]

    Definition Classes
    Model
  32. def factorsOfClass[F <: model.Factor](d: DiffList, fclass: Class[F]): Iterable[F]

    Definition Classes
    Model
  33. def factorsOfClass[F <: model.Factor](variables: Iterable[Var])(implicit fm: ClassTag[F]): Iterable[F]

    Definition Classes
    Model
  34. def factorsOfClass[F <: model.Factor](variable: Var)(implicit fm: ClassTag[F]): Iterable[F]

    Definition Classes
    Model
  35. def factorsOfClass[F <: model.Factor](variables: Iterable[Var], fclass: Class[F]): Iterable[F]

    Definition Classes
    Model
  36. def factorsOfClass[F <: model.Factor](variable: Var, fclass: Class[F]): Iterable[F]

    Definition Classes
    Model
  37. def factorsOfFamilies[F <: Family](d: DiffList, families: Seq[F]): Iterable[model.Model.factorsOfFamilies.F.Factor]

    Definition Classes
    Model
  38. def factorsOfFamilies[F <: Family](variables: Iterable[Var], families: Seq[F]): Iterable[model.Model.factorsOfFamilies.F.Factor]

    Definition Classes
    Model
  39. def factorsOfFamilies[F <: Family](variable: Var, families: Seq[F]): Iterable[model.Model.factorsOfFamilies.F.Factor]

    Definition Classes
    Model
  40. def factorsOfFamily[F <: Family](d: DiffList, family: F): Iterable[model.Model.factorsOfFamily.F.Factor]

    Definition Classes
    Model
  41. def factorsOfFamily[F <: Family](variables: Iterable[Var], family: F): Iterable[model.Model.factorsOfFamily.F.Factor]

    Definition Classes
    Model
  42. def factorsOfFamily[F <: Family](variable: Var, family: F): Iterable[model.Model.factorsOfFamily.F.Factor]

    Definition Classes
    Model
  43. def factorsOfFamilyClass[F <: Family](d: DiffList)(implicit fm: ClassTag[F]): Iterable[model.Model.factorsOfFamilyClass.F.Factor]

    Definition Classes
    Model
  44. def factorsOfFamilyClass[F <: Family](d: DiffList, fclass: Class[F]): Iterable[model.Model.factorsOfFamilyClass.F.Factor]

    Definition Classes
    Model
  45. def factorsOfFamilyClass[F <: Family](variables: Iterable[Var])(implicit fm: ClassTag[F]): Iterable[model.Model.factorsOfFamilyClass.F.Factor]

    Definition Classes
    Model
  46. def factorsOfFamilyClass[F <: Family](variable: Var)(implicit fm: ClassTag[F]): Iterable[model.Model.factorsOfFamilyClass.F.Factor]

    Definition Classes
    Model
  47. def factorsOfFamilyClass[F <: Family](variables: Iterable[Var], fclass: Class[F]): Iterable[model.Model.factorsOfFamilyClass.F.Factor]

    Definition Classes
    Model
  48. def factorsOfFamilyClass[F <: Family](variable: Var, fclass: Class[F]): Iterable[model.Model.factorsOfFamilyClass.F.Factor]

    Definition Classes
    Model
  49. def families: Seq[Family]

    A Factor Template has just one Factor Family: itself.

    A Factor Template has just one Factor Family: itself.

    Definition Classes
    Template
  50. def filterByFactorClass[F <: model.Factor](factors: Iterable[model.Factor], fclass: Class[F]): Iterable[F]

    Definition Classes
    Model
  51. def filterByFamilies[F <: Family](factors: Iterable[model.Factor], families: Seq[F]): Iterable[model.Model.filterByFamilies.F.Factor]

    Definition Classes
    Model
  52. def filterByFamily[F <: Family](factors: Iterable[model.Factor], family: F): Iterable[model.Model.filterByFamily.F.Factor]

    Definition Classes
    Model
  53. def filterByFamilyClass[F <: Family](factors: Iterable[model.Factor], fclass: Class[F]): Iterable[model.Model.filterByFamilyClass.F.Factor]

    Definition Classes
    Model
  54. def filterByNotFamilyClass[F <: Family](factors: Iterable[model.Factor], fclass: Class[F]): Iterable[model.Factor]

    Definition Classes
    Model
  55. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  57. def hasLimitedDiscreteValues1: Boolean

    Definition Classes
    Family2
  58. def hasLimitedDiscreteValues12: Boolean

    Definition Classes
    Family2
  59. def hasLimitedDiscreteValues2: Boolean

    Definition Classes
    Family2
  60. def hashCode(): Int

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

    Definition Classes
    Any
  62. def itemizedModel(dl: DiffList): ItemizedModel

    Definition Classes
    Model
  63. def itemizedModel(d: Diff): ItemizedModel

    Definition Classes
    Model
  64. def itemizedModel(variables: Iterable[Var]): ItemizedModel

    Definition Classes
    Model
  65. def itemizedModel(variable: Var): ItemizedModel

    Definition Classes
    Model
  66. def limitDiscreteValuesAsIn(vars: Iterable[DiscreteVar]): Unit

    Causes future calls to factor.

    Causes future calls to factor.valuesIterator to limit the returned values to those value combinations seen in the current values of the variables in factors touching "vars". Note that this will limit the values of all DiscreteVar neighbors of the resulting factors, not just the "vars" argument.

    Definition Classes
    Template2Template
  67. var limitedDiscreteValues1: SparseBinaryTensor1

    Definition Classes
    Family2
  68. var limitedDiscreteValues12: SparseBinaryTensor2

    Definition Classes
    Family2
  69. var limitedDiscreteValues2: SparseBinaryTensor1

    Definition Classes
    Family2
  70. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  71. val neighborClass1: Class[_]

    Definition Classes
    Template2
  72. val neighborClass2: Class[_]

    Definition Classes
    Template2
  73. def neighborClasses: Seq[Class[_]]

    Definition Classes
    Template2FamilyWithNeighborClasses
  74. def neighborDomain1: Domain { type Value <: cc.factorie.variable.LabeledVar#Value }

    Override this if you want to matchNeighborDomains

    Override this if you want to matchNeighborDomains

    Definition Classes
    Family2
  75. def neighborDomain2: Domain { type Value <: cc.factorie.variable.LabeledVar#TargetType#Value }

    Definition Classes
    Family2
  76. def neighborDomains: Seq[Domain { type Value <: cc.factorie.variable.Var#Value }]

    Definition Classes
    Family2FamilyWithNeighborDomains
  77. def newFactorsCollection: Set[model.Factor]

    The "factors" methods need a new collection to return; this method is used by them to construct this collection.

    The "factors" methods need a new collection to return; this method is used by them to construct this collection.

    Definition Classes
    Model
  78. final def notify(): Unit

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

    Definition Classes
    AnyRef
  80. def score(value1: LabeledVar.Value, value2: LabeledVar.TargetType.Value): Double

    Definition Classes
    HammingLossTemplateFamily2
  81. def scoreAndStatistics(v1: LabeledVar.Value, v2: LabeledVar.TargetType.Value): (Double, (LabeledVar.Value, LabeledVar.TargetType.Value))

    Definition Classes
    Family2
  82. def setFactorName(n: String): HammingLoss.this.type

    Assign this Template a name which will be used later when its factors are printed.

    Assign this Template a name which will be used later when its factors are printed.

    Definition Classes
    Family
  83. final def statistics(v1: LabeledVar.Value, v2: LabeledVar.TargetType.Value): (LabeledVar.Value, LabeledVar.TargetType.Value)

    Definition Classes
    TupleFamilyWithStatistics2Family2
  84. final def statisticsAreValues: Boolean

    Definition Classes
    TupleFamilyWithStatistics2Family2
  85. def statisticsScore(tensor: Tensor): Double

    Definition Classes
    Family
  86. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  87. final def thisFamily: HammingLoss.this.type

    Definition Classes
    Family
    Annotations
    @inline()
  88. def toString(): String

    Definition Classes
    AnyRef → Any
  89. def unroll(v: Var): Iterable[Factor]

    Implement this method to create and return all Factors of this Template touching the given Var.

    Implement this method to create and return all Factors of this Template touching the given Var. Users of the Template should not call this method directly, however, because this method's implementation is permitted to return duplicate Factors. Instead call factors(Var), which will deduplicate the Factors (using the helper function addFactors).

    Definition Classes
    Template2Template
  90. def unroll1(aimer: LabeledVar): Iterable[Factor]

    Definition Classes
    HammingLossTemplateTemplate2
  91. def unroll2(target: TargetType): Nothing

    Definition Classes
    HammingLossTemplateTemplate2
  92. def valuesScore(t: Tensor): Double

    Definition Classes
    HammingLossTemplateFamily2Family
  93. def valuesStatistics(tensor: Tensor): Tensor

    Definition Classes
    Family2
  94. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Template2[LabeledVar, TargetType]

Inherited from Template

Inherited from model.Model

Inherited from FamilyWithNeighborClasses

Inherited from Family2[LabeledVar, TargetType]

Inherited from FamilyWithNeighborDomains

Inherited from Family

Inherited from AnyRef

Inherited from Any

Ungrouped