Machine Learning
Older machine learning functions: 2D density clustering of points (
ml cluster) and heuristic search (ml h_node). The full machine learning engine (ml train, ml fit, ml model...) is in the ML pages.ml cluster xy_scatterml cluster loadml cluster load_from_jsonml cluster existml cluster showml cluster nbml cluster nb_pointml cluster pointsml cluster point_getml cluster point_deleteml cluster point_addml cluster point_updateml cluster distanceml cluster closeml cluster close_allml h_node load_from_jsonml h_node add_problemml h_node predictml h_node existml h_node exist_problemml h_node showml h_node show_problemml h_node close_problemml h_node closeml h_node close_all
ml cluster xy_scatter <clusterId>
Description
Show a machine learning scatter plot
Show a machine learning scatter plot
Parameters
clusterId: The cluster id - string - required
clusterId: The cluster id - string - required
admin
ml cluster xy_scatter "cluster1";
mentdb
...
Used in use cases (1 recipe)
Machine learning engineer › Assign a new customer and update the segments
Machine learning engineer › Assign a new customer and update the segments
ml cluster load <clusterId> <cmId> <fieldX> <fieldY> <maximumRadius> <minPoint> <sqlSource>
Description
Load a cluster from the database
Load a cluster from the database
Parameters
clusterId: The cluster id - string - required
cmId: The database connection id - string - required
fieldX: The field X - string - required
fieldY: The field X - string - required
maximumRadius: The maximum radius - string - required
minPoint: The minimum number of points - string - required
sqlSource: The select query (origin) - string - required
clusterId: The cluster id - string - required
cmId: The database connection id - string - required
fieldX: The field X - string - required
fieldY: The field X - string - required
maximumRadius: The maximum radius - string - required
minPoint: The minimum number of points - string - required
sqlSource: The select query (origin) - string - required
admin
ml cluster load "cluster1" "demo_cm_mysql" "id" "quantity" 5 3 "select * from products limit 0, 500";
mentdb
...
Used in use cases (2 recipes)
Data quality analyst › Outlier readings in a sensor table by density clustering
Machine learning engineer › Customer segments straight from a SQL table
Data quality analyst › Outlier readings in a sensor table by density clustering
Machine learning engineer › Customer segments straight from a SQL table
Often used with
cm get · cm remove · execute · file delete · ml cluster close · ml cluster nb · ml cluster nb_point · ml cluster show
cm get · cm remove · execute · file delete · ml cluster close · ml cluster nb · ml cluster nb_point · ml cluster show
ml cluster load_from_json <clusterId> <maximumRadius> <minPoint> <jsonArray>
Description
Load a cluster from a JSON array
Load a cluster from a JSON array
Parameters
clusterId: The cluster id - string - required
maximumRadius: The maximum radius - string - required
minPoint: The minimum number of points - string - required
jsonArray: The JSON array - string - required
clusterId: The cluster id - string - required
maximumRadius: The maximum radius - string - required
minPoint: The minimum number of points - string - required
jsonArray: The JSON array - string - required
admin
ml cluster load_from_json "cluster1" 1 2 "[ [1.0, 2.0], [1.0, 2.2], [1.0, 2.5], [1.2, 2.0], [1.11, 0.9], [5.0, 3.0], [5.2, 3.08], [5.1, 3.0], [5.15, 2.9], [3.0, 2.0], [3.2, 2.08], [3.1, 2.0], [3.15, 1.9] ]";
mentdb
...
Used in use cases (3 recipes)
Biologist & microbiologist › Flow cytometry: automatic gating of leukocytes
Machine learning engineer › Customer segmentation with density clustering
Machine learning engineer › Assign a new customer and update the segments
Biologist & microbiologist › Flow cytometry: automatic gating of leukocytes
Machine learning engineer › Customer segmentation with density clustering
Machine learning engineer › Assign a new customer and update the segments
Often used with
ml cluster nb · ml cluster close · ml cluster distance · ml cluster nb_point · ml cluster point_get · env get var · ml cluster exist · ml cluster point_add
ml cluster nb · ml cluster close · ml cluster distance · ml cluster nb_point · ml cluster point_get · env get var · ml cluster exist · ml cluster point_add
ml cluster exist <clusterId>
Description
Check if a cluster already exists
Check if a cluster already exists
Parameters
clusterId: The cluster id - string - required
clusterId: The cluster id - string - required
admin
ml cluster exist "cluster1"
mentdb
1
Used in use cases (1 recipe)
Machine learning engineer › Assign a new customer and update the segments
Machine learning engineer › Assign a new customer and update the segments
ml cluster show
Description
Show all clusters
Show all clusters
admin
ml cluster show
mentdb
...
Used in use cases (2 recipes)
Data quality analyst › Outlier readings in a sensor table by density clustering
Machine learning engineer › Customer segments straight from a SQL table
Data quality analyst › Outlier readings in a sensor table by density clustering
Machine learning engineer › Customer segments straight from a SQL table
Often used with
cm get · cm remove · execute · file delete · ml cluster close · ml cluster load · ml cluster nb · ml cluster nb_point
cm get · cm remove · execute · file delete · ml cluster close · ml cluster load · ml cluster nb · ml cluster nb_point
ml cluster nb <clusterId>
Description
Get the number of clusters
Get the number of clusters
Parameters
clusterId: The cluster id - string - required
clusterId: The cluster id - string - required
admin
ml cluster nb "cluster1"
mentdb
3
Used in use cases (5 recipes)
Biologist & microbiologist › Flow cytometry: automatic gating of leukocytes
Data quality analyst › Outlier readings in a sensor table by density clustering
Machine learning engineer › Customer segmentation with density clustering
Machine learning engineer › Assign a new customer and update the segments
Machine learning engineer › Customer segments straight from a SQL table
Biologist & microbiologist › Flow cytometry: automatic gating of leukocytes
Data quality analyst › Outlier readings in a sensor table by density clustering
Machine learning engineer › Customer segmentation with density clustering
Machine learning engineer › Assign a new customer and update the segments
Machine learning engineer › Customer segments straight from a SQL table
Often used with
ml cluster close · ml cluster nb_point · ml cluster load_from_json · cm get · cm remove · execute · file delete · ml cluster distance
ml cluster close · ml cluster nb_point · ml cluster load_from_json · cm get · cm remove · execute · file delete · ml cluster distance
ml cluster nb_point <clusterId> <clusterIndex>
Description
Get the number of points in a cluster
Get the number of points in a cluster
Parameters
clusterId: The cluster id - string - required
clusterIndex: The cluster index - string - required
clusterId: The cluster id - string - required
clusterIndex: The cluster index - string - required
admin
ml cluster nb_point "cluster1" 0
mentdb
5
Used in use cases (4 recipes)
Biologist & microbiologist › Flow cytometry: automatic gating of leukocytes
Data quality analyst › Outlier readings in a sensor table by density clustering
Machine learning engineer › Customer segmentation with density clustering
Machine learning engineer › Customer segments straight from a SQL table
Biologist & microbiologist › Flow cytometry: automatic gating of leukocytes
Data quality analyst › Outlier readings in a sensor table by density clustering
Machine learning engineer › Customer segmentation with density clustering
Machine learning engineer › Customer segments straight from a SQL table
Often used with
ml cluster close · ml cluster nb · cm get · cm remove · execute · file delete · ml cluster load · ml cluster load_from_json
ml cluster close · ml cluster nb · cm get · cm remove · execute · file delete · ml cluster load · ml cluster load_from_json
ml cluster points <clusterId> <clusterIndex>
Description
Get all points in a cluster
Get all points in a cluster
Parameters
clusterId: The cluster id - string - required
clusterIndex: The cluster index - string - required
clusterId: The cluster id - string - required
clusterIndex: The cluster index - string - required
admin
ml cluster points "cluster1" 0
mentdb
...
Used in use cases (1 recipe)
Machine learning engineer › Assign a new customer and update the segments
Machine learning engineer › Assign a new customer and update the segments
ml cluster point_get <clusterId> <clusterIndex> <pointIndex>
Description
Get a point in a cluster
Get a point in a cluster
Parameters
clusterId: The cluster id - string - required
clusterIndex: The cluster index - string - required
pointIndex: The point index - string - required
clusterId: The cluster id - string - required
clusterIndex: The cluster index - string - required
pointIndex: The point index - string - required
admin
ml cluster point_get "cluster1" 0 0
mentdb
...
Used in use cases (2 recipes)
Biologist & microbiologist › Flow cytometry: automatic gating of leukocytes
Machine learning engineer › Customer segmentation with density clustering
Biologist & microbiologist › Flow cytometry: automatic gating of leukocytes
Machine learning engineer › Customer segmentation with density clustering
Often used with
ml cluster close · ml cluster load_from_json · ml cluster nb · ml cluster nb_point · env get var · ml cluster distance · string replace
ml cluster close · ml cluster load_from_json · ml cluster nb · ml cluster nb_point · env get var · ml cluster distance · string replace
ml cluster point_delete <clusterId> <clusterIndex> <pointIndex>
Description
Get a point in a cluster
Get a point in a cluster
Parameters
clusterId: The cluster id - string - required
clusterIndex: The cluster index - string - required
pointIndex: The point index - string - required
clusterId: The cluster id - string - required
clusterIndex: The cluster index - string - required
pointIndex: The point index - string - required
admin
ml cluster point_delete "cluster1" 0 0;
mentdb
...
Used in use cases (1 recipe)
Machine learning engineer › Assign a new customer and update the segments
Machine learning engineer › Assign a new customer and update the segments
ml cluster point_add <clusterId> <clusterIndex> <x> <y>
Description
Add a point to a cluster
Add a point to a cluster
Parameters
clusterId: The cluster id - string - required
clusterIndex: The cluster index - string - required
x: The x - string - required
y: The y - string - required
clusterId: The cluster id - string - required
clusterIndex: The cluster index - string - required
x: The x - string - required
y: The y - string - required
admin
ml cluster point_add "cluster1" 0 5 6;
mentdb
...
Used in use cases (1 recipe)
Machine learning engineer › Assign a new customer and update the segments
Machine learning engineer › Assign a new customer and update the segments
ml cluster point_update <clusterId> <clusterIndex> <pointIndex> <x> <y>
Description
Update a point in a cluster
Update a point in a cluster
Parameters
clusterId: The cluster id - string - required
clusterIndex: The cluster index - string - required
pointIndex: The point index - string - required
x: The x - string - required
y: The y - string - required
clusterId: The cluster id - string - required
clusterIndex: The cluster index - string - required
pointIndex: The point index - string - required
x: The x - string - required
y: The y - string - required
admin
ml cluster point_update "cluster1" 0 0 5 6;
mentdb
...
Used in use cases (1 recipe)
Machine learning engineer › Assign a new customer and update the segments
Machine learning engineer › Assign a new customer and update the segments
ml cluster distance <clusterId> <x1> <y1> <x2> <y2>
Description
Get the Euclidean distance between two points (x1, y1) and (x2, y2)
Get the Euclidean distance between two points (x1, y1) and (x2, y2)
Parameters
clusterId: The cluster id - string - required
x1: The x1 value - string - required
y1: The y1 value - string - required
x2: The x2 value - string - required
y2: The y2 value - string - required
clusterId: The cluster id - string - required
x1: The x1 value - string - required
y1: The y1 value - string - required
x2: The x2 value - string - required
y2: The y2 value - string - required
admin
ml cluster distance "cluster1" 1 2 4 7
mentdb
5.830951894845301
Used in use cases (2 recipes)
Machine learning engineer › Customer segmentation with density clustering
Machine learning engineer › Assign a new customer and update the segments
Machine learning engineer › Customer segmentation with density clustering
Machine learning engineer › Assign a new customer and update the segments
Often used with
ml cluster load_from_json · ml cluster nb · env get var · ml cluster close · ml cluster exist · ml cluster nb_point · ml cluster point_add · ml cluster point_delete
ml cluster load_from_json · ml cluster nb · env get var · ml cluster close · ml cluster exist · ml cluster nb_point · ml cluster point_add · ml cluster point_delete
ml cluster close <clusterId>
Description
Close a cluster
Close a cluster
Parameters
clusterId: The cluster id - string - required
clusterId: The cluster id - string - required
admin
ml cluster close "cluster1";
mentdb
1
Used in use cases (4 recipes)
Biologist & microbiologist › Flow cytometry: automatic gating of leukocytes
Data quality analyst › Outlier readings in a sensor table by density clustering
Machine learning engineer › Customer segmentation with density clustering
Machine learning engineer › Customer segments straight from a SQL table
Biologist & microbiologist › Flow cytometry: automatic gating of leukocytes
Data quality analyst › Outlier readings in a sensor table by density clustering
Machine learning engineer › Customer segmentation with density clustering
Machine learning engineer › Customer segments straight from a SQL table
Often used with
ml cluster nb · ml cluster nb_point · cm get · cm remove · execute · file delete · ml cluster load · ml cluster load_from_json
ml cluster nb · ml cluster nb_point · cm get · cm remove · execute · file delete · ml cluster load · ml cluster load_from_json
ml cluster close_all
Description
Close all clusters
Close all clusters
admin
ml cluster close_all;
mentdb
1
ml h_node load_from_json <hId> <isDirect> <jsonArray>
Description
Load a graph from a JSON array of edges [node_a, node_b, cost]; the nodes are strings or numbers.
Load a graph from a JSON array of edges [node_a, node_b, cost]; the nodes are strings or numbers.
Parameters
hId: The heuristic id - string - required
isDirect: Is it directed? - boolean - required
jsonArray: The JSON data array - string - required
hId: The heuristic id - string - required
isDirect: Is it directed? - boolean - required
jsonArray: The JSON data array - string - required
admin
ml h_node load_from_json "hid1" true "[ [ \"A\", \"B\", 2 ], [ \"A\", \"C\", 4 ], [ \"D\", \"A\", 1 ], [ \"A\", \"D\", 3 ], [ \"E\", \"F\", 4 ], [ \"D\", \"F\", 2 ], [ \"G\", \"H\", 1 ], [ \"F\", \"H\", 5 ], [ \"F\", \"I\", 7 ], [ \"J\", \"I\", 2 ] ]";
mentdb
...
Used in use cases (1 recipe)
Machine learning engineer › Compare search algorithms on a delivery network
Machine learning engineer › Compare search algorithms on a delivery network
ml h_node add_problem <hId> <problemId> <from>
Description
Add a new problem
Add a new problem
Parameters
hId: The heuristic id - string - required
problemId: The problem id - string - required
from: The origin to search - string - required
hId: The heuristic id - string - required
problemId: The problem id - string - required
from: The origin to search - string - required
admin
ml h_node add_problem "hid1" "probId1" "A";
mentdb
1
Used in use cases (1 recipe)
Machine learning engineer › Compare search algorithms on a delivery network
Machine learning engineer › Compare search algorithms on a delivery network
ml h_node predict <hId> <problemId> <algorithm> <to> <param>
Description
Search the best path from the start of the problem to a target state.
An error is returned when the target cannot be reached.
a_star and i_d_a_star use the param as the heuristic: a JSON object of estimated remaining costs to the target, ex: {"B": 3, "D": 0} (0 for the missing states, the estimations must not exceed the real costs); without param they work as dijkstra.
Search the best path from the start of the problem to a target state.
An error is returned when the target cannot be reached.
a_star and i_d_a_star use the param as the heuristic: a JSON object of estimated remaining costs to the target, ex: {"B": 3, "D": 0} (0 for the missing states, the estimations must not exceed the real costs); without param they work as dijkstra.
Parameters
hId: The heuristic id - string - required
problemId: The problem id - string - required
algorithm: The algorithm (dijkstra|a_star|bellman_ford|breadth_first_search|depth_first_search|depth_limited_search|i_d_a_star|multi_objective_l_s|hill_climbing) - string - required
to: The target state - string - required
param: The algorithm parameter: integer for depth_limited_search, boolean for hill_climbing, JSON heuristic for a_star and i_d_a_star, empty otherwise - string - required
hId: The heuristic id - string - required
problemId: The problem id - string - required
algorithm: The algorithm (dijkstra|a_star|bellman_ford|breadth_first_search|depth_first_search|depth_limited_search|i_d_a_star|multi_objective_l_s|hill_climbing) - string - required
to: The target state - string - required
param: The algorithm parameter: integer for depth_limited_search, boolean for hill_climbing, JSON heuristic for a_star and i_d_a_star, empty otherwise - string - required
admin
ml h_node predict "hid1" "probId1" "dijkstra|a_star|bellman_ford|breadth_first_search|depth_first_search|depth_limited_search|i_d_a_star|multi_objective_l_s|hill_climbing" "I" null
mentdb
...
Used in use cases (1 recipe)
Machine learning engineer › Compare search algorithms on a delivery network
Machine learning engineer › Compare search algorithms on a delivery network
ml h_node exist <hId>
Description
Check if a heuristic node object already exists
Check if a heuristic node object already exists
Parameters
hId: The heuristic id - string - required
hId: The heuristic id - string - required
admin
ml h_node exist "hid1"
mentdb
1
Used in use cases (1 recipe)
Machine learning engineer › Compare search algorithms on a delivery network
Machine learning engineer › Compare search algorithms on a delivery network
ml h_node exist_problem <hId> <problemId>
Description
Check if a problem already exists
Check if a problem already exists
Parameters
hId: The heuristic id - string - required
problemId: The problem id - string - required
hId: The heuristic id - string - required
problemId: The problem id - string - required
admin
ml h_node exist_problem "hid1" "probId1"
mentdb
1
Used in use cases (1 recipe)
Machine learning engineer › Compare search algorithms on a delivery network
Machine learning engineer › Compare search algorithms on a delivery network
ml h_node show
Description
Show all heuristic node objects
Show all heuristic node objects
admin
ml h_node show
mentdb
...
Used in use cases (1 recipe)
Machine learning engineer › Compare search algorithms on a delivery network
Machine learning engineer › Compare search algorithms on a delivery network
ml h_node show_problem <hId>
Description
Show all the problems of a heuristic object
Show all the problems of a heuristic object
Parameters
hId: The heuristic id - string - required
hId: The heuristic id - string - required
admin
ml h_node show_problem "hid1"
mentdb
...
Used in use cases (1 recipe)
Machine learning engineer › Compare search algorithms on a delivery network
Machine learning engineer › Compare search algorithms on a delivery network
ml h_node close_problem <hId> <problemId>
Description
Close a problem
Close a problem
Parameters
hId: The heuristic id - string - required
problemId: The problem id - string - required
hId: The heuristic id - string - required
problemId: The problem id - string - required
admin
ml h_node close_problem "hid1" "probId1";
mentdb
1
Used in use cases (1 recipe)
Machine learning engineer › Compare search algorithms on a delivery network
Machine learning engineer › Compare search algorithms on a delivery network
ml h_node close <hId>
Description
Close a heuristic node object
Close a heuristic node object
Parameters
hId: The heuristic id - string - required
hId: The heuristic id - string - required
admin
ml h_node close "hid1";
mentdb
1
Used in use cases (1 recipe)
Machine learning engineer › Compare search algorithms on a delivery network
Machine learning engineer › Compare search algorithms on a delivery network
ml h_node close_all
Description
Close all heuristic node objects
Close all heuristic node objects
admin
ml h_node close_all;
mentdb
1
