(data_inst)
return new_data_inst
align data: abnormal detection and transform data to sparse format
align data: abnormal detection and transform data to sparse format
align data : abnormal detection and transform data to sparse format
def data_alignment(data_inst):
        """
        align data: abnormal detection and transform data to sparse format
        """
        abnormal_detection.empty_table_detection(data_inst)
        abnormal_detection.empty_feature_detection(data_inst)
        schema = data_inst.schema
        new_data_inst = data_inst.mapValues(lambda row: Boosting.data_format_transform(row))
        new_data_inst.schema = schema
        return new_data_inst
def data_alignment ( data_inst ) : abnormal_detection . empty_table_detection ( data_inst ) abnormal_detection . empty_feature_detection ( data_inst ) schema = data_inst . schema new_data_inst = data_inst . mapValues ( lambda row : Boosting . data_format_transform ( row ) ) new_data_inst . schema = schema return new_data_inst