def test_write_output(self): print('++ テスト開始') aaa = AITManifestGenerator('./') aaa.set_ait_name("set_ait_name") aaa.set_ait_description("set_ait_description") aaa.set_ait_author("set_ait_author") aaa.set_ait_email("set_ait_email") aaa.set_ait_version("0.1") aaa.set_ait_quality("set_ait_quality") aaa.set_ait_reference("set_ait_reference") aaa.add_ait_inventories('name1', 'type1', 'description1', ['csv'], 'schema1') aaa.add_ait_inventories('name2', 'type2', 'description2', ['gz', 'zip'], 'schema') aaa.add_ait_parameters('name1', 'type1', 'description1', 'default_val1') aaa.add_ait_parameters('name2', 'type2', 'description2') aaa.add_ait_measures('name1', 'type1', 'description1', 'structure1') aaa.add_ait_measures('name2', 'type2', 'description2', 'structure2') aaa.add_ait_resources('name1', 'type1', 'description1') aaa.add_ait_resources('name2', 'type2', 'description2') aaa.add_ait_downloads('name1', 'description1') aaa.add_ait_downloads('name2', 'description2') aaa.write() print('++ テスト終了')
from ait_sdk.common.files.ait_manifest_generator import AITManifestGenerator manifest_genenerator = AITManifestGenerator(current_dir) manifest_genenerator.set_ait_name('eval_mean_difference_german_aif360') manifest_genenerator.set_ait_description(''' detecting bias on credit decisions, data set is german_credit. Available protected_attribute and privileged_classes example (See german.doc for details) month(>=24.0), credit_amount(>=3000.0), investment_as_income_percentage(>=3.0), residence_since(>=3.0), age(>=25.0, defult), number_of_credits(>=2.0), people_liable_for(>=2.0) ''') manifest_genenerator.set_ait_author('AIST') manifest_genenerator.set_ait_email('') manifest_genenerator.set_ait_version('0.1') manifest_genenerator.set_ait_quality( 'https://airc.aist.go.jp/aiqm/quality/internal/Distribution_of_training_data' ) manifest_genenerator.set_ait_reference('') manifest_genenerator.add_ait_inventories( name='Data', type_='dataset', description='german credit data', format_=['csv'], schema='https://archive.ics.uci.edu/ml/datasets/') manifest_genenerator.add_ait_parameters(name='protected_attribute', type_='str', description='protected attributee',