code: def test_predict_automatic(self):
      with warnings.catch_warnings():
          warnings.simplefilter("always", UserWarning)
  
          iris = datasets.load_iris()
          df = pdml.ModelFrame(iris)
  
          model = "SVC"
  
          df = pdml.ModelFrame(iris)
          mod1 = getattr(df.svm, model)(
              probability=True, random_state=self.random_state
          )
          mod2 = getattr(svm, model)(
              probability=True, random_state=self.random_state
          )
  
          df.fit(mod1)
          mod2.fit(iris.data, iris.target)
  
          # test automatically calls related methods
          with tm.assert_produces_warning(UserWarning):
              result = df.predicted
          expected = mod2.predict(iris.data)
  
          self.assertIsInstance(result, pdml.ModelSeries)
          self.assert_numpy_array_almost_equal(result.values, expected)
  
          # with tm.assert_produces_warning(UserWarning):
          result = df.proba
          expected = mod2.predict_proba(iris.data)
  
          self.assertIsInstance(result, pdml.ModelFrame)
          tm.assert_index_equal(result.index, df.index)
          self.assert_numpy_array_almost_equal(result.values, expected)
  
          with tm.assert_produces_warning(UserWarning):
              result = df.log_proba
          expected = mod2.predict_log_proba(iris.data)
  
          self.assertIsInstance(result, pdml.ModelFrame)
          tm.assert_index_equal(result.index, df.index)
          self.assert_numpy_array_almost_equal(result.values, expected)
  
          # with tm.assert_produces_warning(UserWarning):
          result = df.decision
          expected = mod2.decision_function(iris.data)
  
          self.assertIsInstance(result, pdml.ModelFrame)
          tm.assert_index_equal(result.index, df.index)
          self.assert_numpy_array_almost_equal(result.values, expected)
  
      warnings.simplefilter("default")
  
imports: import pytest
  import datetime
  import warnings
  import numpy
  import pandas
  import sklearn.datasets
  import sklearn.svm
  import pandas_ml
  import pandas_ml.util.testing
label_desc: Use image node_id 19 for calling the TestModelFrame obj's underlying member method code with example usage: obj.test_predict_automatic() without return types