Class

mimir.models

PickerModel

Related Doc: package models

Permalink

class PickerModel extends Model with Serializable with NeedsReconnectToDatabase with FiniteDiscreteDomain with SourcedFeedback with ModelCache

A model representing a key-repair choice.

The index is ignored. The one argument is a value for the key. The return value is an integer identifying the ordinal position of the selected value, starting with 0.

Annotations
@SerialVersionUID()
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PickerModel
  2. ModelCache
  3. SourcedFeedback
  4. SourcedFeedbackT
  5. FiniteDiscreteDomain
  6. NeedsReconnectToDatabase
  7. Model
  8. Serializable
  9. Serializable
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PickerModel(name: String, resultColumn: String, pickFromCols: Seq[String], colTypes: Seq[Type], useClassifier: Option[(() ⇒ SparkML, SparkModelGenerator)], classifyUpFrontAndCache: Boolean, source: Operator)

    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. val TRAINING_LIMIT: Int

    Permalink
  5. def argTypes(idx: Int): Seq[Type]

    Permalink

    The list of expected arg types (may be TAny)

    The list of expected arg types (may be TAny)

    Definition Classes
    PickerModelModel
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. 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
    PickerModelModel
  8. val cache: Map[String, PrimitiveValue]

    Permalink
    Definition Classes
    ModelCache
  9. var classifierModel: Option[SparkModel]

    Permalink
  10. def classify(idx: Int, args: Seq[PrimitiveValue], hints: Seq[PrimitiveValue]): Seq[(String, Double)]

    Permalink
  11. def classifyAll(): Unit

    Permalink
  12. var classifyAllPredictions: Option[Map[String, Seq[(String, Double)]]]

    Permalink
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. 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
    PickerModelModel
  15. var db: Database

    Permalink
  16. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink

    Record feedback given as the "correct" value for a variable represented by this model

    Record feedback given as the "correct" value for a variable represented by this model

    idx

    The index of the variable family to record feedback for

    args

    The skolem identifier for the specific variable to record feedback for

    v

    The correct value for the parameter

    Definition Classes
    PickerModelModel
  19. val feedback: Map[String, Map[FeedbackSourceIdentifier, PrimitiveValue]]

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. def getCache(idx: Int, args: Seq[PrimitiveValue], hints: Seq[PrimitiveValue]): Option[PrimitiveValue]

    Permalink
    Definition Classes
    ModelCache
  23. def getCacheKey(idx: Int, args: Seq[PrimitiveValue], hints: Seq[PrimitiveValue]): String

    Permalink
    Definition Classes
    PickerModelModelCache
  24. final def getClass(): Class[_]

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

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

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

    Permalink
    Definition Classes
    PickerModelSourcedFeedbackT
  28. def getReasonWho(idx: Int, args: Seq[PrimitiveValue]): String

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

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

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

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

    Permalink

    The list of expected hint types (may be TAny)

    The list of expected hint types (may be TAny)

    Definition Classes
    PickerModelModel
  33. def isAcknowledged(idx: Int, args: Seq[PrimitiveValue]): Boolean

    Permalink

    Determine whether a variable represented by this model has been acknowledged or not

    Determine whether a variable represented by this model has been acknowledged or not

    idx

    The index of the variable family to check acknowledgement of

    args

    The skolem identifier for the specific variable to check acknowledgement of

    returns

    True if the variable has been acknowledged

    Definition Classes
    PickerModelModel
  34. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  35. val name: String

    Permalink
    Definition Classes
    PickerModelModel
  36. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  39. 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
    PickerModelModel
  40. def reconnectToDatabase(db: Database): Unit

    Permalink
    Definition Classes
    PickerModelNeedsReconnectToDatabase
  41. 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
    PickerModelModel
  42. 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
  43. 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
  44. def setCache(idx: Int, args: Seq[PrimitiveValue], hints: Seq[PrimitiveValue], value: PrimitiveValue): Unit

    Permalink
    Definition Classes
    ModelCache
  45. def setFeedback(idx: Int, args: Seq[PrimitiveValue], value: PrimitiveValue): Unit

    Permalink
    Definition Classes
    SourcedFeedbackT
  46. var sparkMLInstance: Option[() ⇒ SparkML]

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

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

    Permalink

    A string representation of this model

    A string representation of this model

    Definition Classes
    Model → AnyRef → Any
  49. def train(sparkMLInstModelGen: (() ⇒ SparkML, SparkModelGenerator)): (SparkML, SparkModel)

    Permalink
  50. 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
    PickerModelModel
  51. final def wait(): Unit

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

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

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

Inherited from ModelCache

Inherited from SourcedFeedback

Inherited from SourcedFeedbackT[String]

Inherited from FiniteDiscreteDomain

Inherited from NeedsReconnectToDatabase

Inherited from Model

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped