def test_create_requirements(self):
     print('++ テスト開始')
     aaa = AITRequirementsGenerator()
     aaa.add_package("aaa", "1.11.111")
     aaa.add_package("bbb", '2.22.222')
     aaa.add_package("ccc", '3.33.333')
     aaa.add_package("ddd")
     aaa.add_package("eee")
     # あらかじめ"F:/test/develop"と"F:/test/deploy/container/repository"を作成しておく
     aaa.create_requirements("F:/test/develop")
     print('++ テスト終了')
Exemple #2
0
#########################################
if not is_ait_launch:
    requirements_generator.add_package('pandas', '1.1.1')
    requirements_generator.add_package('seaborn', '0.10.1')
    requirements_generator.add_package('tensorflow', '2.4.0')
    requirements_generator.add_package('aif360', '0.3.0')

# In[5]:

#########################################
# area:create requirements and pip install
# do not edit
#########################################
if not is_ait_launch:
    requirements_generator.add_package(f'./{ait_sdk_name}')
    requirements_path = requirements_generator.create_requirements(current_dir)

    get_ipython().system('pip install -r $requirements_path ')

# In[6]:

#########################################
# area:import
# should edit
#########################################

# import if you need modules cell
import pandas as pd
import seaborn as sn
import matplotlib.pyplot as plt
from pathlib import Path