Skip to content

Commit

Permalink
Merge pull request #8 from dagardner-nv/david_mdd_dfp-example-docs
Browse files Browse the repository at this point in the history
Draft: DFP Example documentation
  • Loading branch information
mdemoret-nv authored Sep 17, 2022
2 parents 4c83dff + 04d9bf1 commit 9c17607
Show file tree
Hide file tree
Showing 17 changed files with 371 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
docs/source/developer_guide/guides/img/** filter=lfs diff=lfs merge=lfs -text
examples/data/** filter=lfs diff=lfs merge=lfs -text
morpheus/_version.py export-subst
tests/mock_triton_server/payloads/** filter=lfs diff=lfs merge=lfs -text
Expand Down
6 changes: 6 additions & 0 deletions ci/scripts/jenkins/docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ source ${WORKSPACE}/ci/scripts/jenkins/common.sh
restore_conda_env
pip install ${MORPHEUS_ROOT}/build/wheel

gpuci_logger "Pulling LFS assets"
cd ${MORPHEUS_ROOT}

git lfs install
${MORPHEUS_ROOT}/scripts/fetch_data.py fetch docs

cd ${MORPHEUS_ROOT}/docs
gpuci_logger "Installing Documentation dependencies"
pip install -r requirement.txt
Expand Down
1 change: 1 addition & 0 deletions docs/source/developer_guide/guides.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ Morpheus includes several stages to choose from when building a custom pipeline,
guides/2_real_world_phishing
guides/3_simple_cpp_stage
guides/4_source_cpp_stage
guides/5_digital_fingerprinting
337 changes: 337 additions & 0 deletions docs/source/developer_guide/guides/5_digital_fingerprinting.md

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions docs/source/developer_guide/guides/img/dfp_input_config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions docs/source/developer_guide/guides/img/dfp_output_config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions docs/source/developer_guide/guides/img/dfp_runtime_env.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/source/developer_guide/guides/img/sink_deps.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def accepted_types(self) -> typing.Tuple:

def _extract_events(self, message: MultiAEMessage):

# Return the message for the next stage
z_scores = message.get_meta("mean_abs_z")

above_threshold_df = message.get_meta()[z_scores > self._z_score_threshold]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,6 @@ def run_pipeline(train_users,
true_values=["success", "SUCCESS"],
false_values=["denied", "DENIED", "FRAUD"]),
ColumnInfo(name="reason", dtype=str),
# CustomColumn(name="user.groups", dtype=str, process_column_fn=partial(column_listjoin,
# col_name="user.groups"))
]

source_schema = DataFrameInputSchema(json_columns=["access_device", "application", "auth_device", "user"],
Expand Down
3 changes: 1 addition & 2 deletions examples/digital_fingerprinting/starter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ Usage: morpheus run pipeline-ae [OPTIONS] COMMAND1 [ARGS]... [COMMAND2
4. The following stages must come after an inference stage: `add-class`, `filter`, `gen-viz`
Options:
--columns_file FILE [default: ./morpheus/data/columns_ae_cloudtrail.txt
]
--columns_file FILE [default: ./morpheus/data/columns_ae_cloudtrail.txt]
--labels_file FILE Specifies a file to read labels from in
order to convert class IDs into labels. A
label file is a simple text file where each
Expand Down
1 change: 1 addition & 0 deletions scripts/fetch_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

LFS_DATASETS = {
'all': '**',
'docs': 'docs/**',
'examples': 'examples/**',
'models': 'models/**',
'tests': 'tests/**',
Expand Down

0 comments on commit 9c17607

Please sign in to comment.