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('++ テスト終了')
Exemplo n.º 2
0
if not is_ait_launch:
    from ait_sdk.common.files.ait_requirements_generator import AITRequirementsGenerator
    requirements_generator = AITRequirementsGenerator()

# In[4]:

#########################################
# area:create requirements and pip install
# should edit
#########################################
#########################################
# area:create requirements and pip install
# should edit
#########################################
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 ')
Exemplo n.º 3
0
#########################################
# area:create requirements and pip install
# do not edit
#########################################
if not is_ait_launch:
    from ait_sdk.common.files.ait_requirements_generator import AITRequirementsGenerator
    requirements_generator = AITRequirementsGenerator()

# In[4]:

#########################################
# area:create requirements and pip install
# should edit
#########################################
if not is_ait_launch:
    requirements_generator.add_package('bleach', '1.5.0')
    requirements_generator.add_package('cycler', '0.10.0')
    requirements_generator.add_package('decorator', '4.1.2')
    requirements_generator.add_package('h5py', '2.9.0')
    requirements_generator.add_package('html5lib', '0.9999999')
    requirements_generator.add_package('Keras', '2.0.8')
    requirements_generator.add_package('Markdown', '2.6.9')
    requirements_generator.add_package('matplotlib', '2.0.2')
    requirements_generator.add_package('networkx', '1.11')
    requirements_generator.add_package('numpy', '1.13.3')
    requirements_generator.add_package('olefile', '0.44')
    requirements_generator.add_package('pandas', '0.20.3')
    requirements_generator.add_package('Pillow', '4.3.0')
    requirements_generator.add_package('protobuf', '3.6.1')
    requirements_generator.add_package('pyparsing', '2.2.0')
    requirements_generator.add_package('python-dateutil', '2.6.1')
Exemplo n.º 4
0
#########################################
# area:create requirements and pip install
# do not edit
#########################################
if not is_ait_launch:
    from ait_sdk.common.files.ait_requirements_generator import AITRequirementsGenerator
    requirements_generator = AITRequirementsGenerator()

# In[4]:

#########################################
# area:create requirements and pip install
# should edit
#########################################
if not is_ait_launch:
    requirements_generator.add_package('pandas')
    requirements_generator.add_package('seaborn')

# 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]:
Exemplo n.º 5
0
    shutil.copyfile(f'../lib/{ait_sdk_name}', f'{current_dir}/{ait_sdk_name}')

    # install ait-sdk
    get_ipython().system('pip install --upgrade pip')
    get_ipython().system('pip install --force-reinstall ./$ait_sdk_name')

# In[ ]:

#########################################
# area:create requirements and pip install
# should edit
#########################################
if not is_ait_launch:
    from ait_sdk.common.files.ait_requirements_generator import AITRequirementsGenerator
    requirements_generator = AITRequirementsGenerator()
    requirements_generator.add_package('pandas', '1.1.0')
    requirements_generator.add_package('seaborn', '0.10.1')
    requirements_generator.add_package('matplotlib', '3.3.0')
    requirements_generator.add_package('tensorflow', '2.4.0')
    requirements_generator.add_package('numpy', '1.19.2')
    requirements_generator.add_package('tensorflow-estimator', '2.4.0')
    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[ ]:

#########################################
# area:import
# should edit
Exemplo n.º 6
0
    shutil.copyfile(f'../lib/{ait_sdk_name}', f'{current_dir}/{ait_sdk_name}')

    # install ait-sdk
    get_ipython().system('pip install --upgrade pip')
    get_ipython().system('pip install --force-reinstall ./$ait_sdk_name')

# In[3]:

#########################################
# area:create requirements and pip install
# should edit
#########################################
if not is_ait_launch:
    from ait_sdk.common.files.ait_requirements_generator import AITRequirementsGenerator
    requirements_generator = AITRequirementsGenerator()
    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[4]:

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

# import if you need modules cell
import subprocess
import csv
from pathlib import Path
Exemplo n.º 7
0
#########################################
# area:create requirements and pip install
# do not edit
#########################################
if not is_ait_launch:
    from ait_sdk.common.files.ait_requirements_generator import AITRequirementsGenerator
    requirements_generator = AITRequirementsGenerator()

# In[4]:

#########################################
# area:create requirements and pip install
# should edit
#########################################
if not is_ait_launch:
    requirements_generator.add_package('Cython')
    requirements_generator.add_package('docopt')
    requirements_generator.add_package('clint')
    requirements_generator.add_package('crontab')
    requirements_generator.add_package('tablib')
    requirements_generator.add_package('matplotlib')
    requirements_generator.add_package('Pillow')
    requirements_generator.add_package('pycocotools')
    requirements_generator.add_package('tensorflow', '2.4.0')
    requirements_generator.add_package('lxml')
    requirements_generator.add_package('tf_slim')
    requirements_generator.add_package('pandas')
    requirements_generator.add_package('numpy')
    requirements_generator.add_package('ipython')
    requirements_generator.add_package('zipp', '3.1.0')
Exemplo n.º 8
0
#########################################
if not is_ait_launch:
    from ait_sdk.common.files.ait_requirements_generator import AITRequirementsGenerator
    requirements_generator = AITRequirementsGenerator()


# In[4]:


#########################################
# area:create requirements and pip install
# should edit
#########################################
if not is_ait_launch:
    requirements_generator._package_list = []
    requirements_generator.add_package('matplotlib', '3.3.0')
    requirements_generator.add_package('numpy', '1.19.2')
    requirements_generator.add_package('pandas', '1.1.0')
    requirements_generator.add_package('scikit-learn', '0.23.2')
    requirements_generator.add_package('scipy', '1.4.1')
    requirements_generator.add_package('seaborn', '0.10.1')
    requirements_generator.add_package('sklearn', '0.0')
    requirements_generator.add_package('tensorflow', '2.4.0')
    requirements_generator.add_package('tensorflow-estimator', '2.4.0')


# In[5]:


#########################################
# area:create requirements and pip install
Exemplo n.º 9
0
#########################################
# area:create requirements and pip install
# do not edit
#########################################
if not is_ait_launch:
    from ait_sdk.common.files.ait_requirements_generator import AITRequirementsGenerator
    requirements_generator = AITRequirementsGenerator()

# In[4]:

#########################################
# area:create requirements and pip install
# should edit
#########################################
if not is_ait_launch:
    requirements_generator.add_package('sklearn')
    requirements_generator.add_package('numpy')
    requirements_generator.add_package('seaborn')
    requirements_generator.add_package('opencv-python')

# 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 ')