forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lai, Weijian <laiweijian4@huawei.com> Co-committed-by: Lai, Weijian <laiweijian4@huawei.com>
22 lines
4.6 KiB
HTML
22 lines
4.6 KiB
HTML
<a name="EN-US_TOPIC_0000002043177248"></a><a name="EN-US_TOPIC_0000002043177248"></a>
|
|
|
|
<h1 class="topictitle1">Introduction to Algorithm Preparation</h1>
|
|
<div id="body0000001211151935"><p id="EN-US_TOPIC_0000002043177248__en-us_topic_0000001179968649_p1125382116289">Machine learning explores general rules from limited volume of data and uses these rules to predict unknown data. To obtain more accurate prediction results, select a proper algorithm to train your model. ModelArts provides a large number of algorithm samples for different scenarios. This section describes algorithm sources and learning modes.</p>
|
|
<div class="section" id="EN-US_TOPIC_0000002043177248__en-us_topic_0000001179968649_section055214315317"><h4 class="sectiontitle">Algorithm Sources</h4><p id="EN-US_TOPIC_0000002043177248__en-us_topic_0000001179968649_p682418133319">You can use one of the following methods to build a ModelArts model:</p>
|
|
<ul id="EN-US_TOPIC_0000002043177248__en-us_topic_0000001179968649_ul166201365720"><li id="EN-US_TOPIC_0000002043177248__en-us_topic_0000001179968649_li45059111699">Using a preset image<p id="EN-US_TOPIC_0000002043177248__en-us_topic_0000001179968649_p676971510919"><a name="EN-US_TOPIC_0000002043177248__en-us_topic_0000001179968649_li45059111699"></a><a name="en-us_topic_0000001179968649_li45059111699"></a>To use a custom algorithm, use a framework built in ModelArts. ModelArts supports most mainstream AI engines. For details, see <a href="develop-modelarts-0007.html">Built-in Training Engines</a>. These built-in engines pre-load some extra Python packages, such as NumPy. You can also use the <strong id="EN-US_TOPIC_0000002043177248__en-us_topic_0000001179968649_b1267574712510">requirements.txt</strong> file in the code directory to install dependency packages. For details about how to create a training job using a preset image, see <a href="develop-modelarts-0006.html">Using a Preset Image (Custom Script)</a>.</p>
|
|
</li><li id="EN-US_TOPIC_0000002043177248__en-us_topic_0000001179968649_li8692103612719">Using a custom image (For details about the new version of training, see <a href="docker-modelarts_0017.html">Using a Custom Image to Train a Model</a>.)<p id="EN-US_TOPIC_0000002043177248__en-us_topic_0000001179968649_p1295165841913">The subscribed algorithms and built-in frameworks can be used in most training scenarios. In certain scenarios, ModelArts allows you to create custom images to train models. Custom images can be used to train models in ModelArts only after they are uploaded to the Software Repository for Container (SWR). Customizing an image requires a deep understanding of containers. Use this method only if the subscribed algorithms and custom scripts cannot meet your requirements.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000002043177248__en-us_topic_0000001179968649_section171614324511"><h4 class="sectiontitle">Algorithm Learning Modes</h4><p id="EN-US_TOPIC_0000002043177248__en-us_topic_0000001179968649_p17770121913320">ModelArts allows you to train models in different modes as required.</p>
|
|
<ul id="EN-US_TOPIC_0000002043177248__en-us_topic_0000001179968649_ul1157110315326"><li id="EN-US_TOPIC_0000002043177248__en-us_topic_0000001179968649_li957110318329">Offline learning<p id="EN-US_TOPIC_0000002043177248__en-us_topic_0000001179968649_p1882583517421"><a name="EN-US_TOPIC_0000002043177248__en-us_topic_0000001179968649_li957110318329"></a><a name="en-us_topic_0000001179968649_li957110318329"></a>Offline learning is the most fundamental mode for model training. In this mode, all data required for training must be provided at a time, and optimizing the objective function stops when the training is complete. The advantage of this mode is that the trained models are stable, facilitating model verification and evaluation. However, it is time-consuming and low in storage space utilization.</p>
|
|
</li><li id="EN-US_TOPIC_0000002043177248__en-us_topic_0000001179968649_li84261515113220">Incremental learning<p id="EN-US_TOPIC_0000002043177248__en-us_topic_0000001179968649_p637833483614"><a name="EN-US_TOPIC_0000002043177248__en-us_topic_0000001179968649_li84261515113220"></a><a name="en-us_topic_0000001179968649_li84261515113220"></a>Incremental learning is a continuous learning process. Compared with offline learning, it does not need to store all training data at a time, which alleviates the problem of limited storage resources. In addition, it saves a large amount of compute power and time, and reduces economic costs in retraining.</p>
|
|
</li></ul>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="develop-modelarts-0003.html">Preparing Algorithms</a></div>
|
|
</div>
|
|
</div>
|
|
|