January 2020
Intermediate to advanced
346 pages
9h 8m
English
To encapsulate the feature selection process for the Zoo dataset classification task, we've created a Python class called Zoo. This class is contained in the zoo.py file, which is located at https://github.com/PacktPublishing/Hands-On-Genetic-Algorithms-with-Python/blob/master/Chapter07/zoo.py.
The main parts of this class are highlighted as follows:
self.data = read_csv(self.DATASET_URL, header=None, usecols=range(1, 18))
self.X = self.data.iloc[:, 0:16]self
Read now
Unlock full access