Class

mimir.models

DefaultMetaModel

Related Doc: package models

Permalink

class DefaultMetaModel extends Model with DataIndependentFeedback with NoArgModel with FiniteDiscreteDomain

A dumb, default Meta-Model to stand in until we get something better.

This meta model always ignores VG arguments and picks the first model in the list.

Annotations
@SerialVersionUID()
Linear Supertypes
FiniteDiscreteDomain, NoArgModel, DataIndependentFeedback, SourcedFeedbackT[Int], Model, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultMetaModel
  2. FiniteDiscreteDomain
  3. NoArgModel
  4. DataIndependentFeedback
  5. SourcedFeedbackT
  6. Model
  7. Serializable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DefaultMetaModel(name: String, context: String, models: Seq[String])

    Permalink

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 argTypes(x: Int): Seq[Type]

    Permalink
    Definition Classes
    NoArgModel
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def bestGuess(idx: Int, args: Seq[PrimitiveValue], hints: Seq[PrimitiveValue]): PrimitiveValue

    Permalink

    Generate a best guess for a variable represented by this model.

    Generate a best guess for a variable represented by this model.

    idx

    The index of the variable family to generate a best guess for

    args

    The skolem identifier for the specific variable to generate a best guess for

    returns

    A primitive value representing the best guess value.

    Definition Classes
    DefaultMetaModelModel
  7. def choices(idx: Int): Option[PrimitiveValue]

    Permalink
    Definition Classes
    DataIndependentFeedback
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def confidence(idx: Int, args: Seq[PrimitiveValue], hints: Seq[PrimitiveValue]): Double

    Permalink

    Return confidence on a scale of 0 to 1

    Return confidence on a scale of 0 to 1

    idx

    The index of the variable family to record feedback for

    args

    The skolem identifier for the specific variable to record feedback for

    returns

    The confidence value

    Definition Classes
    DefaultMetaModelModel
  10. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def feedback(idx: Int, args: Seq[PrimitiveValue], v: PrimitiveValue): Unit

    Permalink
    Definition Classes
    DataIndependentFeedback
  13. val feedback: Map[Int, Map[FeedbackSourceIdentifier, PrimitiveValue]]

    Permalink
    Definition Classes
    SourcedFeedbackT
  14. val feedbackSources: Set[FeedbackSourceIdentifier]

    Permalink
    Definition Classes
    SourcedFeedbackT
  15. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. def getDomain(idx: Int, args: Seq[PrimitiveValue], hints: Seq[PrimitiveValue]): Seq[(PrimitiveValue, Double)]

    Permalink
    Definition Classes
    DefaultMetaModelFiniteDiscreteDomain
  18. def getFeedback(idx: Int, args: Seq[PrimitiveValue]): Option[PrimitiveValue]

    Permalink
    Definition Classes
    SourcedFeedbackT
  19. def getFeedbackKey(idx: Int, args: Seq[PrimitiveValue]): Int

    Permalink
  20. def getReasonWho(idx: Int, args: Seq[PrimitiveValue]): String

    Permalink
    Definition Classes
    SourcedFeedbackT
  21. def hasFeedback(idx: Int, args: Seq[PrimitiveValue]): Boolean

    Permalink
    Definition Classes
    SourcedFeedbackT
  22. def hasGroundFeedback(idx: Int, args: Seq[PrimitiveValue]): Boolean

    Permalink
    Definition Classes
    SourcedFeedbackT
  23. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  24. def hintTypes(idx: Int): Seq[Nothing]

    Permalink
    Definition Classes
    NoArgModel
  25. def isAcknowledged(idx: Int, args: Seq[PrimitiveValue]): Boolean

    Permalink
    Definition Classes
    DataIndependentFeedback
  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. val name: String

    Permalink
    Definition Classes
    Model
  28. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  31. def reason(idx: Int, args: Seq[PrimitiveValue], hints: Seq[PrimitiveValue]): String

    Permalink

    Generate a human-readable explanation for the uncertainty captured by this model.

    Generate a human-readable explanation for the uncertainty captured by this model.

    idx

    The index of the variable family to explain

    args

    The skolem identifier for the specific variable to explain

    returns

    A string reason explaining the uncertainty in this model

    Definition Classes
    DefaultMetaModelModel
  32. def sample(idx: Int, randomness: Random, args: Seq[PrimitiveValue], hints: Seq[PrimitiveValue]): PrimitiveValue

    Permalink

    Generate a sample from the distribution of a variable represented by this model.

    Generate a sample from the distribution of a variable represented by this model.

    idx

    The index of the variable family to generate a sample for

    randomness

    A java.util.Random to use when generating the sample (pre-seeded)

    args

    The skolem identifier for the specific variable to generate a sample for

    returns

    A primitive value representing the generated sample

    Definition Classes
    DefaultMetaModelModel
  33. def sample(idx: Int, seed: Long, args: Seq[PrimitiveValue], hints: Seq[PrimitiveValue]): PrimitiveValue

    Permalink

    Generate a sample from the distribution of a variable represented by this model.

    Generate a sample from the distribution of a variable represented by this model.

    idx

    The index of the variable family to generate a sample for

    seed

    The global world identifier (seed) to sample from

    args

    The skolem identifier for the specific variable to generate a sample for

    returns

    A primitive value representing the generated sample

    Definition Classes
    Model
  34. def serialize(): (Array[Byte], String)

    Permalink

    Encode the model for persistence to disk/the database

    Encode the model for persistence to disk/the database

    returns

    A 2-tuple including the serialized encoding, and the name of a deserializer to use when decoding the encoding.

    Definition Classes
    Model
  35. def setFeedback(idx: Int, args: Seq[PrimitiveValue], value: PrimitiveValue): Unit

    Permalink
    Definition Classes
    SourcedFeedbackT
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  37. def toString(): String

    Permalink

    A string representation of this model

    A string representation of this model

    Definition Classes
    Model → AnyRef → Any
  38. def validateChoice(idx: Int, v: PrimitiveValue): Boolean

    Permalink
  39. def varType(idx: Int, args: Seq[Type]): Type

    Permalink

    Infer the type of the model from the types of the inputs

    Infer the type of the model from the types of the inputs

    returns

    The type of the value returned by this model

    Definition Classes
    DefaultMetaModelModel
  40. final def wait(): Unit

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

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

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

Inherited from FiniteDiscreteDomain

Inherited from NoArgModel

Inherited from DataIndependentFeedback

Inherited from SourcedFeedbackT[Int]

Inherited from Model

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped