Introduction
The whole clustering and archiving process of AscendKMeans massive data can be divided into three steps in sequence, which are initializing resource initialization, executing K-Means clustering, and destroying resources.
- Use AscendKMeans APIs by following the archiving process to prevent unexpected problems or risks.
- When using AscendKMeans APIs, ensure that the steps for resource initialization and destruction are correctly performed to prevent problems such as incorrect resource destruction and memory leakage.
- If a non-APP_ERR_OK value is returned when you use AscendKMeans APIs, rectify this fault by using the AscendKMeans resource destruction function to prevent unexpected problems or risks during subsequent operations. (AscendKMeans APIs create objects in singleton mode. Therefore, you need to destroy the existing object before creating a new one.)
Parent topic: AscendKMeans API