Skip to content

Commit a948385

Browse files
committed
SQL MLS Reference section refactoring
1 parent 83e3cae commit a948385

21 files changed

Lines changed: 240 additions & 294 deletions

‎.openpublishing.redirection.json‎

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,21 @@
1515
"redirect_url": "/sql/advanced-analytics/tutorials/demo-data-nyctaxi-in-sql",
1616
"redirect_document_id": false
1717
},
18+
{
19+
"source_path": "docs/advanced-analytics/r/scaler-functions-for-working-with-sql-server-data.md",
20+
"redirect_url": "/sql/advanced-analytics/r/ref-r-revoscaler",
21+
"redirect_document_id": false
22+
},
1823
{
1924
"source_path": "docs/advanced-analytics/tutorials/deepdive-create-a-simple-simulation.md",
2025
"redirect_url": "/sql/advanced-analytics/tutorials/r-tutorial-custom-r-functions",
2126
"redirect_document_id": true
2227
},
28+
{
29+
"source_path": "docs/advanced-analytics/python/what-is-revoscalepy.md",
30+
"redirect_url": "/sql/advanced-analytics/python/ref-py-revoscalepy",
31+
"redirect_document_id": true
32+
},
2333
{
2434
"source_path": "docs/advanced-analytics/tutorials/walkthrough-view-and-explore-the-data.md",
2535
"redirect_url": "/sql/advanced-analytics/tutorials/demo-data-nyctaxi-in-sql",
@@ -80,9 +90,24 @@
8090
"redirect_url": "/sql/advanced-analytics/administration/monitor-sql-server-machine-learning-services-using-dynamic-management-views",
8191
"redirect_document_id": true
8292
},
93+
{
94+
"source_path": "docs/advanced-analytics/r/revoscaler-overview.md",
95+
"redirect_url": "/sql/advanced-analytics/r/ref-r-revoscaler",
96+
"redirect_document_id": true
97+
},
98+
{
99+
"source_path": "docs/advanced-analytics/r/revoscaler-overview.md",
100+
"redirect_url": "/sql/advanced-analytics/r/ref-r-revoscaler",
101+
"redirect_document_id": true
102+
},
83103
{
84104
"source_path": "docs/advanced-analytics/python/machine-learning-services-python-reference.md",
85-
"redirect_url": "/sql/advanced-analytics/r/machine-learning-services-r-reference",
105+
"redirect_url": "/sql/advanced-analytics/python/ref-py-revoscalepy",
106+
"redirect_document_id": false
107+
},
108+
{
109+
"source_path": "docs/advanced-analytics/r/machine-learning-services-r-reference.md",
110+
"redirect_url": "/sql/advanced-analytics/r/ref-r-revoscaler",
86111
"redirect_document_id": false
87112
},
88113
{
@@ -1303,9 +1328,14 @@
13031328
},
13041329
{
13051330
"source_path": "docs/advanced-analytics/r-services/using-the-microsoftml-package-with-sql-server-r-services.md",
1306-
"redirect_url": "/sql/advanced-analytics/using-the-microsoftml-package",
1331+
"redirect_url": "/sql/advanced-analytics/python/ref-py-microsoftml",
13071332
"redirect_document_id": false
13081333
},
1334+
{
1335+
"source_path": "docs/advanced-analytics/using-the-microsoftml-package.md",
1336+
"redirect_url": "/sql/advanced-analytics/python/ref-py-microsoftml",
1337+
"redirect_document_id": true
1338+
},
13091339
{
13101340
"source_path": "docs/advanced-analytics/r-services/what-s-new-in-sql-server-r-services.md",
13111341
"redirect_url": "/sql/advanced-analytics/what-s-new-in-sql-server-machine-learning-services",

‎docs/advanced-analytics/concepts/extension-python.md‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ manager: cgronlun
1313
# Python extension in SQL Server
1414
[!INCLUDE[appliesto-ss-xxxx-xxxx-xxx-md-winonly](../../includes/appliesto-ss-xxxx-xxxx-xxx-md-winonly.md)]
1515

16-
The Python extension is part of the SQL Server Machine Learning Services add-on to the relational database engine. It adds a Python execution environment, Anaconda distribution with the Python 3.5 runtime and interpreter, standard libraries and tools, and the Microsoft product libraries for Python: [revoscalepy](../python/what-is-revoscalepy.md) for analytics at scale and [microsoftml](../using-the-microsoftml-package.md) for machine learning algorithms.
16+
The Python extension is part of the SQL Server Machine Learning Services add-on to the relational database engine. It adds a Python execution environment, Anaconda distribution with the Python 3.5 runtime and interpreter, standard libraries and tools, and the Microsoft product libraries for Python: [revoscalepy](../python/ref-py-revoscalepy.md) for analytics at scale and [microsoftml](../python/ref-py-microsoftml.md) for machine learning algorithms.
1717

1818
Python integration is installed as [SQL Server Machine Learning Services](../what-is-sql-server-machine-learning.md).
1919

@@ -31,8 +31,8 @@ Python packages added by Microsoft for parallel and distributed workloads includ
3131

3232
| Library | Description |
3333
|---------|-------------|
34-
| [**revoscalepy**](https://docs.microsoft.com/machine-learning-server/python-reference/revoscalepy/revoscalepy-package) | Supports data source objects and data exploration, manipulation, transformation, and visualization. It supports creation of remote compute contexts, as well as a various scalable machine learning models, such as **rxLinMod**. It is equivalent to that of the [**RevoScaleR**](https://docs.microsoft.com/machine-learning-server/r-reference/revoscaler/revoscaler) package for Microsoft R. |
35-
| [**microsoftml**](https://docs.microsoft.com/machine-learning-server/python-reference/microsoftml/microsoftml-package) | Contains machine learning algorithms that have been optimized for speed and accuracy, as well as in-line transformations for working with text and images. For more information, see [Using the MicrosoftML package with SQL Server](https://docs.microsoft.com/sql/advanced-analytics/using-the-microsoftml-package). |
34+
| [**revoscalepy**](https://docs.microsoft.com/machine-learning-server/python-reference/revoscalepy/revoscalepy-package) | Supports data source objects and data exploration, manipulation, transformation, and visualization. It supports creation of remote compute contexts, as well as a various scalable machine learning models, such as **rxLinMod**. For more information, see [revoscalepy module with SQL Server](../python/ref-py-revoscalepy.md). |
35+
| [**microsoftml**](https://docs.microsoft.com/machine-learning-server/python-reference/microsoftml/microsoftml-package) | Contains machine learning algorithms that have been optimized for speed and accuracy, as well as in-line transformations for working with text and images. For more information, see [microsoftml module with SQL Server](../python/ref-py-microsoftml.md). |
3636

3737
Microsoftml and revoscalepy are tightly coupled; data sources used in microsoftml are defined as revoscalepy objects. Compute context limitations in revoscalepy transfer to microsoftml. Namely, all functionality is available for local operations, but switching to a remote compute context requires RxInSqlServer.
3838

@@ -71,7 +71,7 @@ After the script has been embedded in the stored procedure, any application that
7171
You can run Python scripts from a remote computer, such as a laptop, and have them execute in the context of the SQl Server computer, if these conditions are met:
7272

7373
+ You design the scripts appropriately
74-
+ The remote computer has installed the extensibility libraries that are used by Machine Learning Services. The [revoscalepy](../python/what-is-revoscalepy.md) package is required to use remote compute contexts.
74+
+ The remote computer has installed the extensibility libraries that are used by Machine Learning Services. The [revoscalepy](../python/ref-py-revoscalepy.md) package is required to use remote compute contexts.
7575

7676
The following diagram summarizes the overall workflow when scripts are sent from a remote computer.
7777

@@ -89,6 +89,7 @@ The following diagram summarizes the overall workflow when scripts are sent from
8989

9090
## See also
9191

92-
+ [What is revoscalepy](../python/what-is-revoscalepy.md)
92+
+ [revoscalepy module in SQL Server](python/ref-py-revoscalepy.md)
93+
+ [revoscalepy function reference](https://docs.microsoft.com/r-server/python-reference/revoscalepy/revoscalepy-package)
9394
+ [Extensibility framework in SQL Server](extensibility-framework.md)
9495
+ [R and machine learning extensions in SQL Server](extension-r.md)

‎docs/advanced-analytics/concepts/extension-r.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ manager: cgronlun
1313
# R extension in SQL Server
1414
[!INCLUDE[appliesto-ss-xxxx-xxxx-xxx-md-winonly](../../includes/appliesto-ss-xxxx-xxxx-xxx-md-winonly.md)]
1515

16-
The R extension is part of the SQL Server Machine Learning Services add-on to the relational database engine. It adds an R execution environment, base R distribution with standard libraries and tools, and the Microsoft R libraries: [RevoScaleR](../r/revoscaler-overview.md) for analytics at scale, [MicrosoftML](../using-the-microsoftml-package.md) for machine learning algorithms, and other libraries for accessing data or R code in SQL Server.
16+
The R extension is part of the SQL Server Machine Learning Services add-on to the relational database engine. It adds an R execution environment, base R distribution with standard libraries and tools, and the Microsoft R libraries: [RevoScaleR](../r/ref-r-revoscaler.md) for analytics at scale, [MicrosoftML](../ref-r-microsoftml.md) for machine learning algorithms, and other libraries for accessing data or R code in SQL Server.
1717

1818
R integration is available in SQL Server starting in SQL Server 2016, with [R Services](../r/sql-server-r-services.md), and continuing forward as part of [SQL Server Machine Learning Services](../what-is-sql-server-machine-learning.md).
1919

@@ -30,7 +30,7 @@ R packages added by Microsoft for parallel and distributed workloads include the
3030
| Library | Description |
3131
|---------|-------------|
3232
| [**RevoScaleR**](https://docs.microsoft.com/machine-learning-server/r-reference/revoscaler/revoscaler) | Supports data source objects and data exploration, manipulation, transformation, and visualization. It supports creation of remote compute contexts, as well as a various scalable machine learning models, such as **rxLinMod**. The APIs have been optimized to analyze data sets that are too big to fit in memory and to perform computations distributed over several cores or processors. The RevoScaleR package also supports the XDF file format for faster movement and storage of data used for analysis. The XDF format uses columnar storage, is portable, and can be used to load and then manipulate data from various sources, including text, SPSS, or an ODBC connection. |
33-
| [**MicrosoftML**](https://docs.microsoft.com/r-server/r/concept-what-is-the-microsoftml-package) | Contains machine learning algorithms that have been optimized for speed and accuracy, as well as in-line transformations for working with text and images. For more information, see [Using the MicrosoftML package with SQL Server](https://docs.microsoft.com/sql/advanced-analytics/using-the-microsoftml-package). |
33+
| [**MicrosoftML**](https://docs.microsoft.com/r-server/r/concept-what-is-the-microsoftml-package) | Contains machine learning algorithms that have been optimized for speed and accuracy, as well as in-line transformations for working with text and images. For more information, see [MicrosoftML in SQL Server](../r/ref-r-microsoft.md). |
3434

3535
## Using R in SQL Server
3636

‎docs/advanced-analytics/python/python-libraries-and-data-types.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ SQL Server 2017 Anaconda 4.2 distribution and Python 3.6.
2222

2323
A subset of the RevoScaleR functionality (rxLinMod, rxLogit, rxPredict, rxDTrees, rxBTrees, maybe a few others) is provided using Python APIs, using a new Python package **revoscalepy**. You can use this package to work with data using Pandas data frames, XDF files, or SQL data queries.
2424

25-
For more information, see [What Is revoscalepy?](what-is-revoscalepy.md).
25+
For more information, see [revoscalepy module in SQL Server](python/ref-py-revoscalepy.md) and [revoscalepy function reference](https://docs.microsoft.com/r-server/python-reference/revoscalepy/revoscalepy-package).
2626

2727
Python supports a limited number of data types in comparison to SQL Server. As a result, whenever you use data from SQL Server in Python scripts, data might be implicitly converted to a compatible data type. However, often an exact conversion cannot be performed automatically, and an error is returned.
2828

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
title: microsoftml Python package in SQL Server Machine Learning | Microsoft Docs
3+
description: Introduces the Microsoft machine learning algorithms and models for Python, as related to SQL Server machine learning workloads.
4+
ms.prod: sql
5+
ms.technology: machine-learning
6+
7+
ms.date: 12/04/2018
8+
ms.topic: conceptual
9+
author: HeidiSteen
10+
ms.author: heidist
11+
manager: cgronlun
12+
---
13+
# microsoftml Python module in SQL Server Machine Learning Services
14+
[!INCLUDE[appliesto-ss-xxxx-xxxx-xxx-md-winonly](../../includes/appliesto-ss-xxxx-xxxx-xxx-md-winonly.md)]
15+
16+
**microsoftml** is a Python35-compatible module from Microsoft that provides machine learning algorithms. It is included in several products, including SQL Server 2017 Machine Learning Services (with Python), Microsoft Machine Learning Server, the Python client libraries, and several virtual machine images on Azure.
17+
18+
The machine learning APIs were developed by Microsoft for internal machine learning applications, and have been refined over the years to support high performance on big data, using multicore processing and fast data streaming. MicrosoftML also includes numerous transformations for text and image processing.
19+
20+
There is an R-equivalent version of this package, [MicrosoftML](../r/ref-r-microsoftml.md), containing equivalent functions.
21+
22+
## Package dependencies
23+
24+
Algorithms in **microsoftml** are used with data source objects based on **revoscalepy** functions. Whenever you use **microsoftml**, you almost always have to make **revoscalepy** in the same script to load the data.
25+
26+
+ [revoscalepy module in SQL Server](python/ref-py-revoscalepy.md)
27+
+ [revoscalepy function reference](https://docs.microsoft.com/r-server/python-reference/revoscalepy/revoscalepy-package)
28+
29+
## How to call microsoftml in SQL Server
30+
31+
The **microsoftml** package for Python is installed by default, but not loaded by default when you start a Python session using the Python executables installed with SQL Server.
32+
33+
As a first step, import the **microsoftml** package, and import **revoscalepy** if you need to use remote compute contexts or related connectivity or data source objects. Then, reference the individual functions you need.
34+
35+
```Python
36+
from microsoftml.modules.logistic_regression.rx_logistic_regression import rx_logistic_regression
37+
from revoscalepy.functions.RxSummary import rx_summary
38+
from revoscalepy.etl.RxImport import rx_import_datasource
39+
```
40+
41+
## See Also
42+
43+
[Python tutorials](../tutorials/sql-server-python-tutorials.md)

docs/advanced-analytics/python/what-is-revoscalepy.md renamed to docs/advanced-analytics/python/ref-py-revoscalepy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ It is based on the **RevoScaleR** package for R, which was provided in Microsoft
2121
+ Provides Python versions of RevoScaleR machine learning algorithms for distributed or parallel processing
2222
+ Improved performance, including use of the Intel math libraries
2323

24-
MicrosoftML packages are also provided for both R and Python. For more information, see [Using MicrosoftML in SQL Server](../using-the-microsoftml-package.md)
24+
Data sources and compute contexts that you create in **revoscalepy** can also be used in machine learning algorithms. For more information about these algorithms, see [microsoftml Python module in SQL Server](ref-py-microsoftml.md).
2525

2626
## Versions and supported platforms
2727

‎docs/advanced-analytics/r/data-exploration-and-predictive-modeling-with-r.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ In addition to the proprietary R libraries included with Microsoft Machine Learn
5757

5858
For more information about these packages and how to use them, see [What is RevoScaleR](https://msdn.microsoft.com/microsoft-r/scaler-user-guide-introduction) and [Get started with RevoPemaR](https://msdn.microsoft.com/microsoft-r/pemar-getting-started).
5959

60-
+ **MicrosoftML** contains a collection of highly optimized machine learning algorithms and data transformations from the Microsoft Data Science team. Many of the algorithms are also used in Azure Machine Learning. For more information, see [Using the MicrosoftML Package](../../advanced-analytics/using-the-microsoftml-package.md).
60+
+ **MicrosoftML** contains a collection of highly optimized machine learning algorithms and data transformations from the Microsoft Data Science team. Many of the algorithms are also used in Azure Machine Learning. For more information, see [MicrosoftML in SQL Server](ref-r-microsoftml.md).
6161

6262
### R Development Tools
6363

@@ -98,4 +98,4 @@ Typically the deployment process begins with cleaning up your script to eliminat
9898

9999
[Comparison of Base R and ScaleR Functions](https://msdn.microsoft.com/microsoft-r/scaler/compare-base-r-scaler-functions)
100100

101-
[ScaleR Functions for Working with SQL Server](../../advanced-analytics/r/scaler-functions-for-working-with-sql-server-data.md)
101+
[RevoScaleR library in SQL Server](ref-r-revoscaler.md)

‎docs/advanced-analytics/r/machine-learning-services-r-reference.md‎

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)