from error_generator.strategies.switch_value.Similar_based_active_domain.similar_based_active_domain import \
    Similar_Based_Active_Domain


class Test_Similar_Based_Active_Domain(object):
    def __init__(self, name="similar_based_active_domain"):
        self.name = name





# ------------------------------- this is test part ----------------------------------


dataset,dataframe = Read_Write.read_csv_dataset("../datasets/test.csv")

mymethod=Similar_Based_Active_Domain()


myselector=List_selected()


mygen=Error_Generator()
new_dataset=mygen.error_generator(method_gen=mymethod,selector=myselector,percentage=20,dataset=dataset,mute_column=[])


# #create instance of test
inst_test=Test_Similar_Based_Active_Domain()

Пример #2
0
from error_generator.strategies.utilities.input_output import Read_Write


class test(object):
    def __init__(self, name="test"):
        self.name = name


dataset, dataframe = Read_Write.read_csv_dataset("../datasets/test.csv")
Read_Write.write_csv_dataset("../outputs/address_{}.csv".format(test().name),
                             dataset)
print(dataset)