def __init__(self, training_data_dir): self.training_data_dir = training_data_dir self.__trained_weights = None self.__x_train = None self.__x_test = None self.__y_train = None self.__y_test = None # finding the min max scalar self.__min_max_scalar = Utils.calculate_min_max_np_scalar( pd.read_csv(training_data_dir))
def __init__(self, training_data_dir): self.__max_iter = 400 self.__hidden_layer_size = 16 self.training_data_dir = training_data_dir self.__mlp_classifier = MLPClassifier() self.__x_train = None self.__x_test = None self.__y_train = None self.__y_test = None # calculating the min max scalar for normalization self.__min_max_scalar = Utils.calculate_min_max_np_scalar( pd.read_csv(training_data_dir))