doc-exports/docs/modelarts/sdk-ref/modelarts_04_0197.html
Lai, Weijian 1ad28cc33e modelarts sdk-ref first version
Reviewed-by: Jiang, Beibei <beibei.jiang@t-systems.com>
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Lai, Weijian <laiweijian4@huawei.com>
Co-committed-by: Lai, Weijian <laiweijian4@huawei.com>
2023-03-01 15:24:28 +00:00

380 lines
40 KiB
HTML

<a name="modelarts_04_0197"></a><a name="modelarts_04_0197"></a>
<h1 class="topictitle1">Querying the Details About a Model</h1>
<div id="body8662426"><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p090917216148">You can use the API to query the information about a model object.</p>
<div class="section" id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_section150214167548"><h4 class="sectiontitle">Sample Code</h4><p id="modelarts_04_0197__en-us_topic_0180094083_p11870954174718">In the ModelArts notebook instance, you do not need to enter authentication parameters for session authentication. For details about session authentication of other development environments, see <a href="modelarts_04_0123.html">Session Authentication</a>.</p>
<ul id="modelarts_04_0197__en-us_topic_0180094083_ul4863411203715"><li id="modelarts_04_0197__en-us_topic_0180094083_li12863111173715">Method 1: Query the details about the model created in <a href="modelarts_04_0194.html">Importing a Model</a>.<div class="codecoloring" codetype="Python" id="modelarts_04_0197__en-us_topic_0180094083_screen33491330152515"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
<span class="normal">2</span>
<span class="normal">3</span>
<span class="normal">4</span>
<span class="normal">5</span></pre></div></td><td class="code"><div><pre><span></span><span class="kn">from</span> <span class="nn">modelarts.session</span> <span class="kn">import</span> <span class="n">Session</span>
<span class="kn">from</span> <span class="nn">modelarts.model</span> <span class="kn">import</span> <span class="n">Model</span>
<span class="n">session</span> <span class="o">=</span> <span class="n">Session</span><span class="p">()</span>
<span class="n">model_instance</span> <span class="o">=</span> <span class="n">Model</span><span class="p">(</span><span class="n">session</span><span class="p">,</span> <span class="n">model_id</span><span class="o">=</span><span class="s2">&quot;input your model_id&quot;</span><span class="p">)</span>
<span class="n">model_info</span> <span class="o">=</span> <span class="n">model_instance</span><span class="o">.</span><span class="n">get_model_info</span><span class="p">()</span>
</pre></div></td></tr></table></div>
</div>
</li><li id="modelarts_04_0197__en-us_topic_0180094083_li86076461495">Method 2: Query the details about a model object returned in <a href="modelarts_04_0196.html">Obtaining the Model Object List</a>.<div class="codecoloring" codetype="Python" id="modelarts_04_0197__en-us_topic_0180094083_screen18969163952515"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
<span class="normal">2</span>
<span class="normal">3</span>
<span class="normal">4</span>
<span class="normal">5</span>
<span class="normal">6</span></pre></div></td><td class="code"><div><pre><span></span><span class="kn">from</span> <span class="nn">modelarts.session</span> <span class="kn">import</span> <span class="n">Session</span>
<span class="kn">from</span> <span class="nn">modelarts.model</span> <span class="kn">import</span> <span class="n">Model</span>
<span class="n">session</span> <span class="o">=</span> <span class="n">Session</span><span class="p">()</span>
<span class="n">model_object_list</span> <span class="o">=</span> <span class="n">Model</span><span class="o">.</span><span class="n">get_model_object_list</span><span class="p">(</span><span class="n">session</span><span class="p">)</span>
<span class="n">model_instance</span> <span class="o">=</span> <span class="n">model_object_list</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span>
<span class="n">model_info</span> <span class="o">=</span> <span class="n">model_instance</span><span class="o">.</span><span class="n">get_model_info</span><span class="p">()</span>
</pre></div></td></tr></table></div>
</div>
</li></ul>
</div>
<div class="section" id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_section755614217593"><h4 class="sectiontitle">Parameter Description</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_table4203102214310" frame="border" border="1" rules="all"><caption><b>Table 1 </b><strong id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_b3405624124413">get_model_info</strong> response parameters</caption><thead align="left"><tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row1421016221138"><th align="left" class="cellrowborder" valign="top" width="18%" id="mcps1.3.3.2.2.4.1.1"><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p621311224318">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.4.1.2"><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p22167225319">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="62%" id="mcps1.3.3.2.2.4.1.3"><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p1121872210314">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row02203221637"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p132231522034">model_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p142253224317">String</p>
</td>
<td class="cellrowborder" valign="top" width="62%" headers="mcps1.3.3.2.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p322702219318">Model ID</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row1122982218312"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p323113221834">model_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p152331224315">String</p>
</td>
<td class="cellrowborder" valign="top" width="62%" headers="mcps1.3.3.2.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p182364221336">Model name</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row202372221934"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p92396221036">model_version</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p52417221732">String</p>
</td>
<td class="cellrowborder" valign="top" width="62%" headers="mcps1.3.3.2.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p20244222732">Model version</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row11123131813816"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p13123121810819">tenant</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p512311181815">String</p>
</td>
<td class="cellrowborder" valign="top" width="62%" headers="mcps1.3.3.2.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p412316182084">Tenant</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row57181157919"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p157184151496">project</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p47187151691">String</p>
</td>
<td class="cellrowborder" valign="top" width="62%" headers="mcps1.3.3.2.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p1925418459917">Project</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row1633131915916"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p173317191096">owner</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p133171919918">String</p>
</td>
<td class="cellrowborder" valign="top" width="62%" headers="mcps1.3.3.2.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p143311196919">User</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row1624532214313"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p122471422639">create_at</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p10249102220311">Long</p>
</td>
<td class="cellrowborder" valign="top" width="62%" headers="mcps1.3.3.2.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p132516225310">Time when a model is created, in milliseconds calculated from 1970.1.1 0:0:0 UTC</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row1025319221239"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p82554221636">source_location</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p425711222032">String</p>
</td>
<td class="cellrowborder" valign="top" width="62%" headers="mcps1.3.3.2.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p82594221533">OBS path where a model resides</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row157881922531"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p1578813224314">source_job_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p633417381334">String</p>
</td>
<td class="cellrowborder" valign="top" width="62%" headers="mcps1.3.3.2.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p3788102214310">ID of the source training job</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row516120130"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p81722019317">source_job_version</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p13348123815316">String</p>
</td>
<td class="cellrowborder" valign="top" width="62%" headers="mcps1.3.3.2.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p18176201430">Version of the source training job</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row9261152212314"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p926316225315">source_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p6266142210314">String</p>
</td>
<td class="cellrowborder" valign="top" width="62%" headers="mcps1.3.3.2.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_p103051959202517">Type of a model source</p>
<ul id="modelarts_04_0197__en-us_topic_0180094083_ul11505112272613"><li id="modelarts_04_0197__en-us_topic_0180094083_li10505172212615">If a model is deployed by an ExeML project, the value is <span class="parmname" id="modelarts_04_0197__en-us_topic_0180094083_parmname8910151011269"><b>auto</b></span>.</li><li id="modelarts_04_0197__en-us_topic_0180094083_li168811724192610">If a model is deployed by a training job or OBS model file, this parameter is left blank.</li></ul>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row826911220320"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p42728227313">model_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p62758221131">String</p>
</td>
<td class="cellrowborder" valign="top" width="62%" headers="mcps1.3.3.2.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p5299205811247">Model type. The value can be <strong>TensorFlow</strong>, <strong>MXNet</strong>, <strong>Spark_MLlib</strong>, <strong>Scikit_Learn</strong>, <strong>XGBoost</strong>, <strong>MindSpore</strong>, <strong>Image</strong>, or <strong>PyTorch</strong>.</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row1027892213310"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p2028118221932">model_size</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p0285152212318">Long</p>
</td>
<td class="cellrowborder" valign="top" width="62%" headers="mcps1.3.3.2.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p1628722218312">Model size, in bytes</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row16514557101013"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p451425731011">model_status</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p451435731011">String</p>
</td>
<td class="cellrowborder" valign="top" width="62%" headers="mcps1.3.3.2.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p851425761012">Model status. The value can be <strong id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_b4578161124217">publishing</strong>, <strong id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_b175781612428">published</strong>, or <strong id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_b1157820164212">failed</strong>.</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row2289122214311"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p1029217221331">description</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p122952220319">String</p>
</td>
<td class="cellrowborder" valign="top" width="62%" headers="mcps1.3.3.2.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p2299112219310">Model description</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row6300722633"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p1530315225310">execution_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p133052022433">String</p>
</td>
<td class="cellrowborder" valign="top" width="62%" headers="mcps1.3.3.2.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p1930716221439">OBS path for storing the execution code. The name of the execution code file is fixed to <span class="filepath" id="modelarts_04_0197__en-us_topic_0180094083_filepath0626153418268"><b>customize_service.py</b></span>.</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row13308222239"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p113102228317">schema_doc</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p2313142216316">String</p>
</td>
<td class="cellrowborder" valign="top" width="62%" headers="mcps1.3.3.2.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p11316922536">Download address of the model schema file</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row0317142213317"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p132017221239">image_address</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p1832342214311">String</p>
</td>
<td class="cellrowborder" valign="top" width="62%" headers="mcps1.3.3.2.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p2326122213312">Execution image path of a model. Before the image is built, that is, before a model has been published as a service, this parameter is left blank.</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row83274226310"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p43291422438">input_params</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p6332112219315"><strong>params</strong> array</p>
</td>
<td class="cellrowborder" valign="top" width="62%" headers="mcps1.3.3.2.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p0334132218318">Collection of input parameters of a model. By default, this parameter is left blank.</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row633582220317"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p1233819221230">output_params</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p53407221633"><strong>params</strong> array</p>
</td>
<td class="cellrowborder" valign="top" width="62%" headers="mcps1.3.3.2.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p113428221536">Collection of output parameters of a model. By default, this parameter is left blank.</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row434313227317"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p53469221237">dependencies</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p234972217316"><strong>dependency</strong> array</p>
</td>
<td class="cellrowborder" valign="top" width="62%" headers="mcps1.3.3.2.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p1535192213313">Package required for running the code and model</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row4678142041015"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p17678112018104">model_metrics</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p12678152011018">String</p>
</td>
<td class="cellrowborder" valign="top" width="62%" headers="mcps1.3.3.2.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p319494120269">Model evaluation parameter. This parameter is returned only when <strong id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_b1141655917713">source_job_id</strong> and <strong id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_b76569417815">source_job_version</strong> are assigned values and the corresponding training job has evaluation results.</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row541294715106"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.2.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p1441216475107">apis</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p241217476106">String</p>
</td>
<td class="cellrowborder" valign="top" width="62%" headers="mcps1.3.3.2.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p17412124771017">All <strong id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_b3162618097">apis</strong> input and output parameters of the model</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_table194602271747" frame="border" border="1" rules="all"><caption><b>Table 2 </b><strong>params</strong> parameters</caption><thead align="left"><tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row846692713420"><th align="left" class="cellrowborder" valign="top" width="18%" id="mcps1.3.3.3.2.4.1.1"><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p14703279412">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="19.97%" id="mcps1.3.3.3.2.4.1.2"><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p1547314273416">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="62.029999999999994%" id="mcps1.3.3.3.2.4.1.3"><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p34750271411">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row13467289113"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.3.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p2046817812113">url</p>
</td>
<td class="cellrowborder" valign="top" width="19.97%" headers="mcps1.3.3.3.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p14682821117">String</p>
</td>
<td class="cellrowborder" valign="top" width="62.029999999999994%" headers="mcps1.3.3.3.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p144682810113">API URL</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row1947792717413"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.3.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p848011273416">param_name</p>
</td>
<td class="cellrowborder" valign="top" width="19.97%" headers="mcps1.3.3.3.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p1248217271545">String</p>
</td>
<td class="cellrowborder" valign="top" width="62.029999999999994%" headers="mcps1.3.3.3.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p1748414273414">Parameter name, which contains a maximum of 64 characters</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row124853276411"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.3.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p448711278413">param_type</p>
</td>
<td class="cellrowborder" valign="top" width="19.97%" headers="mcps1.3.3.3.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p2491152719415">String</p>
</td>
<td class="cellrowborder" valign="top" width="62.029999999999994%" headers="mcps1.3.3.3.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p249416271643">Parameter type. The value can be <strong id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_b1551415612452">int</strong>, <strong id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_b11514956154512">string</strong>, <strong id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_b4514155674519">float</strong>, <strong id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_b551445618458">timestamp</strong>, <strong id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_b19514175694512">date</strong>, or <strong id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_b13521756174519">file</strong>.</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row749515271844"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.3.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p7497102711413">min</p>
</td>
<td class="cellrowborder" valign="top" width="19.97%" headers="mcps1.3.3.3.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p45026271843">Number</p>
</td>
<td class="cellrowborder" valign="top" width="62.029999999999994%" headers="mcps1.3.3.3.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p165042027242">When <strong id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_b10851205764611">param_type</strong> is set to <strong id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_b1126583114478">int</strong> or <strong id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_b18351123474710">float</strong> and <strong id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_b3851105714462">min</strong> is set during model creation, the value will be returned. By default, this parameter is left blank.</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row175053273416"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.3.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p1450717271341">max</p>
</td>
<td class="cellrowborder" valign="top" width="19.97%" headers="mcps1.3.3.3.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p125113278418">Number</p>
</td>
<td class="cellrowborder" valign="top" width="62.029999999999994%" headers="mcps1.3.3.3.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p9514162716416">When <strong id="modelarts_04_0197__en-us_topic_0180094083_b720812432193">param_type</strong> is set to <strong id="modelarts_04_0197__en-us_topic_0180094083_b121017436199">int</strong> or <strong id="modelarts_04_0197__en-us_topic_0180094083_b421004316199">float</strong> and <strong id="modelarts_04_0197__en-us_topic_0180094083_b921144316193">max</strong> is set during model creation, the value will be returned. By default, this parameter is left blank.</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row10515142714412"><td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.3.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p19518627247">param_desc</p>
</td>
<td class="cellrowborder" valign="top" width="19.97%" headers="mcps1.3.3.3.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p15206272416">String</p>
</td>
<td class="cellrowborder" valign="top" width="62.029999999999994%" headers="mcps1.3.3.3.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p1852392711413">Parameter description, which contains a maximum of 100 characters. By default, this parameter is left blank.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_table133086211152" frame="border" border="1" rules="all"><caption><b>Table 3 </b><strong>dependency</strong> parameters</caption><thead align="left"><tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row1631512214518"><th align="left" class="cellrowborder" valign="top" width="17.82178217821782%" id="mcps1.3.3.4.2.4.1.1"><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p1032082116511">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.792079207920793%" id="mcps1.3.3.4.2.4.1.2"><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p163231211658">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="61.386138613861384%" id="mcps1.3.3.4.2.4.1.3"><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p63258211555">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row1732811210518"><td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.4.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p13331521452">installer</p>
</td>
<td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.4.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p5333121858">String</p>
</td>
<td class="cellrowborder" valign="top" width="61.386138613861384%" headers="mcps1.3.3.4.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p233522110513">Installer</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row2336421152"><td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.4.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p53398211513">packages</p>
</td>
<td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.4.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p234242117515"><strong>package</strong> array</p>
</td>
<td class="cellrowborder" valign="top" width="61.386138613861384%" headers="mcps1.3.3.4.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p234415211150">Collection of dependency packages</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_table129439454518" frame="border" border="1" rules="all"><caption><b>Table 4 </b><strong>package</strong> parameters</caption><thead align="left"><tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row17949945555"><th align="left" class="cellrowborder" valign="top" width="17.82178217821782%" id="mcps1.3.3.5.2.4.1.1"><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p14953845856">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.792079207920793%" id="mcps1.3.3.5.2.4.1.2"><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p18955104517513">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="61.386138613861384%" id="mcps1.3.3.5.2.4.1.3"><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p1395717451658">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row18960745852"><td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.5.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p7962174511511">package_name</p>
</td>
<td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.5.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p169654456518">String</p>
</td>
<td class="cellrowborder" valign="top" width="61.386138613861384%" headers="mcps1.3.3.5.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p179683451659">Name of a dependency package</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row1396919451258"><td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.5.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p1297213451256">package_version</p>
</td>
<td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.5.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p49744451650">String</p>
</td>
<td class="cellrowborder" valign="top" width="61.386138613861384%" headers="mcps1.3.3.5.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p797620451655">Version of a dependency package</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row697724520520"><td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.5.2.4.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p1497920452511">restraint</p>
</td>
<td class="cellrowborder" valign="top" width="20.792079207920793%" headers="mcps1.3.3.5.2.4.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p098224513515">String</p>
</td>
<td class="cellrowborder" valign="top" width="61.386138613861384%" headers="mcps1.3.3.5.2.4.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_p617354720273">Version filtering criterion. The options are as follows:</p>
<ul id="modelarts_04_0197__en-us_topic_0180094083_ul2314445209"><li id="modelarts_04_0197__en-us_topic_0180094083_li633324672019"><strong id="modelarts_04_0197__en-us_topic_0180094083_b1431919015010">EXACT</strong>: the specified version</li><li id="modelarts_04_0197__en-us_topic_0180094083_li3754648112010"><strong id="modelarts_04_0197__en-us_topic_0180094083_b83981116015">ATLEAST</strong>: not earlier than the specified version</li><li id="modelarts_04_0197__en-us_topic_0180094083_li43119447202"><strong id="modelarts_04_0197__en-us_topic_0180094083_b13912319019">ATMOST</strong>: not later than the specified version</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_table21391499440" frame="border" border="1" rules="all"><caption><b>Table 5 </b><strong>metric</strong> parameters</caption><thead align="left"><tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row214912918445"><th align="left" class="cellrowborder" valign="top" width="16.48%" id="mcps1.3.3.6.2.5.1.1"><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p715315910447">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="9.55%" id="mcps1.3.3.6.2.5.1.2"><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p62535864102449">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.119999999999997%" id="mcps1.3.3.6.2.5.1.3"><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p91561699443">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="56.85%" id="mcps1.3.3.6.2.5.1.4"><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p2015914974412">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row101611294440"><td class="cellrowborder" valign="top" width="16.48%" headers="mcps1.3.3.6.2.5.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p1221489123210">f1</p>
</td>
<td class="cellrowborder" valign="top" width="9.55%" headers="mcps1.3.3.6.2.5.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p0670115216415">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="17.119999999999997%" headers="mcps1.3.3.6.2.5.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p12221698320">Double</p>
</td>
<td class="cellrowborder" valign="top" width="56.85%" headers="mcps1.3.3.6.2.5.1.4 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p822615993218">Mean</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row117249164419"><td class="cellrowborder" valign="top" width="16.48%" headers="mcps1.3.3.6.2.5.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p6230094327">recall</p>
</td>
<td class="cellrowborder" valign="top" width="9.55%" headers="mcps1.3.3.6.2.5.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p45580306513">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="17.119999999999997%" headers="mcps1.3.3.6.2.5.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p6475913341">Double</p>
</td>
<td class="cellrowborder" valign="top" width="56.85%" headers="mcps1.3.3.6.2.5.1.4 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p1124014915329">Recall</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row1418015910443"><td class="cellrowborder" valign="top" width="16.48%" headers="mcps1.3.3.6.2.5.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p52461192328">precision</p>
</td>
<td class="cellrowborder" valign="top" width="9.55%" headers="mcps1.3.3.6.2.5.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p826813120518">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="17.119999999999997%" headers="mcps1.3.3.6.2.5.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p1910135919343">Double</p>
</td>
<td class="cellrowborder" valign="top" width="56.85%" headers="mcps1.3.3.6.2.5.1.4 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p625311910321">Precision</p>
</td>
</tr>
<tr id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_row18852810184520"><td class="cellrowborder" valign="top" width="16.48%" headers="mcps1.3.3.6.2.5.1.1 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p176131011153414">accuracy</p>
</td>
<td class="cellrowborder" valign="top" width="9.55%" headers="mcps1.3.3.6.2.5.1.2 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p68751431855">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="17.119999999999997%" headers="mcps1.3.3.6.2.5.1.3 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p915125919348">Double</p>
</td>
<td class="cellrowborder" valign="top" width="56.85%" headers="mcps1.3.3.6.2.5.1.4 "><p id="modelarts_04_0197__en-us_topic_0180094083_en-us_topic_0160574221_p961351113341">Accuracy</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="modelarts_04_0193.html">Model Management</a></div>
</div>
</div>