https://raw.githubusercontent.com/ajmaradiaga/feeds/main/scmt/topics/Machine-Learning-qa.xml SAP Community - Machine Learning 2024-05-20T11:10:59.157250+00:00 python-feedgen Machine Learning Q&A in SAP Community https://community.sap.com/t5/technology-q-a/dar-get-bearer-token-json-error/qaq-p/12605189 DAR-GET bearer token - JSON error 2022-10-03T17:10:08+02:00 achowdhury https://community.sap.com/t5/user/viewprofilepage/user-id/114381 <P>Tutorials: <A href="https://developers.sap.com/tutorials/cp-aibus-dar-setup-postman.html" target="test_blank" rel="noopener noreferrer">https://developers.sap.com/tutorials/cp-aibus-dar-setup-postman.html</A> <BR />-------------------------- <BR />Hi, </P> <P>I am getting an unexpected token error while setting the bearer token. Using the api calls as-is imported from github. Has anyone faced this error ? Its the first step, i have been using DAR requests for the past 2 weeks now, never faced this issue</P> <P><IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2100879-image.png" /></P> <P>here is the body .. </P> <P><IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2100881-image.png" /></P> 2022-10-03T17:10:08+02:00 https://community.sap.com/t5/financial-management-q-a/example-regarding-classification-and-clustering-type-machine-learning-in/qaq-p/12596874 Example regarding classification and clustering Type Machine learning in SAP PaPM? Thanks in advance 2022-11-09T07:29:10+01:00 chitraparni https://community.sap.com/t5/user/viewprofilepage/user-id/981665 <P>Hi all, </P> <P>Can someone please help me with an example regarding classification and clustering Type Machine learning in SAP PaPM? </P> <P>Thanks in advance!</P> 2022-11-09T07:29:10+01:00 https://community.sap.com/t5/technology-q-a/how-can-i-use-pdf-invoice-for-retraining-the-dox-service-using-api-call-in/qaq-p/12670684 How can I use pdf invoice for retraining the DOX Service using API call in SAP IRPA 2022-11-28T11:30:13+01:00 SAPSupport https://community.sap.com/t5/user/viewprofilepage/user-id/121003 <P>Dear Team,</P> <P>We have a scenario where we are using Document Information Extraction APIs to extract data(values, confidence and coordinates) from Invoice. Now we want to use DOX API retraining with same invoice with correct information using SAP IRPA. How can we retrain the DOX using API calls in SAP IRPA with correct Invoice which is having Accurate Data?</P> <P>Please provide any blogs or any other document with proper information through which we can retrain the Document Information Extraction Service for better results in next execution. any update on this will be helpful.</P> <P>Thanks.</P> <P><BR />------------------------------------------------------------------------------------------------------------------------------------------------<BR /><STRONG>Learn more about the SAP Support user and program <A href="https://blogs.sap.com/2021/09/20/maximizing-the-power-of-sap-community-at-product-support/" target="_blank" rel="noopener noreferrer">here</A>.</STRONG></P> 2022-11-28T11:30:13+01:00 https://community.sap.com/t5/technology-q-a/how-does-artificial-intelligence-function/qaq-p/12706893 How does artificial intelligence function? 2022-12-06T07:04:52+01:00 former_member828813 https://community.sap.com/t5/user/viewprofilepage/user-id/828813 <P>Artificial intelligence (AI) is the study of how robots replicate or mimic human intelligence, so clarify briefly how it functions and enable by several technologies. </P> 2022-12-06T07:04:52+01:00 https://community.sap.com/t5/technology-q-a/no-scriptserver-available-hana-on-cloud-while-running-python-program-with/qaq-p/12677860 No Scriptserver available - hana on cloud while running python program with hana_ml library 2023-04-27T14:20:45+02:00 TrusPatel https://community.sap.com/t5/user/viewprofilepage/user-id/137142 <P>Hi All,</P> <P>I am facing below issue while trying to run a NaiveBayes ML model of hana_ml library from python program.</P> <P>Issue : No ScriptServer available. </P> <P>I am using Trial version of SAP BTP and HANA on Cloud. </P> <P>Below is my Input Table. </P> <P><IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2163593-image.png" /></P> <P>Below is ML Model .</P> <P><IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2163594-image.png" /></P> <P>...</P> <P>...</P> <P><IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2163595-image.png" /></P> <P>In above screenshot, it says "No ScriptServer available".</P> <P>Please help me how to add/enable ScriptServer for hana on cloud.</P> 2023-04-27T14:20:45+02:00 https://community.sap.com/t5/enterprise-resource-planning-q-a/how-to-directly-call-the-api-of-s4-hana-database-in-btp-process-automation/qaq-p/12687230 How to directly call the API of S4 hana database in BTP Process automation? 2023-05-18T10:50:55+02:00 SAPSupport https://community.sap.com/t5/user/viewprofilepage/user-id/121003 <P>How can BTP Build Process Automation directly call the API of S4 PERSON_NAME database and how should it be implemented? Thank you very much.</P> <P><BR />------------------------------------------------------------------------------------------------------------------------------------------------<BR /><STRONG>Learn more about the SAP Support user and program <A href="https://blogs.sap.com/2021/09/20/maximizing-the-power-of-sap-community-at-product-support/" target="_blank" rel="noopener noreferrer">here</A>.</STRONG></P> 2023-05-18T10:50:55+02:00 https://community.sap.com/t5/technology-q-a/issue-with-consuming-ml-scenario-in-sap-di/qaq-p/12790423 Issue with consuming ML Scenario in SAP DI 2023-06-09T15:50:33+02:00 bohdan_kureshov https://community.sap.com/t5/user/viewprofilepage/user-id/860702 <P>Hi,</P> <P>I want to perform complete ML scenario based on SAP Academy "Financial Fraud Detection with SAP DI Cloud" (RandomForestClassifier from sklearn package is used there). In that Academy last step is model training, and I also want to test this model with new data. So, for next steps I have used <A href="https://blogs.sap.com/2019/08/14/sap-data-intelligence-create-your-first-ml-scenario" target="_blank" rel="noopener noreferrer">SAP blog about creating ML-scenario in SAP DI</A>.</P> <P>Whenever I send request from Postman I get response ""Error message": "An error occurred: y should be a 1d array, got an array of shape () instead." It doesn't matter if I send values from Postman or use constant values in the script, the error remains the same. If I try to predict result with the same constant values in Jupiter notebook in SAP DI everything is OK.</P> <P>What do I need to do to make it work?<BR /><BR />It is the only change in script comparing with the blog mentioned before:<BR /></P> <PRE><CODE>list_data = [21, 1, 3534, 1853, 5387, 18, 1184, -2350] i_data = np.asarray(list_data) input_data = np.reshape(i_data, (1, -1)) y_pred = model.predict(input_data)<BR /></CODE></PRE> 2023-06-09T15:50:33+02:00 https://community.sap.com/t5/technology-q-a/apply-machine-learning-on-incident-data-set-in-excel-format/qaq-p/12753068 Apply Machine Learning on Incident data set in excel format 2023-06-16T19:07:16+02:00 former_member147380 https://community.sap.com/t5/user/viewprofilepage/user-id/147380 <P>Hello All,</P> <P>I have been given an Incident data set to provide insights out of the data. Also provide forecasts and predictions.</P> <P>Please provide your suggestions to proceed on this do we have any prebuild service available.</P> <P>Thanks,</P> 2023-06-16T19:07:16+02:00 https://community.sap.com/t5/technology-q-a/for-make-a-machine-learning-model-for-an%C3%A1lisis-predictive-in-costs-area/qaq-p/12811684 For make a Machine Learning Model for Análisis Predictive in Costs Area ? 2023-06-18T18:24:30+02:00 vfigueroap https://community.sap.com/t5/user/viewprofilepage/user-id/855368 <P>What is better SAP DI or SAP SAC ?</P> <P>We take costs from SAP using 10 Years Aprox.</P> <P>How we can test trial for SAP DI ? </P> 2023-06-18T18:24:30+02:00 https://community.sap.com/t5/technology-q-a/machine-learning-extension-in-sap-hana-xsa-solman/qaq-p/12813718 Machine Learning Extension in SAP HANA XSA (SOLMAN) 2023-08-11T09:10:45+02:00 SAPSupport https://community.sap.com/t5/user/viewprofilepage/user-id/121003 <P>We have checked below blog and it is mentioned about machine learning extension deployment in SAP HAAN XSA option to find anamoly detection of alerts.</P> <P>Please help in sharing details/SAP Note/Document on how to perform machine learning extension deployment in SAP PERSON_NAME XSA of solution manager DB to detect anamoly alerts.</P> <P><A href="https://blogs.sap.com/2021/01/22/machine-learning-services-for-hybrid-operations-implementation-for-sap-solution-manager-7.2-and-sap-cloud-platform-sap-hana-xsa-part-2/" rel="noopener noreferrer">https://blogs.sap.com/2021/01/22/machine-learning-services-for-hybrid-operations-implementation-for-sap-solution-manager-7.2-and-sap-cloud-platform-sap-hana-xsa-part-2/</A></P><BR />------------------------------------------------------------------------------------------------------------------------------------------------<BR /><B>Learn more about the SAP Support user and program <A href="https://blogs.sap.com/2021/09/20/maximizing-the-power-of-sap-community-at-product-support/" target="_blank" rel="noopener noreferrer">here</A>.</B> 2023-08-11T09:10:45+02:00 https://community.sap.com/t5/enterprise-resource-planning-q-a/s-4-hana-and-python-integration/qaq-p/12739246 S/4 HANA and Python Integration 2023-09-06T17:35:06+02:00 mitalk https://community.sap.com/t5/user/viewprofilepage/user-id/869866 <P>Is it allowed to create, and update tables in S/4 hana database using python scripts from outside S/4 ?</P> 2023-09-06T17:35:06+02:00 https://community.sap.com/t5/enterprise-resource-planning-q-a/automatically-calculating-tickets/qaq-p/12731117 Automatically Calculating tickets 2023-10-12T22:13:28+02:00 neonflash12 https://community.sap.com/t5/user/viewprofilepage/user-id/1196637 <P>Hi SAP communicaty,</P> <P>I want to know if SAP is able to automatically calculate weights onto loading tickets.</P> <P>for eg. i have a van with a 3.5 ton max wt limit. - the van will be weighed before it is loaded with products on. I want to use SAP to be able to automatically calculate the amount of product it can carry based on its current weighed amount - max permissable wt. limit. </P> <P>if anyone could gimme a clue on if SAP can do this and how, it would be much appreciated.</P> 2023-10-12T22:13:28+02:00 https://community.sap.com/t5/technology-q-a/how-to-set-privileges-for-hana-machine-learning-in-cloud-foundry/qaq-p/12803334 How to set privileges for HANA Machine Learning in Cloud Foundry ? 2023-10-13T08:17:49+02:00 marcus_schiffer https://community.sap.com/t5/user/viewprofilepage/user-id/195686 <P>Hi,</P> <P>We need to use HANA_ML python package in HANA database in a Cloud Foundry App in BTP. While the code works perfect when running it on a jupyter notebook, it gives unsufficient privilege errors when calling it from within a cloud foundry deployment. (e.g. the ataframe.create_dataframe_from_pandas method fails).</P> <P>We use the same code and user/password combination in both cases.</P> <P>Any help appreciated on how to set authorization or how to allow deletion of tables from the CF deployment.</P> <P>Regards</P> <P>Marcus</P> 2023-10-13T08:17:49+02:00 https://community.sap.com/t5/technology-q-a/queries-on-sap-llm-and-joule/qaq-p/12740396 Queries on SAP LLM and Joule? 2023-10-18T21:19:36+02:00 Amit_Agrawal https://community.sap.com/t5/user/viewprofilepage/user-id/59108 <P>Hello Experts,</P> <P>We are looking to enable Joule. However before doing so, we want to understand more about following question. Please share your thoughts on these questions. </P> <P>1. Which LLM model is SAP using? Is it homegrown or Other models like GPT, BERT or LLAMA?</P> <P>2. How is SAP addressing the hallucination issues?</P> <P>3. Any other terms and condition that SAP want Client to accept in order to use Gen AI/Joule? <BR />4. Is same LLM used in various modules or different LLM used ? For example for Job description one LLM, For SF chatboat another LLM model? <BR />5. What are the update cadence for the SAP LLM Product like schedule release or Adhoc release? </P> <P>6 .Where does this LLM resides and size of custom SAP LLM?</P> <P>7. Once Joule is enabled, can we turn On/Off depending on modules? </P> 2023-10-18T21:19:36+02:00 https://community.sap.com/t5/technology-q-a/how-to-use-hana-ml-python-package-in-a-hana-hdi-container-and-how-to-assign/qaq-p/12779628 How to use HANA-ML python package in a HANA HDI Container and how to assign correct priveledges? 2023-10-26T09:39:52+02:00 marcus_schiffer https://community.sap.com/t5/user/viewprofilepage/user-id/195686 <P>Hi ,</P> <P>we are struggling with the use of an HDI container for machine learning with the python hana-ml package in Python.</P> <P>In a previous question <A href="https://answers.sap.com/questions/13984833/how-to-set-privileges-for-hana-machine-learning-in.html?childToView=13984942" target="test_blank" rel="noopener noreferrer">https://answers.sap.com/questions/13984833/how-to-set-privileges-for-hana-machine-learning-in.html?childToView=13984942</A> a topic on missing priviledges was raised. The answer in the end was to use the user/pw combination from the sharedaccesskey in the service definition. However, when using this user it needs to be hard coded. How can we assign priviledges "CREATE ANY" to the user which can be read via the python service object in python ? This is a different user. Also in the documentation it is not recommended to give CREATE ANY to a user in HDI container.</P> <P>How can this issue be solved ?</P> <P>Or is machine learning with python in general not allowed / recommended in a DHDI container ? That would however significantly reduce the value of the python approach.</P> <P>Regards</P> <P>Marcus</P> 2023-10-26T09:39:52+02:00 https://community.sap.com/t5/human-capital-management-q-a/what-transport-to-use-from-sap-learning-qa-to-prod/qaq-p/12735737 What transport to use from SAP Learning QA to PROD? 2023-11-10T12:49:45+01:00 lmoras https://community.sap.com/t5/user/viewprofilepage/user-id/796851 <P>Hello,</P> <P>I hope you are fine,</P> <P>Is it possible to enter all the elements in SAP Learning QA and then take them to Productive? Is there any transportation?</P> <P>Thank you so much,</P> <P>Kind regards</P> 2023-11-10T12:49:45+01:00 https://community.sap.com/t5/enterprise-resource-planning-q-a/integrate-sap-cash-application-cloud-application-with-s-4-hana-2022/qaq-p/12820314 Integrate SAP Cash Application Cloud application with S/4 HANA 2022 2024-01-12T23:19:12+01:00 SAPSupport https://community.sap.com/t5/user/viewprofilepage/user-id/121003 <P>Hello,<BR /><BR />I want to Integrate SAP Cash Application Cloud application with S/4 HANA 2022. Please share any Standard SAP Link/SAP Note/Standard SAP Guide which contains technical details to do the same.<BR /><BR />Thanks and Regards</P><BR />------------------------------------------------------------------------------------------------------------------------------------------------<BR /><B>Learn more about the SAP Support user and program <A href="https://blogs.sap.com/2021/09/20/maximizing-the-power-of-sap-community-at-product-support/" target="_blank" rel="noopener noreferrer">here</A>.</B> 2024-01-12T23:19:12+01:00 https://community.sap.com/t5/technology-q-a/sap-hana-pal-search-table-error-quot-column-doesn-t-exist-quot/qaq-p/13584540 SAP HANA PAL Search table error: "Column doesn't exist" 2024-01-29T09:53:57.973000+01:00 karolina_dymek https://community.sap.com/t5/user/viewprofilepage/user-id/163165 <P>Hello Community!&nbsp;<span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:">😄</span></P><P>When I was working with SAP HANA Predictive Analysis Library (<U>SAP HANA 2.0 SPS05</U>), I noticed an error in the procedure <STRONG>_SYS_AFL.PAL_LINEAR_REGRESSION_PREDICT</STRONG>. I’m wondering if any of you also got it.</P><P>According to the <A href="https://help.sap.com/docs/SAP_HANA_PLATFORM/2cfbc5cf2bc14f028cfbe2a2bba60a50/eedc9094daf04419bc25f6ed097ac03b.html?version=2.0.05" target="_blank" rel="noopener noreferrer">documentation</A>&nbsp;columns of the parameter table are: „PARAM_NAME”, „INT_VALUE”, „DOUBLE_VALUE” and „STRING_VALUE”. Indeed, a table with such columns usually works and results are calculated correctly:</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="karolina_dymek_0-1706516876251.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/54525iAEA504312E9FE8F0/image-size/large?v=v2&amp;px=999" role="button" title="karolina_dymek_0-1706516876251.png" alt="karolina_dymek_0-1706516876251.png" /></span></P><P>However, <U>sometimes</U> I get an error "Column ':PARAM_NAME' does not exist":</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="karolina_dymek_1-1706516889858.png" style="width: 999px;"><img src="https://community.sap.com/t5/image/serverpage/image-id/54528i2A789C9A4D58C5BD/image-size/large?v=v2&amp;px=999" role="button" title="karolina_dymek_1-1706516889858.png" alt="karolina_dymek_1-1706516889858.png" /></span></P><P>The same error is raised when the procedure is called with <U>Python hana_ml library</U>, but the names of columns that “do not exist” are different (without colons):<BR /><BR /><FONT face="courier new,courier">ERROR:hana_ml.algorithms.pal.linear_model:(256, 'sql processing error: "KDYMEK"."(DO statement)": line 13 col 1 (at pos 1233): search table error: _SYS_AFL.AFLPAL:FORECASTWITHLR_ANY: [102] (range 1) TypeMismatch exception: Column \'PARAM_NAME\' does not exist')</FONT><BR /><FONT face="courier new,courier">Traceback (most recent call last):</FONT><BR /><FONT face="courier new,courier">File "C:\Users\kdymek\AppData\Local\Programs\Python\Python310\lib\site-packages\hana_ml\algorithms\pal\linear_model.py", line 1069, in predict<BR />self._call_pal_auto(conn,<BR />File "C:\Users\kdymek\AppData\Local\Programs\Python\Python310\lib\site-packages\hana_ml\algorithms\pal\pal_base.py", line 859, in _call_pal_auto&nbsp;<BR />self.execute_statement = call_pal_auto_with_hint(conn_context,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR />File "C:\Users\kdymek\AppData\Local\Programs\Python\Python310\lib\site-packages\hana_ml\algorithms\pal\pal_base.py", line 1365, in call_pal_auto_with_hint<BR />&nbsp;if try_exec(cur, sql, conn):<BR />File "C:\Users\kdymek\AppData\Local\Programs\Python\Python310\lib\site-packages\hana_ml\algorithms\pal\pal_base.py", line 1323, in try_exec&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR />cur.execute(sql)<BR />hdbcli.dbapi.Error: (256, 'sql processing error: "KDYMEK"."(DO statement)": line 13 col 1 (at pos 1233): <STRONG>search table error: _SYS_AFL.AFLPAL:FORECASTWITHLR_ANY: [102] (range 1) TypeMismatch exception: Column \'PARAM_NAME\' does not exist'</STRONG>)</FONT><BR /><BR /></P><P><U>Workaround</U>:</P><OL><LI>renaming columns of the parameter table: ":PARAM_NAME, ":INT_VALUE", ":DOUBLE_VALUE", ":STRING_VALUE" (with colons) – doesn’t work in Python,</LI><LI>or running the code once again as the error isn’t raised every time.</LI></OL><P>Do you know what causes this problem and how I can avoid it?</P> 2024-01-29T09:53:57.973000+01:00 https://community.sap.com/t5/technology-q-a/fedml-sap-datasphere-amp-databricks/qaq-p/13598300 FedML SAP Datasphere & Databricks 2024-02-07T17:32:08.517000+01:00 Isab3ll https://community.sap.com/t5/user/viewprofilepage/user-id/889703 <P>Hello everyone,</P><P>I am interested in applying FedML to Datasphere data in Databricks and subsequently deploying the inference results back into Datasphere, while also deploying the Machine Learning Model to SAP Kyma. Before proceeding, I have several technical questions that I would like clarified:</P><P>1) When I call an SAP Datasphere View for consumption in Databricks using SQL, does the data remain solely in SAP Datasphere, or is it also replicated into Databricks via the "select" command?</P><P>2) Is the configuration for the DBConnection between SAP Datasphere and Databricks the same as the connection setup between Databricks and SAP Kyma?</P><P>3) Can inference be performed on the deployed model within SAP Kyma?</P><P>4) Apart from Azure, Amazon, and Google, are there any other hyperscalers supported by Databricks that I might be overlooking?</P><P>I am looking forward to your responses. Thank you in advance.</P><P>Best regards from Germany.</P> 2024-02-07T17:32:08.517000+01:00 https://community.sap.com/t5/technology-q-a/re-using-pal-procedures-embeded-in-sql-script-anonymous/qaq-p/13625170/comment-id/4820412#M4820412 Re: Using PAL Procedures embeded in SQL Script (anonymous... 2024-03-01T12:55:38.026000+01:00 ChristophMorgen https://community.sap.com/t5/user/viewprofilepage/user-id/14106 <P>Hi Dirk,</P><P>based on your <A href="https://help.sap.com/docs/hana-cloud-database/sap-hana-cloud-sap-hana-database-predictive-analysis-library/multivariate-analysis-multivariate-analysis-e872de9?q=multivaria&amp;locale=en-US" target="_self" rel="noopener noreferrer">PAL procedure example</A>, here is a simple example using anonymous blocks, you don't have to declare the structure of the PAL procedure output:</P><P>&nbsp;</P><P>&nbsp;</P><pre class="lia-code-sample language-sql"><code>do begin tv_data = SELECT * FROM PAL_MULTIVARSTAT_DATA_TBL; tv_parms = SELECT * FROM #PAL_PARAMETER_TBL; CALL "_SYS_AFL"."PAL_MULTIVARIATE_ANALYSIS"(:tv_data, :tv_parms, tv_out); SELECT * FROM :tv_out; END;</code></pre><P>&nbsp;</P><P>&nbsp;</P><P>The constraint if structures require to be declared or not comes from SQL Script.</P><P>Please note, usage of the Python Machine Learning client might be helpful, as you can script in Python and capture the ad-hoc generated SQL for the PAL procedure or even utilize methods to generate procedure code / even design-time artifacts. Just as another helping note.</P><P>I hope this is helpful, otherwise please share more details.</P><P>Best regards,</P><P>Christoph</P><DIV><DIV><P>&nbsp;</P></DIV></DIV> 2024-03-01T12:55:38.026000+01:00