<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error while registering model into model manager in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Error-while-registering-model-into-model-manager/m-p/758876#M1045</link>
    <description>&lt;P&gt;Hello All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to save my model build using SWAT python package into the sas model manager using the sasctl package,&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I am saving the sklearn model it is saving into model manager without any issues but when I am trying to save the model which is build in CAS using the CAS Actions it is giving me a error message which is as follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;NOTE: Added action set 'astore'.
ERROR: The table DECITION_TREE_ATTR_MODEL cannot be operated on through this interface.
ERROR: Action describe failed.
ERROR: The action stopped due to errors&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Code I am using,&lt;/P&gt;&lt;P&gt;model_sas_viya_dt = conn.CASTable("decition_tree_attr_model")&lt;/P&gt;&lt;P&gt;with Session('&lt;A href="https://servername" target="_blank"&gt;https://servername&lt;/A&gt;', username='*****', password='****'):&lt;BR /&gt;attr_dt = register_model(model_sas_viya_dt, 'Decision_Tree_SAS_VIYA', 'Comparison', force=True)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*&amp;nbsp;decition_tree_attr_model this the model built using the CAS actions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Aug 2021 19:21:41 GMT</pubDate>
    <dc:creator>anishkapoor</dc:creator>
    <dc:date>2021-08-02T19:21:41Z</dc:date>
    <item>
      <title>Error while registering model into model manager</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Error-while-registering-model-into-model-manager/m-p/758876#M1045</link>
      <description>&lt;P&gt;Hello All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to save my model build using SWAT python package into the sas model manager using the sasctl package,&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I am saving the sklearn model it is saving into model manager without any issues but when I am trying to save the model which is build in CAS using the CAS Actions it is giving me a error message which is as follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;NOTE: Added action set 'astore'.
ERROR: The table DECITION_TREE_ATTR_MODEL cannot be operated on through this interface.
ERROR: Action describe failed.
ERROR: The action stopped due to errors&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Code I am using,&lt;/P&gt;&lt;P&gt;model_sas_viya_dt = conn.CASTable("decition_tree_attr_model")&lt;/P&gt;&lt;P&gt;with Session('&lt;A href="https://servername" target="_blank"&gt;https://servername&lt;/A&gt;', username='*****', password='****'):&lt;BR /&gt;attr_dt = register_model(model_sas_viya_dt, 'Decision_Tree_SAS_VIYA', 'Comparison', force=True)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*&amp;nbsp;decition_tree_attr_model this the model built using the CAS actions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 19:21:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Error-while-registering-model-into-model-manager/m-p/758876#M1045</guid>
      <dc:creator>anishkapoor</dc:creator>
      <dc:date>2021-08-02T19:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error while registering model into model manager</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Error-while-registering-model-into-model-manager/m-p/759042#M1046</link>
      <description>&lt;P&gt;When working with SWAT, the register_model() task in sasctl requires that the input model is a CAS table that contains either Data Step code or an ASTORE.&amp;nbsp; This can be confusing, since many CAS actions also produce some sort of "model" table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Judging from your model name (Decision_Tree_SAS_VIYA) I'd guess that you're using the dtreeTrain action.&amp;nbsp; If that's the case, that action doesn't output an ASTORE table, but it can output a table containing the Data Step score code using the&amp;nbsp; &lt;A href="https://go.documentation.sas.com/doc/en/pgmcdc/8.11/casanpg/cas-decisiontree-dtreetrain.htm#PYTHON.cas-decisiontree-dtreetrain-code" target="_self"&gt;code=&lt;/A&gt; parameter.&amp;nbsp; You'll need to pass &lt;EM&gt;that&lt;/EM&gt; table as the input to register_model().&amp;nbsp; Here's a quick example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;tbl = cas.upload('iris.csv').casTable

cas.decisiontree.dtreetrain(tbl,
                            target='Species',
                            inputs=['SepalLength', 'SepalWidth', 'PetalLength', 'PetalWidth'],
                            nominals=['Species'],
                            casout=dict(name='model', replace=True),
                            code=dict(casout=dict(name='code', replace=True)))

register_model(cas.CASTable('code'), 'Example Model', 'Example Project', force=True)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 14:50:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Error-while-registering-model-into-model-manager/m-p/759042#M1046</guid>
      <dc:creator>jlwalker</dc:creator>
      <dc:date>2021-08-03T14:50:51Z</dc:date>
    </item>
  </channel>
</rss>

