|
| 1 | +--- |
| 2 | +layout: default |
| 3 | +title: Template Contents |
| 4 | +--- |
| 5 | + |
| 6 | +## Template Contents |
| 7 | +-------------------- |
| 8 | + |
| 9 | +The following is the directory structure for this template: |
| 10 | + |
| 11 | +- [**Data**](#data) This contains Data for scoring. Other data is downloaded during the solution workflow |
| 12 | +- [**R**](#model-development-in-R) This contains the R code to prepare training/testing/evaluation set, train the multi-class classifier and evaluate the model. |
| 13 | +- [**Python**](#model-development-in-python) This contains the Python code to prepare training/testing/evaluation set, train the multi-class classifier and evaluate the model. |
| 14 | +- [**SQLR**](#operationalize-in-sql-r ) Stored procedures in SQL implement the model training workflow with R code. |
| 15 | +- [**SQLPy**](#operationalize-in-sql-python ) Stored procedures in SQL implement the model training workflow with Python code. |
| 16 | +- [**Resources**](#resources-for-the-solution-packet) This directory contains other resources for the solution package. |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | +### Data |
| 22 | +---------------------------- |
| 23 | +Data for training and testing will also be downloaded and added to this directory, so more files will be present once the solution has been run once. |
| 24 | +<table class="table table-striped table-condensed"> |
| 25 | +<tr><th> File </th><th> Description</th></tr> |
| 26 | +<tr><td>News_To_Score </td><td> Text file containing new data for scoring. </td></tr> |
| 27 | +</table> |
| 28 | + |
| 29 | +### Model Development in R |
| 30 | +------------------------- |
| 31 | + |
| 32 | +<table class="table table-striped table-condensed"> |
| 33 | + <tr><th> File </th><th> Description </th></tr> |
| 34 | + <tr><td>TextClassificationR.ipynb </td><td> Create features on the fly for the training and testing set, train model, make predictions, and evaluate the model in Jupyter notebook.</td></tr> |
| 35 | + <tr><td>run_modeling_main.R </td><td> Create features on the fly for the training and testing set, train model, make predictions, and evaluate the model.</td></tr> |
| 36 | +</table> |
| 37 | + |
| 38 | +* See [For the Data Scientist](data_scientist.html) for more details about these files. |
| 39 | + |
| 40 | + |
| 41 | +### Operationalize in SQL R |
| 42 | +------------------------------------------------------- |
| 43 | +Stored procedures in SQL implement the model training workflow with R code. |
| 44 | + |
| 45 | +<table class="table table-striped table-condensed"> |
| 46 | +<tr><th> File </th><th> Description </th></tr> |
| 47 | +<tr><td>Load_Data.ps1</td><td>Loads all data for the solution if you'd like to create a second instance of the solution on the same server</td></tr> |
| 48 | +<tr><td>execute_yourself.sql</td><td>Runs through all the steps of the solution</td></tr> |
| 49 | +<tr><td>step0_create_tables.sql</td><td>Create data tables, invoked in Load_Data.ps1</td></tr> |
| 50 | +<tr><td>step1_create_features_train.sql</td><td>Create features on the fly and train model </td></tr> |
| 51 | +<tr><td>step2_score.sql</td><td>Scores data with model created in step1 </td></tr> |
| 52 | +<tr><td>step3_evaluate.sql</td><td>Evaluates model created in step1 </td></tr> |
| 53 | +</table> |
| 54 | + |
| 55 | +* See [ For the Database Analyst](dba.html) for more information. |
| 56 | +* Follow the [PowerShell Instructions](Powershell_Instructions.html) to execute the PowerShell script which creates these stored procedures. |
| 57 | + |
| 58 | +### Model Development in Python |
| 59 | +------------------------- |
| 60 | + |
| 61 | +<table class="table table-striped table-condensed"> |
| 62 | +<tr><th> File </th><th> Description </th></tr> |
| 63 | +<tr><td>TextClassificationR.ipynb </td><td> Create features on the fly for the training and testing set, train model, make predictions, and evaluate the model in Jupyter notebook.</td></tr> |
| 64 | +<tr><td>run_modeling_main.py </td><td> Create features on the fly for the training and testing set, train model, make predictions, and evaluate the model.</td></tr> |
| 65 | +</table> |
| 66 | + |
| 67 | + |
| 68 | +* See [For the Data Scientist](data_scientist.html) for more details about these files. |
| 69 | + |
| 70 | + |
| 71 | +### Operationalize in SQL Python |
| 72 | +------------------------------------------------------- |
| 73 | +Stored procedures in SQL implement the model training workflow with Python code. |
| 74 | + |
| 75 | +<table class="table table-striped table-condensed"> |
| 76 | +<tr><th> File </th><th> Description </th></tr> |
| 77 | +<tr><td>Load_Data.ps1</td><td>Loads all data for the solution if you'd like to create a second instance of the solution on the same server</td></tr> |
| 78 | +<tr><td>execute_yourself.sql</td><td>Runs through all the steps of the solution</td></tr> |
| 79 | +<tr><td>step0_create_tables.sql</td><td>Create data tables, invoked in Load_Data.ps1</td></tr> |
| 80 | +<tr><td>step1_create_features_train.sql</td><td>Create features on the fly and train model </td></tr> |
| 81 | +<tr><td>step2_score.sql</td><td>Scores data with model created in step1 </td></tr> |
| 82 | +<tr><td>step3_evaluate.sql</td><td>Evaluates model created in step1 </td></tr> |
| 83 | +</table> |
| 84 | + |
| 85 | +* See [ For the Database Analyst](dba.html) for more information. |
| 86 | +* Follow the [PowerShell Instructions](Powershell_Instructions.html) to execute the PowerShell script which creates these stored procedures. |
| 87 | + |
| 88 | +### Resources for the Solution Package |
| 89 | +------------------------------------ |
| 90 | + |
| 91 | +<table class="table table-striped table-condensed"> |
| 92 | +<tr><th> File </th><th> Description </th></tr> |
| 93 | + |
| 94 | +<tr><td> .\Resources\ActionScripts\ConfigureSQL.ps1</td><td>Configures SQL, called from SetupVM.ps1 </td></tr> |
| 95 | +<tr><td> .\Resources\ActionScripts\CreateDatabase.sql</td><td>Creates the database for this solution, called from ConfigureSQL.ps1 </td></tr> |
| 96 | +<tr><td> .\Resources\ActionScripts\CreateSQLObjectsPy.sql</td><td>Creates the tables and stored procedures for this solution, called from ConfigureSQL.ps1 </td></tr> |
| 97 | +<tr><td> .\Resources\ActionScripts\CreateSQLObjectsR.sql</td><td>Creates the tables and stored procedures for this solution, called from ConfigureSQL.ps1 </td></tr> |
| 98 | +<tr><td> .\Resources\ActionScripts\TextClassificationSetup.ps1</td><td>Configures SQL, creates and populates database</td></tr> |
| 99 | +<tr><td> .\Resources\ActionScripts\SolutionHelp.url</td><td>URL to the help page </td></tr> |
| 100 | + |
| 101 | +</table> |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | +[< Home](index.html) |
0 commit comments