You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a948385
Browse filesBrowse the repository at this point in the historyBrowse files
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.
17
17
18
18
Python integration is installed as [SQL Server Machine Learning Services](../what-is-sql-server-machine-learning.md).
19
19
@@ -31,8 +31,8 @@ Python packages added by Microsoft for parallel and distributed workloads includ
31
31
32
32
| Library | Description |
33
33
|---------|-------------|
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). |
36
36
37
37
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.
38
38
@@ -71,7 +71,7 @@ After the script has been embedded in the stored procedure, any application that
71
71
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:
72
72
73
73
+ 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.
75
75
76
76
The following diagram summarizes the overall workflow when scripts are sent from a remote computer.
77
77
@@ -89,6 +89,7 @@ The following diagram summarizes the overall workflow when scripts are sent from
89
89
90
90
## See also
91
91
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)
93
94
+[Extensibility framework in SQL Server](extensibility-framework.md)
94
95
+[R and machine learning extensions in SQL Server](extension-r.md)
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.
17
17
18
18
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).
19
19
@@ -30,7 +30,7 @@ R packages added by Microsoft for parallel and distributed workloads include the
30
30
| Library | Description |
31
31
|---------|-------------|
32
32
|[**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). |
Copy file name to clipboardExpand all lines: docs/advanced-analytics/python/python-libraries-and-data-types.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ SQL Server 2017 Anaconda 4.2 distribution and Python 3.6.
22
22
23
23
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.
24
24
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).
26
26
27
27
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.
**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
Copy file name to clipboardExpand all lines: docs/advanced-analytics/python/ref-py-revoscalepy.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ It is based on the **RevoScaleR** package for R, which was provided in Microsoft
21
21
+ Provides Python versions of RevoScaleR machine learning algorithms for distributed or parallel processing
22
22
+ Improved performance, including use of the Intel math libraries
23
23
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).
Copy file name to clipboardExpand all lines: docs/advanced-analytics/r/data-exploration-and-predictive-modeling-with-r.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ In addition to the proprietary R libraries included with Microsoft Machine Learn
57
57
58
58
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).
59
59
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).
61
61
62
62
### R Development Tools
63
63
@@ -98,4 +98,4 @@ Typically the deployment process begins with cleaning up your script to eliminat
98
98
99
99
[Comparison of Base R and ScaleR Functions](https://msdn.microsoft.com/microsoft-r/scaler/compare-base-r-scaler-functions)
100
100
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)
0 commit comments