· Jul 4, 2023 2m read


A simple data analysis example created in IntegratedML and Dashboard

Based on InterSystems' Integrated ML technology and Dashboard, automatically generate relevant predictions and BI pages based on uploaded CSV files. The front and back ends are completed in Vue and Iris, allowing users to generate their desired data prediction and analysis pages with simple operations and make decisions based on them.

# ZPM installation

zpm:USER>install IntegratedMLandDashboardSample

# Process Deployment 

Use or create a new namespace

Import code into the corresponding namespace

Execute in Terminal:

Do ##class(customizemashinelerningandaanalysis.Util.Tool).Deployment()

The front-end is the dist folder under the Vue folder. Before using it, open dist static config.js and modify the IP and port to be used by the back-end server. Then you need to modify the test of iframeUrl to "Analysis"+the namespace used by the backend, such as "AnalysisUSER"

Then start the front-end file (you can place the dist folder in tomcat to start using)

The access address is:

Ip: port/dist



Taking women.csv as an example

1. Select a CSV file to upload, and the CSV file name and data column name must not contain other symbols such as spaces

2. Fill in the column name that needs to be predicted, such as “height”

3. Click OK to wait for the interface to return

After successfully returning, refresh the current page and click on the secondary option under the Model List. The newly generated project will appear


① After filling in other values, clicking ② OK will generate a predicted value at ③

④ The embedded iris dashboard displays some data previously imported into CSV

# Other CSV displays




# Unit Testing

  Set ^UnitTestRoot=your modules dir +"\src"+namespace+"\integratedmlanddashboardsample\src" (such C:\InterSystems\HealthConnect\mgr\.modules\USER\integratedmlanddashboardsample\src)

  do ##class(%UnitTest.Manager).RunTest("UnitTests")

# Tips

Due to the embedded dashboard of iris on the page, if you encounter cross domain issues that cannot be displayed properly, you can visit iris to view the chart


Discussion (2)3
Log in or sign up to continue