Class

edu.umass.cs.automan.core.policy.aggregation

AdversarialPolicy

Related Doc: package aggregation

Permalink

class AdversarialPolicy extends ScalarPolicy

This policy aggregates a set of discrete-valued responses into a single best response using the adversarial scheme outlined in the AutoMan OOPSLA '12 paper.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AdversarialPolicy
  2. ScalarPolicy
  3. AggregationPolicy
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AdversarialPolicy(question: DiscreteScalarQuestion)

    Permalink

    question

    The question

Type Members

  1. class PrematureAggregationException extends Exception

    Permalink
    Definition Classes
    AggregationPolicy

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 NumberOfSimulations: Int

    Permalink
    Attributes
    protected[edu.umass.cs.automan]
  5. val PrecompPath: String

    Permalink
    Attributes
    protected[edu.umass.cs.automan]
  6. def allow_early_termination(): Boolean

    Permalink

    Determines whether a policy allows for canceling running tasks.

    Determines whether a policy allows for canceling running tasks. If true, is_done will be called more often, increasing the required confidence level to terminate. Note that an early termination check is always conducted when timeouts occur regardless of this setting.

    Definition Classes
    AggregationPolicy
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def blacklisted_workers(tasks: List[Task]): List[String]

    Permalink

    Returns a list of blacklisted worker_ids given a set of tasks, completed or not.

    Returns a list of blacklisted worker_ids given a set of tasks, completed or not.

    tasks

    The complete list of tasks.

    returns

    A list of worker IDs.

    Definition Classes
    AggregationPolicy
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def completed_tasks(tasks: List[Task]): List[Task]

    Permalink
    Definition Classes
    AggregationPolicy
  11. def completed_workerunique_tasks(tasks: List[Task]): List[Task]

    Permalink
    Definition Classes
    AggregationPolicy
  12. def current_confidence(tasks: List[Task]): Double

    Permalink

    Implementations

    Implementations

    Definition Classes
    AdversarialPolicyScalarPolicy
  13. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  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 getDistribution(tasks: List[Task]): Array[Response[A]]

    Permalink
    Definition Classes
    AggregationPolicy
  18. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  20. def is_confident(tasks: List[Task], num_comparisons: Int): (Boolean, Int)

    Permalink
    Definition Classes
    AdversarialPolicyScalarPolicy
  21. def is_done(tasks: List[Task], num_comparisons: Int): (Boolean, Int)

    Permalink

    Returns true if the strategy has enough data to stop scheduling work.

    Returns true if the strategy has enough data to stop scheduling work.

    tasks

    The complete list of scheduled tasks.

    num_comparisons

    The number of times this function has been called, inclusive.

    returns

    (true iff done, new num_comparisons)

    Definition Classes
    ScalarPolicyAggregationPolicy
  22. def max_agree(tasks: List[Task]): Int

    Permalink
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. def not_final(task: Task): Boolean

    Permalink
    Definition Classes
    AggregationPolicy
  25. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  27. def numOpts: Int

    Permalink
  28. def num_to_run(tasks: List[Task], num_comparisons: Int, reward: BigDecimal): Int

    Permalink
    Definition Classes
    AdversarialPolicyAggregationPolicy
  29. def num_to_run_fallback(tasks: List[Task], num_comparisons: Int, reward: BigDecimal): Int

    Permalink
  30. def outstanding_tasks(tasks: List[Task]): List[Task]

    Permalink
    Definition Classes
    AggregationPolicy
  31. def partition_duplicates(tasks: List[Task]): (List[Task], List[Task])

    Permalink

    Partitions a set of tasks into those that should be marked as duplicate and those that should not be.

    Partitions a set of tasks into those that should be marked as duplicate and those that should not be. All tasks passed in are passed back out.

    tasks

    A list of tasks

    returns

    (list of non-duplicate tasks, list of duplicate tasks)

    Definition Classes
    AggregationPolicy
  32. def pessimism(): Double

    Permalink
  33. val precompTable: Option[PrecompTable]

    Permalink
  34. def rejection_response(tasks: List[Task]): String

    Permalink

    Returns a string explaining why the worker's answer was not accepted.

    Returns a string explaining why the worker's answer was not accepted.

    tasks

    The list of accepted tasks. Used to determine the correct answer.

    returns

    Explanation string.

    Definition Classes
    AdversarialPolicyAggregationPolicy
  35. def select_answer(tasks: List[Task], num_comparisons: Int): AA

    Permalink

    Returns the top answer.

    Returns the top answer.

    tasks

    The complete list of tasks.

    num_comparisons

    The number of times is_done has been called.

    returns

    Top answer

    Definition Classes
    AdversarialPolicyAggregationPolicy
  36. def select_over_budget_answer(tasks: List[Task], need: BigDecimal, have: BigDecimal, num_comparisons: Int): AA

    Permalink

    Returns an appropriate response for when the computation ran out of money.

    Returns an appropriate response for when the computation ran out of money.

    tasks

    The complete list of tasks.

    need

    The smallest amount of money needed to complete the computation under optimistic assumptions.

    have

    The amount of money we have.

    num_comparisons

    The number of times is_done has been called.

    returns

    A low-confidence or over-budget answer.

    Definition Classes
    AdversarialPolicyAggregationPolicy
  37. def spawn(tasks: List[Task], suffered_timeout: Boolean, num_comparisons: Int): List[Task]

    Permalink

    Computes the number of tasks needed to satisfy the quality-control algorithm given the already-collected list of tasks.

    Computes the number of tasks needed to satisfy the quality-control algorithm given the already-collected list of tasks. Returns only newly-created tasks.

    tasks

    The complete list of previously-scheduled tasks

    suffered_timeout

    True if any of the latest batch of tasks suffered a timeout.

    returns

    A list of new tasks to schedule on the backend.

    Definition Classes
    AggregationPolicy
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  39. def tasks_to_accept(tasks: List[Task]): List[Task]

    Permalink
    Definition Classes
    AdversarialPolicyAggregationPolicy
  40. def tasks_to_accept_on_failure(tasks: List[Task]): List[Task]

    Permalink
    Definition Classes
    AggregationPolicy
  41. def tasks_to_cancel(tasks: List[Task]): List[Task]

    Permalink
    Definition Classes
    AggregationPolicy
  42. def tasks_to_reject(tasks: List[Task]): List[Task]

    Permalink
    Definition Classes
    AdversarialPolicyAggregationPolicy
  43. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  44. def unique_by_date(ts: List[Task]): List[Task]

    Permalink
    Attributes
    protected
    Definition Classes
    AggregationPolicy
  45. final def wait(): Unit

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

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

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

Inherited from ScalarPolicy

Inherited from AggregationPolicy

Inherited from AnyRef

Inherited from Any

Ungrouped