romspline/helpers.py
def total_compression_from_sizes(full_sizes, reduced_sizes):
  """Compute the total amount of compression achieved for
  multiple datasets that may have possibly different numbers 
  of samples.
  
  Input
  -----
    full_sizes    - list or array containing sizes of 
                    multiple full datasets
    reduced_sizes - list or array containing sizes of
                    corresponding reduced datasets
  
  Output
  ------
    The total compression factor is defined as the sum of
  full dataset sizes divided by the sum of the reduced 
  dataset sizes.
  """  
  return float(np.sum(full_sizes)) / np.sum(reduced_sizes)
Compute the total amount of compression achieved for
  multiple datasets that may have possibly different numbers 
  of samples.
  
  Input
  -----
    full_sizes    - list or array containing sizes of 
                    multiple full datasets
    reduced_sizes - list or array containing sizes of
                    corresponding reduced datasets
  
  Output
  ------
    The total compression factor is defined as the sum of
  full dataset sizes divided by the sum of the reduced 
  dataset sizes.
  
Compute the total amount of compression achieved for
multiple datasets that may have possibly different numbers
of samples.

Input

full_sizes    - list or array containing sizes of
multiple full datasets
reduced_sizes - list or array containing sizes of
corresponding reduced datasets

Output

The total compression factor is defined as the sum of
full dataset sizes divided by the sum of the reduced
dataset sizes.
Compute the total amount of compression achieved for multiple datasets that may have possibly different numbers of samples . Input full_sizes - list or array containing sizes of multiple full datasets reduced_sizes - list or array containing sizes of corresponding reduced datasets Output The total compression factor is defined as the sum of full dataset sizes divided by the sum of the reduced dataset sizes .
def total_compression_from_sizes(full_sizes, reduced_sizes):
  return float(np.sum(full_sizes)) / np.sum(reduced_sizes)
def total_compression_from_sizes ( full_sizes , reduced_sizes ) : return float ( np . sum ( full_sizes ) ) / np . sum ( reduced_sizes )
Compute the total amount of compression achieved for
multiple datasets that may have possibly different numbers
of samples.
Compute the total amount of compression achieved for multiple datasets that may have possibly different numbers of samples .
"""Compute the total amount of compression achieved for
  multiple datasets that may have possibly different numbers 
  of samples.
  
  Input
  -----
    full_sizes    - list or array containing sizes of 
                    multiple full datasets
    reduced_sizes - list or array containing sizes of
                    corresponding reduced datasets
  
  Output
  ------
    The total compression factor is defined as the sum of
  full dataset sizes divided by the sum of the reduced 
  dataset sizes.
  """
full_sizes
reduced_sizes