class_docstr: Test abstract superclass behavior.
class_docstr_tok: ["Test","abstract","superclass","behavior","."]
docstr: Test HyperparamOpt can't be initialized.
docstr_tok: ["Test","HyperparamOpt","ca","n't","be","initialized","."]
code: def test_cant_be_initialized(self):
      """Test HyperparamOpt can't be initialized."""
      initialized = True
  
      def rf_model_builder(model_params, model_dir):
          sklearn_model = sklearn.ensemble.RandomForestRegressor(
              **model_params
          )
          return dc.model.SklearnModel(sklearn_model, model_dir)
  
      try:
          _ = dc.hyper.HyperparamOpt(rf_model_builder)
      except ValueError:
          initialized = False
      assert not initialized
  
imports: import unittest
  import sklearn
  import deepchem
label_desc: Use image node_id 1 for calling the TestHyperparamOpt obj's underlying member method code with example usage: obj.test_cant_be_initialized() and returns: dc