コード例 #1
0
 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('++ テスト終了')
コード例 #2
0
from ait_sdk.common.files.ait_manifest import AITManifest  # do not remove
from ait_sdk.develop.ait_path_helper import AITPathHelper  # do not remove
from ait_sdk.utils.logging import get_logger, log, get_log_path  # do not remove
from ait_sdk.develop.annotation import measures, resources, downloads, ait_main  # do not remove
# must use modules

# In[8]:

#########################################
# area:create manifest
# should edit
#########################################
if not is_ait_launch:
    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')