Machine Learning
Node Classification
The original alpha version of node classification has been completely removed and incorporated into node classification pipelines. Before training a node classification model, you must create and configure a training pipeline.
Train
Some parts of the training are now configured in specific configuration procedures for the training pipeline.
These must precede calling the train
procedure in order to be effective.
The remaining parts are moved to the pipeline train procedure.
Please see the table below.
1.x | 2.x |
---|---|
|
This parameter is now only configured in |
|
This parameter is replaced by |
|
This parameter is now only configured in |
|
This parameter is now named |
|
This parameter is now only configured in |
|
This parameter is now only configured in |
|
This parameter is replaced by |
|
This parameter is now only configured in |
1.x | 2.x |
---|---|
|
This procedure, which is no longer present, added logistic regression model candidates. Adding logistic regression candidates, can instead be done by calling |
Predict
Apart from the parameters listed below, the API for node classification prediction is the same as before but with different procedures.
These procedures are gds.beta.pipeline.nodeClassification.predict.[mutate,stream,write]
.
1.x | 2.x |
---|---|
|
Batch size is optimized internally and no longer user-configurable. |
1.x | 2.x |
---|---|
|
|
|
|
|
|
Link Prediction
The original alpha version of link prediction has been completely removed and incorporated into link prediction pipelines. Before training a link prediction model, you must create and configure a training pipeline.
Train
Some parts of the training are now configured in specific configuration procedures for the training pipeline.
These must precede calling the train
procedure in order to be effective.
The remaining parts are moved to the pipeline train procedure.
Please see the table below.
1.x | 2.x |
---|---|
|
This parameter is now only configured in |
|
Replaced by |
|
Replaced by the second positional argument to |
|
These parameters are removed. Use |
|
This parameter is now only configured in |
|
This parameter is now only configured in |
|
This parameter is replaced by |
|
This parameter is now only configured in |
1.x | 2.x |
---|---|
|
This procedure, which is no longer present, added logistic regression model candidates. Adding logistic regression candidates, can instead be done by calling |
Predict
The API for link prediction classification is the same as before, but with different procedures.
These procedures are gds.beta.pipeline.linkPrediction.predict.[mutate,stream]
.
However, there’s no longer a write
mode for link prediction classification, but it’s still possible to emulate this behavior using the mutate
mode followed by gds.graph.relationship.write
.
1.x | 2.x |
---|---|
|
|
|
|
|
|