in tensorflow_datasets/structured/kddcup99/kddcup99.py [0:0]
def _info(self) -> tfds.core.DatasetInfo:
"""Returns the dataset metadata."""
return tfds.core.DatasetInfo(
builder=self,
description=_DESCRIPTION,
features=tfds.features.FeaturesDict({
'duration':
tf.int32,
'protocol_type':
tfds.features.ClassLabel(names=['icmp', 'tcp', 'udp']),
'service':
tfds.features.ClassLabel(names=[
'aol',
'auth',
'bgp',
'courier',
'csnet_ns',
'ctf',
'daytime',
'discard',
'domain',
'domain_u',
'echo',
'eco_i',
'ecr_i',
'efs',
'exec',
'finger',
'ftp',
'ftp_data',
'gopher',
'harvest',
'hostnames',
'http',
'http_2784',
'http_443',
'http_8001',
'icmp',
'imap4',
'IRC',
'iso_tsap',
'klogin',
'kshell',
'ldap',
'link',
'login',
'mtp',
'name',
'netbios_dgm',
'netbios_ns',
'netbios_ssn',
'netstat',
'nnsp',
'nntp',
'ntp_u',
'other',
'pm_dump',
'pop_2',
'pop_3',
'printer',
'private',
'red_i',
'remote_job',
'rje',
'shell',
'smtp',
'sql_net',
'ssh',
'sunrpc',
'supdup',
'systat',
'telnet',
'tftp_u',
'time',
'tim_i',
'urh_i',
'urp_i',
'uucp',
'uucp_path',
'vmnet',
'whois',
'X11',
'Z39_50',
]),
'flag':
tfds.features.ClassLabel(names=[
'OTH',
'REJ',
'RSTO',
'RSTOS0',
'RSTR',
'S0',
'S1',
'S2',
'S3',
'SF',
'SH',
]),
'src_bytes':
tf.int32,
'dst_bytes':
tf.int32,
'land':
tf.bool,
'wrong_fragment':
tf.int32,
'urgent':
tf.int32,
'hot':
tf.int32,
'num_failed_logins':
tf.int32,
'logged_in':
tf.bool,
'num_compromised':
tf.int32,
'root_shell':
tf.bool,
'su_attempted':
tf.int32,
'num_root':
tf.int32,
'num_file_creations':
tf.int32,
'num_shells':
tf.int32,
'num_access_files':
tf.int32,
'num_outbound_cmds':
tf.int32,
'is_hot_login':
tf.bool,
'is_guest_login':
tf.bool,
'count':
tf.int32,
'srv_count':
tf.int32,
'serror_rate':
tf.float32,
'srv_serror_rate':
tf.float32,
'rerror_rate':
tf.float32,
'srv_rerror_rate':
tf.float32,
'same_srv_rate':
tf.float32,
'diff_srv_rate':
tf.float32,
'srv_diff_host_rate':
tf.float32,
'dst_host_count':
tf.int32,
'dst_host_srv_count':
tf.int32,
'dst_host_same_srv_rate':
tf.float32,
'dst_host_diff_srv_rate':
tf.float32,
'dst_host_same_src_port_rate':
tf.float32,
'dst_host_srv_diff_host_rate':
tf.float32,
'dst_host_serror_rate':
tf.float32,
'dst_host_srv_serror_rate':
tf.float32,
'dst_host_rerror_rate':
tf.float32,
'dst_host_srv_rerror_rate':
tf.float32,
'label':
tfds.features.ClassLabel(names=[
'apache2',
'back',
'buffer_overflow',
'ftp_write',
'guess_passwd',
'httptunnel',
'imap',
'ipsweep',
'land',
'loadmodule',
'mailbomb',
'mscan',
'multihop',
'named',
'neptune',
'nmap',
'normal',
'perl',
'phf',
'pod',
'portsweep',
'processtable',
'ps',
'rootkit',
'saint',
'satan',
'sendmail',
'smurf',
'snmpgetattack',
'snmpguess',
'spy',
'sqlattack',
'teardrop',
'udpstorm',
'warezclient',
'warezmaster',
'worm',
'xlock',
'xsnoop',
'xterm',
]),
}),
supervised_keys=None, # Set to `None` to disable
homepage='https://kdd.ics.uci.edu/databases/kddcup99/kddcup99.html',
citation=_CITATION,
)