Maximo Predict
In this Exercise, you will learn how to setup a Predict score for an End of Life curve.
Important Note: In this lab exercise, we'll be creating records using XX as prefix, Please make sure you replace the word XX with your initials during the lab.
Prerequisite
- Ensure that you have completed the Maximo Monitor hands-on Lab
- Ensure that you have completed the Maximo Health hands-on lab
Note: Understanding & Availability of sensor data sets in Monitor application and asset data in Manage application is important.
Setup Manage Application
- Open Manage application.
- Go to the Assets application and filter the asset records created in Maximo Health lab exercise. e.g
XX_ASSET%
- Change the status of any two to three asset to DECOMMISSIONED e.g you can pick
XX_ASSET2
andXX_ASSET4
and change the status from Active to DECOMMISSIONED. - Make sure you populate Installation Date, Expected life in years and Estimated EOL fields populated for each asset, without this Predict models will not execute.
Setup Predict Application
- Open the Predict application from Suite Navigator.
- To create a Predict Group. Click on left menu and select -> Predict Grouping
- Click on blue Create group
+
button to create a new group. - Provide the name and description as:
XX_predictscores
- Select the query you created in Manage application e.g
xx_asset
- Click on Create button.
- Verify the group has been created and note down the value for Group Id column. Here in below screenshot it is: 1005
Setup Cloud Pak for Data
- Use the CP4D url and credential supplied to access the instance
Note: This will be supplied by instructors during the workshop
- Click on left hamburger menu and select All Projects
- Click on blue button New Project
+
to create a new project.
- Choose Create an empty Project.
- Enter project name and description as
XXPREDICTSCORE
- Click on Create button
- Select the Assets tab and click on Drop data files section and select the below files that you saved from earlier.
- Predict_Envs.json
- db2_certificate.pem
- ca_public_cert.pem
- Select Assets tab and click on New Assets
+
button
- Select Code Editor and then choose Jupyter notebook editor
- Click on From File tab and drag and drop the
PMI – End of life curve.ipynb
. You can download the notebook from here
- Click on the Create button. It will then open the
PMI – End of life curve
notebook.
- Change the
asset_group_id
variable to match the one noted from the predict application earlier. In this case it is 1005.
- Select first cell and click on the Run button. It executes each cell one after other.
Note: A cell will be done executing the code within when the
In [*]
value to the left of the cell is filled with a number likeIn [1]
.
- Verify the output for Train the model instance. It should display
"Finished execution of End of Life Curve Asset Group Pipeline."
At the end.
- Execute each cell until you reach the Register the trained model instance cell.
- The final outcome should display the message:
Registration was successful. New model ID = 20BB65D9-BA25-4173-95EC-A9E7E58DA5C7
Verify the scores
- Go to Predict Application and open the Predict group created earlier.
- Click on the Trained Instance model link.
- Choose options as below:
Active : ON Run every : 1 Day Starting At : 9 AM Date : Enter future date
text
- Click on the Save button.
- Open any asset in the list and verify that End of life curve is populated like below:
Congratulations! You have successfully completed the Maximo Predict Lab.