class_docstr: Container for PyTorch models mirroning the Sklearn anomaly detection API.
class_docstr_tok: ["Container","for","PyTorch","models","mirroning","the","Sklearn","anomaly","detection","API","."]
code: def _decision_function(self, *inputs):
      return self.model.forward(*inputs)[1].cpu().numpy().ravel()
  
imports: import pickle
  import os
  import numpy
  import shutil
  import torch
  import warnings
  import hummingbird
  from hummingbird.ml._utils import pandas_installed, get_device, from_strings_to_ints, dump_versions, check_dumped_versions
  from hummingbird.ml.operator_converters import constants
  from hummingbird.ml.containers._sklearn_api_containers import SklearnContainer, SklearnContainerTransformer, SklearnContainerRegression, SklearnContainerClassification, SklearnContainerAnomalyDetection
label_desc: Use image node_id 1 for calling the PyTorchSklearnContainerAnomalyDetection obj's underlying member method code with example usage: obj._decision_function() and returns: self