Skip to content

sample-ml-classification-prediction

Pipeline: sample-ml-classification-prediction

## load dataset
@c:new-block

    --> @dm:recall
            name = 'incidents-for-analysis'
    --> @dm:save
            name = 'temp-tickets'

## training
--> @c:new-block

    --> @dm:recall
            name = 'temp-tickets'
    ## 70% of data for training
    --> @dm:sample
            n = 0.7
    --> @cfxsml:classify-train
            nlp_columns = 'Priority,Summary' &
            target_column = 'Resolution Code' &
            model_name = 'predict-resolution-code' &
            category_columns = 'Priority'

## prediction
--> @c:new-block

    --> @dm:recall
            name = 'temp-tickets'
    ## 30% of data for testing or prediction
    --> @dm:sample
            n = 0.3
    --> @cfxsml:classify-predict
            nlp_columns = 'Priority,Summary'  &
            model_name = 'predict-resolution-code' &
            category_columns = 'Priority'
    --> @dm:map
            from="predicted_label" &
            to="Predicted Resolution Code"
    --> @dm:selectcolumns
            include = 'Ticket.*|Priority|Summary|Resolution Code|Predicted Resolution Code'


Extensions used in this Pipeline

Source Name Extension Type
cfxsml cfxai_classification


Artifacts used in this Pipeline

Artifact Type Artifact Name Access
dataset incidents-for-analysis read


Bots used in this Pipeline

@c:new-block @dm:recall @dm:save @dm:sample @cfxsml:classify-train @cfxsml:classify-predict @dm:map @dm:selectcolumns