class_docstr: Implements lit.Model interface for testing.
  
  This class allows flexible input spec to allow different testing scenarios.
class_docstr_tok: ["Implements","lit.Model","interface","for","testing",".","This","class","allows","flexible","input","spec","to","allow","different","testing","scenarios","."]
docstr: Set input spec.
  
  Args:
    input_spec: An input spec.
docstr_tok: ["Set","input","spec",".","Args",":","input_spec",":","An","input","spec","."]
code: def __init__(self, input_spec: lit_types.Spec):
      """Set input spec.
  
      Args:
        input_spec: An input spec.
      """
      self._input_spec = input_spec
  
imports: from collections.abc import Iterable, Iterator
  from lit_nlp.api import model
  from lit_nlp.api import types
  import numpy
  import numpy.testing
label_desc: Use image node_id 1 to create a new RegressionModelForTesting object from inherited base classes: lit_model with example: obj = RegressionModelForTesting(input_spec)