class_docstr: Cost model.
class_docstr_tok: ["Cost","model","."]
docstr: Update the cost model given running results.
  
  Parameters
  ----------
  context : TuneContext,
      The tuning context.
  candidates : List[MeasureCandidate]
      The measure candidates.
  results : List[RunnerResult]
      The running results of the measure candidates.
docstr_tok: ["Update","the","cost","model","given","running","results",".","Parameters","--","--","--","--","--","context",":","TuneContext",",","The","tuning","context",".","candidates",":","List","[","MeasureCandidate","]","The","measure","candidates",".","results",":","List","[","RunnerResult","]","The","running","results","of","the","measure","candidates","."]
code: def update(
      self,
      context: TuneContext,
      candidates: List[MeasureCandidate],
      results: List[RunnerResult],
  ) -> None:
      """Update the cost model given running results.
  
      Parameters
      ----------
      context : TuneContext,
          The tuning context.
      candidates : List[MeasureCandidate]
          The measure candidates.
      results : List[RunnerResult]
          The running results of the measure candidates.
      """
      _ffi_api.CostModelUpdate(self, context, candidates, results)
  
imports: import ctypes
  from typing import Callable, List, Union
  from typing_extensions import Literal
  import numpy
  from tvm._ffi import register_object
  from tvm.runtime import Object
  from ..None import _ffi_api
  from ..runner import RunnerResult
  from ..search_strategy import MeasureCandidate
  from ..tune_context import TuneContext
  from ..utils import _get_default_str
label_desc: Use image node_id 3 for calling the CostModel obj's underlying member method code with example usage: obj.update(context, candidates, results) without return types