@@ -0,0 +1,952 @@
+%22%22%22 Created by Max 9/23/2017 %22%22%22%0Aimport csv%0A%0A%0Aclass CustomCSVReader:%0A%0A    @staticmethod%0A    def read_file(path=None, data_type=float):%0A        %22%22%22%0A        Helper function to read in CSV data and parse the correct type.%0A        :param path: Path to file to read%0A        :param data_type: type of the data in the file%0A        :return: list of list of data points from csv file.%0A        %22%22%22%0A        if path is None:%0A            path = 'data/breast-cancer-wisconsin.data.txt'%0A        with open(path, 'r') as f:%0A            reader = csv.reader(f)%0A            csv_list = list(reader)%0A%0A        for inner_list in csv_list:%0A            new_values = %5B%5D%0A            for feature in inner_list:%0A                try:%0A                    new_feature = data_type(feature)%0A                    new_values.append(new_feature)%0A                except Exception:%0A                    new_values.append(feature)%0A%0A            inner_list%5B:%5D = new_values%0A%0A        return csv_list

Add CSV Reader code