Namespace: ml
dg.ml
Functions
applyModel
▸ applyModel(name
, table
, columnNamesMap?
, showProgress?
): Promise
<DataFrame
>
Applies predictive model to the specified table. See example: https://public.datagrok.ai/js/samples/domains/data-science/predictive-model
Async
Parameters
Name | Type | Default value | Description |
---|---|---|---|
name | string | undefined | Model namespace path. |
table | DataFrame | undefined | Data table. |
columnNamesMap | object | {} | Columns map. |
showProgress | boolean | true | Maximum number of results to return. |
Returns
Promise
<DataFrame
>
Defined in
cluster
▸ cluster(table
, features
, clusters
): Promise
<DataFrame
>
Clusters data. See example: https://public.datagrok.ai/js/samples/domains/data-science/cluster
Async
Parameters
Name | Type | Description |
---|---|---|
table | DataFrame | Data table. |
features | string [] | List of column names containing features. |
clusters | number | Number of clusters. |
Returns
Promise
<DataFrame
>
Defined in
missingValuesImputation
▸ missingValuesImputation(table
, impute
, data
, nearestNeighbours
): Promise
<DataFrame
>
Imputes missing values. See example: https://public.datagrok.ai/js/samples/domains/data-science/missing-values-imputation
Async
Parameters
Name | Type | Description |
---|---|---|
table | DataFrame | Data table. |
impute | string [] | List of column names to impute missing values. |
data | string [] | List of column names containing data. |
nearestNeighbours | number | Number of nearest neighbours. |
Returns
Promise
<DataFrame
>
Defined in
pca
▸ pca(table
, features
, components
, center
, scale
): Promise
<DataFrame
>
Principal component analysis. See example: https://public.datagrok.ai/js/samples/domains/data-science/pca
Async
Parameters
Name | Type | Description |
---|---|---|
table | DataFrame | Data table. |
features | string [] | List of column names containing features. |
components | number | Number of clusters. |
center | boolean | Center features data before PCA. |
scale | boolean | Scale features data before PCA. |
Returns
Promise
<DataFrame
>
Defined in
randomData
▸ randomData(table
, distribution
, params
, seed
): Promise
<DataFrame
>
Creates a table with random values from the specified distribution. Documentation: https://datagrok.ai/help/transform/random-data See example: https://public.datagrok.ai/js/samples/domains/data-science/random-data
Async
Parameters
Name | Type | Description |
---|---|---|
table | DataFrame | Data table. |
distribution | string | Distribution name. |
params | object | Distribution parameters. |
seed | number | Initial seed. |
Returns
Promise
<DataFrame
>