class_docstr: Unit test class for testing scikit-learn converter.
class_docstr_tok: ["Unit","test","class","for","testing","scikit-learn","converter","."]
code: def test_conversion_bad_inputs(self):
      from sklearn.preprocessing import OneHotEncoder
  
      # Error on converting an untrained model
      with self.assertRaises(TypeError):
          model = NuSVC()
          spec = scikit_converter.convert(model, "data", "out")
  
      # Check the expected class during conversion
      with self.assertRaises(TypeError):
          model = OneHotEncoder()
          spec = scikit_converter.convert(model, "data", "out")
  
imports: import unittest
  import tempfile
  import os
  import pandas
  import random
  import pytest
  from coremltools.models.utils import evaluate_classifier, evaluate_classifier_with_probabilities, _macos_version, _is_macos
  from coremltools._deps import _HAS_LIBSVM, MSG_LIBSVM_NOT_FOUND, _HAS_SKLEARN, MSG_SKLEARN_NOT_FOUND
label_desc: Use image node_id 10 for calling the NuSvcScikitTest obj's underlying member method code with example usage: obj.test_conversion_bad_inputs() without return types