nmeta2dpae_datasets/iscx_2012_ddos_fold_1.py
def _read_data(self, files):
        """Read data from ISCX dataset XML files.

        :param files: Name of the file to read the data from.
        """
        for fname in files:
            self._logging.info("Reading data from: %s", fname)
            data_etree = None
            try:
                data_etree = etree.parse(fname)
            except IOError as err:
                self._logging.critical("Unable to open file: %s. "
                                       "Error: %s", fname, err)
                sys.exit(1)
            tmp_data, tmp_labels = self._etree_to_dict(data_etree)
            self._raw_data.extend(tmp_data)
            self._raw_labels.extend(tmp_labels)
            self._logging.debug("Loading complete for file: %s", fname)
Read data from ISCX dataset XML files.

        :param files: Name of the file to read the data from.
        
Read data from ISCX dataset XML files.
Read data from ISCX dataset XML files .
def _read_data(self, files):
        for fname in files:
            self._logging.info("Reading data from: %s", fname)
            data_etree = None
            try:
                data_etree = etree.parse(fname)
            except IOError as err:
                self._logging.critical("Unable to open file: %s. "
                                       "Error: %s", fname, err)
                sys.exit(1)
            tmp_data, tmp_labels = self._etree_to_dict(data_etree)
            self._raw_data.extend(tmp_data)
            self._raw_labels.extend(tmp_labels)
            self._logging.debug("Loading complete for file: %s", fname)
def _read_data ( self , files ) : for fname in files : self . _logging . info ( "Reading data from: %s" , fname ) data_etree = None try : data_etree = etree . parse ( fname ) except IOError as err : self . _logging . critical ( "Unable to open file: %s. " "Error: %s" , fname , err ) sys . exit ( 1 ) tmp_data , tmp_labels = self . _etree_to_dict ( data_etree ) self . _raw_data . extend ( tmp_data ) self . _raw_labels . extend ( tmp_labels ) self . _logging . debug ( "Loading complete for file: %s" , fname )
Read data from ISCX dataset XML files.
Read data from ISCX dataset XML files .
"""Read data from ISCX dataset XML files.

        :param files: Name of the file to read the data from.
        """
self
files
Name of the file to read the data from.
Name of the file to read the data from .