class_docstr: Assesses the quality of partitioning according to chosen metrics and report it.
  
  Available metrics: edge cut, edge imbalance, vertex imbalance, time, memory usage.
  
  Parameters
  ----------
  partitionings:
          Data splits to be compared.
  
  Example
  -------
  
  >>>>quality = PartitioningReporter(partitionings)
  >>>>report = quality.report(visualize=False)
class_docstr_tok: ["Assesses","the","quality","of","partitioning","according","to","chosen","metrics","and","report","it",".","Available","metrics",":","edge","cut",",","edge","imbalance",",","vertex","imbalance",",","time",",","memory","usage",".","Parameters","--","--","--","--","--","partitionings",":","Data","splits","to","be","compared",".","Example","--","--","--","-",">",">",">",">","quality","=","PartitioningReporter","(","partitionings",")",">",">",">",">","report","=","quality.report","(","visualize=False",")"]
docstr: Metric that calculates the average difference between the
  ideal size of partition (in terms of vertices) and the real size.
  
  It is expressed as the percentage deviation from the ideal size.
  
  Parameters
  ----------
  partitions:
       Partitions in one partitioning.
  
  Returns
  -------
  percentage_dev: float
       Percentage vertex size partition deviation
docstr_tok: ["Metric","that","calculates","the","average","difference","between","the","ideal","size","of","partition","(","in","terms","of","vertices",")","and","the","real","size",".","It","is","expressed","as","the","percentage","deviation","from","the","ideal","size",".","Parameters","--","--","--","--","--","partitions",":","Partitions","in","one","partitioning",".","Returns","--","--","--","-","percentage_dev",":","float","Percentage","vertex","size","partition","deviation"]
code: def get_average_deviation_from_ideal_size_vertices(self, partitions):
      """Metric that calculates the average difference between the
      ideal size of partition (in terms of vertices) and the real size.
  
      It is expressed as the percentage deviation from the ideal size.
  
      Parameters
      ----------
      partitions:
           Partitions in one partitioning.
  
      Returns
      -------
      percentage_dev: float
           Percentage vertex size partition deviation
      """
      k = len(partitions)
      sizes = []
      for partition in partitions:
          ents_len = partition.backend.mapper.get_entities_count()
          sizes.append(ents_len)
      data_size = ents_len
      ideal_size = data_size / k
      percentage_dev = (
          (np.sum([np.abs(ideal_size - size) for size in sizes]) / k)
          / ideal_size
      ) * 100
      return percentage_dev
  
file_path: AmpliGraph/ampligraph/datasets/partitioning_reporter.py
imports: import copy
  import logging
  import matplotlib.pyplot
  import numpy
  from matplotlib.pyplot import cm
  from .datasets import load_fb15k_237
  from .graph_partitioner import RandomVerticesGraphPartitioner
label_desc: Use image node_id 5 for calling the PartitioningReporter obj's underlying member method code with example usage: obj.get_average_deviation_from_ideal_size_vertices(partitions) and returns: percentage_dev