Skip to content

Commit 222b70b

Browse files
committed
Links: SQL - dmx
1 parent 79a544f commit 222b70b

40 files changed

Lines changed: 96 additions & 136 deletions

docs/dmx/alter-mining-structure-dmx.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ USING <algorithm> [(<parameter list>)]
5050
The name of a data mining algorithm, as defined by the provider.
5151

5252
> [!NOTE]
53-
> A list of the algorithms supported by the current provider can be retrieved by using [DMSCHEMA_MINING_SERVICES Rowset](https://docs.microsoft.com/previous-versions/sql/sql-server-2012/ms126251(v=sql.110)). To view the algorithms supported in the current instance of [!INCLUDE[ssASnoversion](../includes/ssasnoversion-md.md)], see [Data Mining Properties](https://docs.microsoft.com/analysis-services/server-properties/data-mining-properties).
53+
> A list of the algorithms supported by the current provider can be retrieved by using [DMSCHEMA_MINING_SERVICES Rowset](/previous-versions/sql/sql-server-2012/ms126251(v=sql.110)). To view the algorithms supported in the current instance of [!INCLUDE[ssASnoversion](../includes/ssasnoversion-md.md)], see [Data Mining Properties](/analysis-services/server-properties/data-mining-properties).
5454
5555
*parameter list*
5656
Optional. A comma-separated list of provider-defined parameters for the algorithm.
@@ -91,7 +91,7 @@ USING <algorithm> [(<parameter list>)]
9191
```
9292

9393
### Column Name and Alias
94-
The column name that you use in the column definition list must be the name of the column as it is used in the mining structure. However, you can optionally define an alias to represent the structure column in the mining model. You can also create multiple column definitions for the same structure column, and assign a different alias and prediction usage to each copy of the column. By default, the structure column name is used if you do not define an alias. For more information, see [Create an Alias for a Model Column](https://docs.microsoft.com/analysis-services/data-mining/create-an-alias-for-a-model-column).
94+
The column name that you use in the column definition list must be the name of the column as it is used in the mining structure. However, you can optionally define an alias to represent the structure column in the mining model. You can also create multiple column definitions for the same structure column, and assign a different alias and prediction usage to each copy of the column. By default, the structure column name is used if you do not define an alias. For more information, see [Create an Alias for a Model Column](/analysis-services/data-mining/create-an-alias-for-a-model-column).
9595

9696
For nested table columns, you specify the name of the nested table, specify the data type as **TABLE**, and then provide the list of nested columns to include in the model, enclosed in parentheses.
9797

@@ -123,15 +123,15 @@ USING <algorithm> [(<parameter list>)]
123123

124124
Filter criteria expressions are simplified DMX predicates, similar to a WHERE clause. Filter expressions are restricted to formulas that use basic mathematical operators, scalars, and column names. The exception is the EXISTS operator; it evaluates to true if at least one row is returned for the subquery. Predicates can be combined by using the common logical operators: AND, OR, and NOT.
125125

126-
For more information about filters used with mining models, see [Filters for Mining Models &#40;Analysis Services - Data Mining&#41;](https://docs.microsoft.com/analysis-services/data-mining/filters-for-mining-models-analysis-services-data-mining).
126+
For more information about filters used with mining models, see [Filters for Mining Models &#40;Analysis Services - Data Mining&#41;](/analysis-services/data-mining/filters-for-mining-models-analysis-services-data-mining).
127127

128128
> [!NOTE]
129129
> Columns in a filter must be mining structure columns. You cannot create a filter on a model column or an aliased column.
130130
131-
For more information about DMX operators and syntax, see [Mining Model Columns](https://docs.microsoft.com/analysis-services/data-mining/mining-model-columns).
131+
For more information about DMX operators and syntax, see [Mining Model Columns](/analysis-services/data-mining/mining-model-columns).
132132

133133
## Parameter Definition List
134-
You can adjust the performance and functionality of a model by adding algorithm parameters to the parameter list. The parameters that you can use depend on the algorithm that you specify in the USING clause. For a list of parameters that are associated with each algorithm, see [Data Mining Algorithms &#40;Analysis Services - Data Mining&#41;](https://docs.microsoft.com/analysis-services/data-mining/data-mining-algorithms-analysis-services-data-mining).
134+
You can adjust the performance and functionality of a model by adding algorithm parameters to the parameter list. The parameters that you can use depend on the algorithm that you specify in the USING clause. For a list of parameters that are associated with each algorithm, see [Data Mining Algorithms &#40;Analysis Services - Data Mining&#41;](/analysis-services/data-mining/data-mining-algorithms-analysis-services-data-mining).
135135

136136
The syntax of the parameter list is as follows:
137137

@@ -199,4 +199,3 @@ USING Microsoft_Decision Trees
199199
[Data Mining Extensions &#40;DMX&#41; Data Manipulation Statements](../dmx/dmx-statements-data-manipulation.md)
200200
[Data Mining Extensions &#40;DMX&#41; Statement Reference](../dmx/data-mining-extensions-dmx-statements.md)
201201

202-

docs/dmx/bottomcount-dmx.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ BottomCount(<table expression>, <rank expression>, <count>)
3232
The value that is supplied by the \<rank expression> argument determines the increasing order of rank for the rows that are supplied in the \<table expression> argument, and the number of bottom-most rows that is specified in the \<count> argument is returned.
3333

3434
## Examples
35-
The following example creates a prediction query against the Association model that you build by using the [Basic Data Mining Tutorial](https://msdn.microsoft.com/library/6602edb6-d160-43fb-83c8-9df5dddfeb9c).
35+
The following example creates a prediction query against the Association model that you build by using the [Basic Data Mining Tutorial](/previous-versions/sql/sql-server-2016/ms167167(v=sql.130)).
3636

3737
To understand how BottomCount works, it might be helpful to first execute a prediction query that returns only the nested table.
3838

@@ -45,7 +45,7 @@ SELECT (SELECT 'Women''s Mountain Shorts' as [Model]) AS [v Assoc Seq Line Items
4545
```
4646

4747
> [!NOTE]
48-
> In this example, the value supplied as input contains a single quotation mark, and therefore must be escaped by prefacing it with another single quotation mark. If you are not sure of the syntax for inserting an escape character, you can use the Prediction Query Builder to create the query. When you select the value from the dropdown list, the required escape character is inserted for you. For more information, see [Create a Singleton Query in the Data Mining Designer](https://docs.microsoft.com/analysis-services/data-mining/create-a-singleton-query-in-the-data-mining-designer).
48+
> In this example, the value supplied as input contains a single quotation mark, and therefore must be escaped by prefacing it with another single quotation mark. If you are not sure of the syntax for inserting an escape character, you can use the Prediction Query Builder to create the query. When you select the value from the dropdown list, the required escape character is inserted for you. For more information, see [Create a Singleton Query in the Data Mining Designer](/analysis-services/data-mining/create-a-singleton-query-in-the-data-mining-designer).
4949
5050
Example results:
5151

@@ -100,4 +100,3 @@ NATURAL PREDICTION JOIN
100100
[BottomSum &#40;DMX&#41;](../dmx/bottomsum-dmx.md)
101101
[TopCount &#40;DMX&#41;](../dmx/topcount-dmx.md)
102102

103-

docs/dmx/bottompercent-dmx.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ BottomPercent(<table expression>, <rank expression>, <percent>)
3939
The **BottomPercent** function returns the bottom-most rows in increasing order of rank. The rank is based on the evaluated value of the \<rank expression> argument for each row, such that the sum of the \<rank expression> values is at least the given percentage that is specified by the \<percent> argument. **BottomPercent** returns the smallest number of elements possible while still meeting the specified percent value.
4040

4141
## Examples
42-
The following example creates a prediction query against the Association model that you built in the [Basic Data Mining Tutorial](https://msdn.microsoft.com/library/6602edb6-d160-43fb-83c8-9df5dddfeb9c).
42+
The following example creates a prediction query against the Association model that you built in the [Basic Data Mining Tutorial](/previous-versions/sql/sql-server-2016/ms167167(v=sql.130)).
4343

4444
To understand how BottomPercent works, it may be helpful to first execute a prediction query that returns only the nested table.
4545

@@ -52,7 +52,7 @@ SELECT (SELECT 'Women''s Mountain Shorts' as [Model]) AS [v Assoc Seq Line Items
5252
```
5353

5454
> [!NOTE]
55-
> In this example, the value supplied as input contains a single quotation mark, and therefore must be escaped by prefacing it with another single quotation mark. If you are not sure of the syntax for inserting an escape character, you can use the Prediction Query Builder to create the query. When you select the value from the dropdown list, the required escape character is inserted for you. For more information, see [Create a Singleton Query in the Data Mining Designer](https://docs.microsoft.com/analysis-services/data-mining/create-a-singleton-query-in-the-data-mining-designer).
55+
> In this example, the value supplied as input contains a single quotation mark, and therefore must be escaped by prefacing it with another single quotation mark. If you are not sure of the syntax for inserting an escape character, you can use the Prediction Query Builder to create the query. When you select the value from the dropdown list, the required escape character is inserted for you. For more information, see [Create a Singleton Query in the Data Mining Designer](/analysis-services/data-mining/create-a-singleton-query-in-the-data-mining-designer).
5656
5757
Example results:
5858

@@ -111,4 +111,3 @@ NATURAL PREDICTION JOIN
111111
[Data Mining Extensions &#40;DMX&#41; Function Reference](../dmx/data-mining-extensions-dmx-function-reference.md)
112112
[Functions &#40;DMX&#41;](../dmx/functions-dmx.md)
113113

114-

docs/dmx/bottomsum-dmx.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ BottomSum(<table expression>, <rank expression>, <sum>)
3232
The **BottomSum** function returns the bottom-most rows in increasing order of rank. The rank is based on the evaluated value of the \<rank expression> argument for each row, such that the sum of the \<rank expression> values is at least the given total that is specified by the \<sum> argument. **BottomSum** returns the smallest number of elements possible while still meeting the specified sum value.
3333

3434
## Examples
35-
The following example creates a prediction query against the Association model that you build by using the [Basic Data Mining Tutorial](https://msdn.microsoft.com/library/6602edb6-d160-43fb-83c8-9df5dddfeb9c).
35+
The following example creates a prediction query against the Association model that you build by using the [Basic Data Mining Tutorial](/previous-versions/sql/sql-server-2016/ms167167(v=sql.130)).
3636

3737
To understand how BottomSum works, it might be helpful to first execute a prediction query that returns only the nested table.
3838

@@ -45,7 +45,7 @@ SELECT (SELECT 'Women''s Mountain Shorts' as [Model]) AS [v Assoc Seq Line Items
4545
```
4646

4747
> [!NOTE]
48-
> In this example, the value supplied as input contains a single quotation mark, and therefore must be escaped by prefacing it with another single quotation mark. If you are not sure of the syntax for inserting an escape character, you can use the Prediction Query Builder to create the query. When you select the value from the dropdown list, the required escape character is inserted for you. For more information, see [Create a Singleton Query in the Data Mining Designer](https://docs.microsoft.com/analysis-services/data-mining/create-a-singleton-query-in-the-data-mining-designer).
48+
> In this example, the value supplied as input contains a single quotation mark, and therefore must be escaped by prefacing it with another single quotation mark. If you are not sure of the syntax for inserting an escape character, you can use the Prediction Query Builder to create the query. When you select the value from the dropdown list, the required escape character is inserted for you. For more information, see [Create a Singleton Query in the Data Mining Designer](/analysis-services/data-mining/create-a-singleton-query-in-the-data-mining-designer).
4949
5050
Example results:
5151

@@ -97,4 +97,3 @@ NATURAL PREDICTION JOIN
9797
[General Prediction Functions &#40;DMX&#41;](../dmx/general-prediction-functions-dmx.md)
9898
[BottomPercent &#40;DMX&#41;](../dmx/bottompercent-dmx.md)
9999

100-

docs/dmx/clusterdistance-dmx.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ClusterDistance([<ClusterID expression>])
3131
## Remarks
3232
The **ClusterDistance** function returns the distance between the input case and the cluster that has the highest probability for that input case.
3333

34-
In case of K-Means clustering, since any case can belong to only one cluster, with a membership weight of 1.0, the cluster distance is always 0. However, in K-Means, each cluster is assumed to have a centroid. You can obtain the value of the centroid by querying or browsing the NODE_DISTRIBUTION nested table in the mining model content. For more information, see [Mining Model Content for Clustering Models &#40;Analysis Services - Data Mining&#41;](https://docs.microsoft.com/analysis-services/data-mining/mining-model-content-for-clustering-models-analysis-services-data-mining).
34+
In case of K-Means clustering, since any case can belong to only one cluster, with a membership weight of 1.0, the cluster distance is always 0. However, in K-Means, each cluster is assumed to have a centroid. You can obtain the value of the centroid by querying or browsing the NODE_DISTRIBUTION nested table in the mining model content. For more information, see [Mining Model Content for Clustering Models &#40;Analysis Services - Data Mining&#41;](/analysis-services/data-mining/mining-model-content-for-clustering-models-analysis-services-data-mining).
3535

3636
In the case of the default EM clustering method, all the points inside the cluster are considered equally likely; therefore, by design there is no centroid for the cluster. The value of **ClusterDistance** between a particular case and a particular cluster *N* is calculated as follows:
3737

@@ -123,6 +123,5 @@ NATURAL PREDICTION JOIN
123123
[Cluster &#40;DMX&#41;](../dmx/cluster-dmx.md)
124124
[Data Mining Extensions &#40;DMX&#41; Function Reference](../dmx/data-mining-extensions-dmx-function-reference.md)
125125
[Functions &#40;DMX&#41;](../dmx/functions-dmx.md)
126-
[Mining Model Content for Clustering Models &#40;Analysis Services - Data Mining&#41;](https://docs.microsoft.com/analysis-services/data-mining/mining-model-content-for-clustering-models-analysis-services-data-mining)
127-
126+
[Mining Model Content for Clustering Models &#40;Analysis Services - Data Mining&#41;](/analysis-services/data-mining/mining-model-content-for-clustering-models-analysis-services-data-mining)
128127

docs/dmx/clusterprobability-dmx.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ ClusterProbability([<Node_Caption>])
3535
SELECT NODE_CAPTION FROM <model>.CONTENT
3636
```
3737

38-
For more information about using this syntax, see [SELECT FROM &#60;model&#62;.CONTENT &#40;DMX&#41;](../dmx/select-from-model-content-dmx.md). For more information about the mining model content schema rowset, see [DMSCHEMA_MINING_MODEL_CONTENT Rowset](https://docs.microsoft.com/previous-versions/sql/sql-server-2012/ms126267(v=sql.110)).
38+
For more information about using this syntax, see [SELECT FROM &#60;model&#62;.CONTENT &#40;DMX&#41;](../dmx/select-from-model-content-dmx.md). For more information about the mining model content schema rowset, see [DMSCHEMA_MINING_MODEL_CONTENT Rowset](/previous-versions/sql/sql-server-2012/ms126267(v=sql.110)).
3939

4040
If a \<node caption> is not specified, the function returns the probability that the input cases belong to the most likely cluster. Use the **Cluster** function to return the most likely cluster.
4141

@@ -61,4 +61,3 @@ NATURAL PREDICTION JOIN
6161
[Functions &#40;DMX&#41;](../dmx/functions-dmx.md)
6262
[General Prediction Functions &#40;DMX&#41;](../dmx/general-prediction-functions-dmx.md)
6363

64-

docs/dmx/content-types-dmx.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ author: minewiskan
1717

1818
Each algorithm supports specific content types. For example, the [!INCLUDE[msCoName](../includes/msconame-md.md)] Naive Bayes algorithm cannot use continuous columns. To use a continuous column in a [!INCLUDE[msCoName](../includes/msconame-md.md)] Naive Bayes model, you must discretize the data in the column. Some algorithms require certain content types in order to function correctly. For example, the [!INCLUDE[msCoName](../includes/msconame-md.md)] Time Series algorithm requires a key time column to identify the time over which the data was collected.
1919

20-
For a complete description of the content types that [!INCLUDE[ssASnoversion](../includes/ssasnoversion-md.md)] supports, see [Content Types &#40;Data Mining&#41;](https://docs.microsoft.com/analysis-services/data-mining/content-types-data-mining).
20+
For a complete description of the content types that [!INCLUDE[ssASnoversion](../includes/ssasnoversion-md.md)] supports, see [Content Types &#40;Data Mining&#41;](/analysis-services/data-mining/content-types-data-mining).
2121

2222
## See Also
23-
[Data Mining Algorithms &#40;Analysis Services - Data Mining&#41;](https://docs.microsoft.com/analysis-services/data-mining/data-mining-algorithms-analysis-services-data-mining)
23+
[Data Mining Algorithms &#40;Analysis Services - Data Mining&#41;](/analysis-services/data-mining/data-mining-algorithms-analysis-services-data-mining)
2424
[Data Mining Extensions &#40;DMX&#41; Reference](../dmx/data-mining-extensions-dmx-reference.md)
2525
[Data Mining Extensions &#40;DMX&#41; Syntax Elements](../dmx/data-mining-extensions-dmx-syntax-elements.md)
2626
[Data Mining Extensions &#40;DMX&#41; Function Reference](../dmx/data-mining-extensions-dmx-function-reference.md)
@@ -31,4 +31,3 @@ author: minewiskan
3131
[Structure and Usage of DMX Prediction Queries](../dmx/structure-and-usage-of-dmx-prediction-queries.md)
3232
[Understanding the DMX Select Statement](../dmx/understanding-the-dmx-select-statement.md)
3333

34-

0 commit comments

Comments
 (0)