class_docstr: An AdaNet model architecture.
  
  This data structure is the blueprint for reconstructing an AdaNet model. It
  contains not only information about the underlying Ensemble, but also the
  `adanet.subnetwork.Builder` instances that compose the ensemble, the
  `adanet.ensemble.Ensembler` that constructed it, as well as the sequence
  of states in the search space that led to the construction of this model.
  In addition, it stores `replay_indices` A list of indices (an index per
  boosting iteration); Holding the index of the ensemble in the candidate list
  throughout the run.
  
  It is serializable and deserializable for persistent storage.
class_docstr_tok: ["An","AdaNet","model","architecture",".","This","data","structure","is","the","blueprint","for","reconstructing","an","AdaNet","model",".","It","contains","not","only","information","about","the","underlying","Ensemble",",","but","also","the","`","adanet.subnetwork.Builder","`","instances","that","compose","the","ensemble",",","the","`","adanet.ensemble.Ensembler","`","that","constructed","it",",","as","well","as","the","sequence","of","states","in","the","search","space","that","led","to","the","construction","of","this","model",".","In","addition",",","it","stores","`","replay_indices","`","A","list","of","indices","(","an","index","per","boosting","iteration",")",";","Holding","the","index","of","the","ensemble","in","the","candidate","list","throughout","the","run",".","It","is","serializable","and","deserializable","for","persistent","storage","."]
docstr: Deserializes a serialized architecture.
  
  Args:
    serialized_architecture: String representation of an `_Architecture`
      obtained by calling `serialize`.
  
  Returns:
    A deserialized `_Architecture` instance.
docstr_tok: ["Deserializes","a","serialized","architecture",".","Args",":","serialized_architecture",":","String","representation","of","an","`","_Architecture","`","obtained","by","calling","`","serialize","`",".","Returns",":","A","deserialized","`","_Architecture","`","instance","."]
code: def deserialize(serialized_architecture):
      """Deserializes a serialized architecture.
  
      Args:
        serialized_architecture: String representation of an `_Architecture`
          obtained by calling `serialize`.
  
      Returns:
        A deserialized `_Architecture` instance.
      """
  
      ensemble_arch = json.loads(serialized_architecture)
      architecture = _Architecture(
          ensemble_arch["ensemble_candidate_name"],
          ensemble_arch["ensembler_name"],
          ensemble_arch["global_step"],
          ensemble_arch["replay_indices"],
      )
      for subnet in ensemble_arch["subnetworks"]:
          architecture.add_subnetwork(
              subnet["iteration_number"], subnet["builder_name"]
          )
      return architecture
  
file_path: adanet/adanet/core/architecture.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import copy
  import json
label_desc: Use image node_id 12 for calling the _Architecture obj's underlying member method code with example usage: obj.deserialize(serialized_architecture) and returns: architecture