class_docstr: Abstraction on ``fit`` and ``transform`` execution.
  
  Base transformer is an abstraction strongly inspired by the ``sklearn.Transformer`` and
  ``sklearn.Estimator``. Two main concepts are:
  
      1. Every action that can be performed on data (transformation, model training) can be
      performed in two steps: fitting (where trainable parameters are estimated) and transforming
      (where previously estimated parameters are used to transform the data into desired state).
  
      2. Every transformer knows how it should be persisted and loaded (especially useful when
      working with Keras/Pytorch or scikit-learn) in one pipeline.
class_docstr_tok: ["Abstraction","on","``","fit","``","and","``","transform","``","execution",".","Base","transformer","is","an","abstraction","strongly","inspired","by","the","``","sklearn.Transformer","``","and","``","sklearn.Estimator","``",".","Two","main","concepts","are",":","1",".","Every","action","that","can","be","performed","on","data","(","transformation",",","model","training",")","can","be","performed","in","two","steps",":","fitting","(","where","trainable","parameters","are","estimated",")","and","transforming","(","where","previously","estimated","parameters","are","used","to","transform","the","data","into","desired","state",")",".","2",".","Every","transformer","knows","how","it","should","be","persisted","and","loaded","(","especially","useful","when","working","with","Keras\/Pytorch","or","scikit-learn",")","in","one","pipeline","."]
docstr: Loads the trainable parameters of the transformer.
  
  Specific implementation of loading persisted model parameters should be implemented here.
  In case of transformer that do not learn any parameters one can leave this method as is.
  
  Args:
      filepath (str): filepath from which the transformer should be loaded
  Returns:
      BaseTransformer: self instance
docstr_tok: ["Loads","the","trainable","parameters","of","the","transformer",".","Specific","implementation","of","loading","persisted","model","parameters","should","be","implemented","here",".","In","case","of","transformer","that","do","not","learn","any","parameters","one","can","leave","this","method","as","is",".","Args",":","filepath","(","str",")",":","filepath","from","which","the","transformer","should","be","loaded","Returns",":","BaseTransformer",":","self","instance"]
code: def load(self, filepath):
      """Loads the trainable parameters of the transformer.
  
      Specific implementation of loading persisted model parameters should be implemented here.
      In case of transformer that do not learn any parameters one can leave this method as is.
  
      Args:
          filepath (str): filepath from which the transformer should be loaded
      Returns:
          BaseTransformer: self instance
      """
      _ = filepath
      return self
  
imports: import os
  import pprint
  from collections import defaultdict
  from sklearn.externals import joblib
  from steppy.adapter import Adapter, AdapterError
  from steppy.utils import display_upstream_structure, persist_as_png, get_logger, initialize_logger
label_desc: Use image node_id 5 for calling the BaseTransformer obj's underlying member method code with example usage: obj.load(filepath) and returns: self