From 221d028824258e92d1edb1cc2b2714e6fa1615b8 Mon Sep 17 00:00:00 2001 From: Jethro Gaglione Date: Wed, 14 Feb 2024 20:20:34 -0600 Subject: [PATCH] Inclyde snippets test --- docs/{ => modelScripts}/train_pytorch_lightning.py | 0 docs/{ => modelScripts}/train_pytorch_modelParallel.py | 0 docs/{ => modelScripts}/train_pytorch_multigpu.py | 0 .../{ => modelScripts}/train_pytorch_multigpu_mlflowbyhand.py | 0 docs/{ => modelScripts}/train_pytorch_singlegpu.py | 0 docs/{ => modelScripts}/train_sklearn.py | 0 docs/{ => modelScripts}/train_tensorflow_keras.py | 0 docs/tutorials/single.md | 4 +--- 8 files changed, 1 insertion(+), 3 deletions(-) rename docs/{ => modelScripts}/train_pytorch_lightning.py (100%) rename docs/{ => modelScripts}/train_pytorch_modelParallel.py (100%) rename docs/{ => modelScripts}/train_pytorch_multigpu.py (100%) rename docs/{ => modelScripts}/train_pytorch_multigpu_mlflowbyhand.py (100%) rename docs/{ => modelScripts}/train_pytorch_singlegpu.py (100%) rename docs/{ => modelScripts}/train_sklearn.py (100%) rename docs/{ => modelScripts}/train_tensorflow_keras.py (100%) diff --git a/docs/train_pytorch_lightning.py b/docs/modelScripts/train_pytorch_lightning.py similarity index 100% rename from docs/train_pytorch_lightning.py rename to docs/modelScripts/train_pytorch_lightning.py diff --git a/docs/train_pytorch_modelParallel.py b/docs/modelScripts/train_pytorch_modelParallel.py similarity index 100% rename from docs/train_pytorch_modelParallel.py rename to docs/modelScripts/train_pytorch_modelParallel.py diff --git a/docs/train_pytorch_multigpu.py b/docs/modelScripts/train_pytorch_multigpu.py similarity index 100% rename from docs/train_pytorch_multigpu.py rename to docs/modelScripts/train_pytorch_multigpu.py diff --git a/docs/train_pytorch_multigpu_mlflowbyhand.py b/docs/modelScripts/train_pytorch_multigpu_mlflowbyhand.py similarity index 100% rename from docs/train_pytorch_multigpu_mlflowbyhand.py rename to docs/modelScripts/train_pytorch_multigpu_mlflowbyhand.py diff --git a/docs/train_pytorch_singlegpu.py b/docs/modelScripts/train_pytorch_singlegpu.py similarity index 100% rename from docs/train_pytorch_singlegpu.py rename to docs/modelScripts/train_pytorch_singlegpu.py diff --git a/docs/train_sklearn.py b/docs/modelScripts/train_sklearn.py similarity index 100% rename from docs/train_sklearn.py rename to docs/modelScripts/train_sklearn.py diff --git a/docs/train_tensorflow_keras.py b/docs/modelScripts/train_tensorflow_keras.py similarity index 100% rename from docs/train_tensorflow_keras.py rename to docs/modelScripts/train_tensorflow_keras.py diff --git a/docs/tutorials/single.md b/docs/tutorials/single.md index 047bef4..35acb78 100644 --- a/docs/tutorials/single.md +++ b/docs/tutorials/single.md @@ -12,9 +12,7 @@ It is recommended to use MLflow's functionality in your training workflow, which First, an environment must be created with the appropriate Python version and necessary packages/libraries (please see the [quickstart](../quickstart.html) page for guidance on setting one up). We can then import the libraries necessary to train our model: ```python -from sklearn.model_selection import train_test_split -from sklearn.datasets import load_diabetes -from sklearn.ensemble import RandomForestRegressor +{% include ../_includes/includesnippet filename='../modelScripts/testfile.py' starttext='from sklearn.model_selection' endtext='import RandomForestRegressor' %} ``` We import MLflow and activate the _autolog_ feature: