import tensorflow as tf

from planet.tools import filter_variables_lib

Objective = collections.namedtuple(
    'Objective', 'name, value, goal, include, exclude')


def set_up_logging():
    """Configure the TensorFlow logger."""
    tf.logging.set_verbosity(tf.logging.INFO)
    logging.getLogger('tensorflow').propagate = False
    logging.getLogger('tensorflow').format = '%(message)s'
    logging.basicConfig(level=logging.INFO, format='%(message)s')


def save_config(config, logdir=None):
    """Save a new configuration by name.
