class_docstr: A mixin class for SageMaker ``Inference Recommender`` that will be extended by ``Model``
class_docstr_tok: ["A","mixin","class","for","SageMaker","``","Inference","Recommender","``","that","will","be","extended","by","``","Model","``"]
docstr: Filter recommendations list to find a realtime instance
docstr_tok: ["Filter","recommendations","list","to","find","a","realtime","instance"]
code: def _filter_recommendations_for_realtime(self):
      """Filter recommendations list to find a realtime instance"""
      instance_type = None
      initial_instance_count = None
      for recommendations in self.inference_recommendations:
          if (
              "ServerlessConfig"
              not in recommendations["EndpointConfiguration"]
          ):
              instance_type = recommendations["EndpointConfiguration"][
                  "InstanceType"
              ]
              initial_instance_count = recommendations[
                  "EndpointConfiguration"
              ]["InitialInstanceCount"]
      return (instance_type, initial_instance_count)
  
imports: from __future__ import absolute_import
  import logging
  import re
  from typing import List, Dict, Optional
  import sagemaker
  from sagemaker.parameter import CategoricalParameter
label_desc: Use image node_id 13 for calling the InferenceRecommenderMixin obj's underlying member method code with example usage: obj._filter_recommendations_for_realtime() and returns: instance_type,  initial_instance_count