def __init__(self, result_string, active_mode=False):
        """Set 'active_mode' to True to parse results in
        an Active Learning context."""
        self.raw_output = result_string
        result_list = []
        # TODO: Something more robust than whitespace splitting
        #   to handle modes like --audit ?
        for token in result_string.split():
            try:
                result = float(token)
                result_list.append(result)
            except __HOLE__:
                # Ignore tokens that can't be made into floats (like tags)
                logging.debug("Ignoring non-float token {}".format(token))
        self.value_list = result_list
        if result_list:
            self.prediction = result_list[0]
        else:
            self.prediction = None
        if active_mode:
            if len(result_list) > 1:
                self.importance = result_list[1]
            else:
                self.importance = 0.
dataset/ETHPy150Open mokelly/wabbit_wappa/wabbit_wappa/__init__.py/VWResult.__init__