Expand the README into a usage guide#6
Open
ssam18 wants to merge 1 commit into
Open
Conversation
The README now documents the full BinaryClassifier and BinaryClassifierSet API behavior, the model requirements, and the metadata schema. It also walks through training a model with the example script, running the bundled example and tests, and configuring SnortML in Snort 3. This gives new users the getting started material requested in issue snort3#1.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This expands the README into a proper usage guide to help with the documentation requests in #1. It documents the BinaryClassifier and BinaryClassifierSet API in detail, including the zero left padding of short inputs, truncation of long inputs, the lowercase metadata flag, and how a classifier set picks a model by input size. The model requirements that build verifies are spelled out, so it is clear that any TFLite model with a single float32 input tensor and a single element float32 output tensor will work. There is a walkthrough of the train.py example showing how to go from labeled data to a model file, plus instructions for running the bundled classifier example against the test models. The Snort 3 integration section shows the snort_ml_engine and snort_ml Lua configuration along with the builtin alert GID and SID. A further reading section links the Talos announcement, the training video, and the official Snort docs. All build, test, and example commands in the doc were run and verified on a fresh build.