Rate This Document
Findability
Accuracy
Completeness
Readability

fault_predict

Prototype

def fault_predict(data_path, model_path)

Description

Fault prediction interface. It is used to predict faults based on an existing model.

Working Principle

Reads data and an existing model to predict data and output results.

When using this API, ensure that the model read by this interface is the output of the fault_train or fault_update interface. Users need to ensure the security of the output to prevent attackers from triggering arbitrary code execution during model deserialization by constructing malicious data.

Parameters

Parameter

Description

Input/Output

data_path

Path to the data file to be predicted

Input

model_path

Path to the existing model file

Input

Return Value

Parameter

Description

alert_sn_list

Returns the list of SNs of faulty drives after the prediction is done.

Figure 1 shows an example of returned information.

Figure 1 Returned information