class_docstr: Dictionary which specifies all that's needed to build and validate a model.
class_docstr_tok: ["Dictionary","which","specifies","all","that","'s","needed","to","build","and","validate","a","model","."]
docstr: Factory for creating a ModelSpec for a given Dataset (frame and additional metadata).
code: def for_dataset(dest_key, algo, dataset, params):
      """
      Factory for creating a ModelSpec for a given Dataset (frame and additional metadata).
      """
      dataset_params = {}
      assert (
          "model_category" in dataset
      ), "FAIL: Failed to find model_category in dataset: " + repr(
          dataset
      )
      if "response_column" in dataset:
          dataset_params["response_column"] = dataset["response_column"]
      if "ignored_columns" in dataset:
          dataset_params["ignored_columns"] = dataset["ignored_columns"]
      result_dataset_params = dataset_params.copy()
      result_dataset_params.update(params)
      return ModelSpec(
          dest_key,
          algo,
          dataset["dest_key"],
          result_dataset_params,
          dataset["model_category"],
      )
  
imports: import sys, os, time, json, datetime, errno, stat, getpass, requests, pprint
  import h2o
label_desc: Use image node_id 2 for calling the ModelSpec obj's underlying member method code with example usage: obj.for_dataset(dest_key, algo, dataset, params) and returns: ModelSpec