Академический Документы
Профессиональный Документы
Культура Документы
HCIA-AI
Development Environment
Establishment
Experimental On PC Guide
Version: 1.0
1
Copyright © Huawei Technologies Co., Ltd. 2018. All rights reserved.
No part of this document may be reproduced or transmitted in any form or by any means without prior written
consent of Huawei Technologies Co., Ltd.
and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of their respective holders.
Notice
The purchased products, services and features are stipulated by the contract made between Huawei and the customer.
All or part of the products, services and features described in this document may not be within the purchase scope or
the usage scope. Unless otherwise specified in the contract, all statements, information, and recommendations in this
document are provided "AS IS" without warranties, guarantees or representations of any kind, either express or
implied.
The information in this document is subject to change without notice. Every effort has been made in the preparation
of this document to ensure accuracy of the contents, but all statements, information, and recommendations in this
document do not constitute a warranty of any kind, express or implied.
Preface
Brief Introduction
This document is an HCIA-AI certification training course, intended to trainees who are
preparing for HCIA-AI tests or readers who want to know about AI basics. After
understanding this document, you can perform simple Python basic programming, laying a
solid foundation for later AI development.
Contents
This experimental guide includes five experiments, covering AI environment setup, and is
intended to help trainees and readers easily develop capabilities of developing AI.
Experiment 1 — Introduction to the AI experiment environment: Understand the software and
framework required for establishing an HCIA-AI environment.
Experiment 2 — How to apply for and activate Huawei cloud services: Understand Huawei
Cloud service platform, register with the platform, and get familiar with related operations.
Experiment 3 — Environment establishment: Install related software modules, such as Python,
pip, NumPy, Pandas, and TensorFlow.
Experiment 4 — Test cases: Understand how to compile scripts in real time on the Elastic
Cloud Server (ECS) or download existing scripts from GitHub for testing.
Experiment 5 — AI experiment environment configuration: Understand the installation and
deployment of Gnome and anaconda.
Experimental Environment
Python Development Tool
This experiment environment is developed and compiled based on the Python 3.6.
Step 3 Check
Go to Windows Search Bar and click Anaconda Prompt. Double click the app and type :
conda --version to confirm its install.
1. Create the environment and type conda create -n HCIA_AI python=3.6 and hit enter.
2. Press Y and hit Enter. It will create a separate environment install TensorFlow.
3. Type conda activate HCIA_AI and enter Enter to go inside the environment.
4. Once you are into the environment, enter the following one by one,
Install Jupyter Notebook: type pip install jupyter (if you have already installed it, please skip
this step)
Install ipykernel: type conda instal ipykernel
5. Add new environment to Jupyter Notebook: type python -m ipykernel install --user
--name HCIA_AI
6. Install the packages: the requirements.txt should be saved in the path where command
located in. Generally, the path is:C:/Users/(you can open anaconda prompt to get it),
and then open the Anaconda Prompt and type: conda install --yes --file requirements.txt
Step 5 Check
1. Restart Anaconda Prompt. Go to Windows Search Bar and type Anaconda Prompt.
Double click the app.
2. Create a new notebook, if there is HCIA_AI kernel, it suggests that you have added the
HCIA_AI environment. And the click the HCIA_AI kernel.
Type:
import sklearn
print(sklearn__version__)
If it display the version of sklearn, it indicates you install the package successfully.