def drop(feature_name, month, fname): col_names = np.genfromtxt(paths.my_path + 'col_names{0}.csv'.format(month), delimiter=',', dtype=str) col_number = col_names.shape[1] X = Matrix( np.genfromtxt(paths.my_path + 'X{0}.csv'.format(month), delimiter=',', dtype=str), list(col_names[0, :]), ["%s" for i in xrange(col_names.shape[1])]) X.drop(feature_name)
def drop_multiple(feature_names, month): col_names = np.genfromtxt(paths.my_path + 'col_names{0}.csv'.format(month), delimiter=',', dtype=str) col_number = col_names.shape[1] X = Matrix( np.genfromtxt(paths.my_path + 'X{0}.csv'.format(month), delimiter=',', dtype=str), list(col_names[0, :]), ["%s" for i in xrange(col_names.shape[1])]) for name in feature_names: X.drop(name) X.check_point(month)