GetClassifierSnapshotStatistics

Returns statistics about the performance of a classifier snapshot.

Snapshots are generated automatically during training, but only when you enable them. For more information about snapshots, refer to the Media Server Administration Guide and the documentation for the action SetClassifierTrainingOption.

Before attempting to view statistics, you must generate the statistics by running the action TestClassifierSnapshot.

Type: synchronous

Parameter Description Required
classifier The name of the classifier. Yes

Example

/action=GetClassifierSnapshotStatistics&classifier=vehicles

Response

The response includes statistics for one or more snapshots.

<autnresponse>
    <action>GETCLASSIFIERSNAPSHOTSTATISTICS</action>
    <response>SUCCESS</response>
    <responsedata>
        <snapshot>
            <snapshotindex>0</snapshotindex>
            <overallstatistics>
                <f1score>0.81</f1score>
                <precision>0.87</precision>
                <recall>0.75</recall>
            </overallstatistics>
            <classstatistics>
                <class>
                    <identifier>car</identifier>
                    <f1score>0.86</f1score>
                    <precision>0.79</precision>
                    <recall>0.95</recall>
                </class>
                <class>
                    <identifier>van</identifier>
                    <f1score>0.72</f1score>
                    <precision>0.61</precision>
                    <recall>0.88</recall>
                </class>
                <class>
                    <identifier>motorcycle</identifier>
                    <f1score>0.93</f1score>
                    <precision>0.96</precision>
                    <recall>0.91</recall>
                </class>
            </classstatistics>
        </snapshot>
        <snapshot>
            <snapshotindex>1</snapshotindex>
            ...
            ...
        </snapshot>
        <snapshot>
            <snapshotindex>2</snapshotindex>
            ...
            ...
        </snapshot>
    </responsedata>
</autnresponse>