Node Regression Training Pipelineยถ

class graphdatascience.pipeline.nr_training_pipeline.NRTrainingPipelineยถ

Represents a node regression training pipeline. Construct an instance of this class using graphdatascience.GraphDataScience.nr_pipe().

addLinearRegression(**config: Any) โ†’ Series[Any]ยถ

Add a linear regression model candidate to the pipeline.

Parameters:

**config โ€“ The configuration for the linear regression model.

Returns:

The result of the query.

addNodeProperty(procedure_name: str, **config: Any) โ†’ Series[Any]ยถ

Add a node property step to the pipeline.

Parameters:
  • procedure_name โ€“ The name of the procedure to use.

  • **config โ€“ The configuration for the node property.

Returns:

The result of the query.

addRandomForest(**config: Any) โ†’ Series[Any]ยถ

Add a random forest regressor candidate to the pipeline.

Parameters:

**config โ€“ The configuration for the random forest regressor.

Returns:

The result of the query.

auto_tuning_config() โ†’ Series[Any]ยถ

Get the auto-tuning configuration of the pipeline.

Returns:

A Series containing the auto-tuning configuration.

configureAutoTuning(**config: Any) โ†’ Series[Any]ยถ

Configure auto-tuning for the pipeline.

Parameters:

**config โ€“ The configuration for auto-tuning.

Returns:

The result of the query.

configureSplit(**config: Any) โ†’ Series[Any]ยถ

Configure the splits for training the pipeline.

Parameters:

**config โ€“ The configuration for the splits.

Returns:

The result of the query.

creation_time() โ†’ Anyยถ

Get the creation time of the pipeline.

Returns:

The creation time of the pipeline.

drop(failIfMissing: bool = False) โ†’ Series[Any]ยถ

Drop the pipeline.

Parameters:

failIfMissing โ€“ If True, an error will be thrown if the pipeline does not exist.

Returns:

The result of the query.

exists() โ†’ boolยถ

Check if the pipeline exists.

Returns:

True if the pipeline exists, False otherwise.

feature_properties() โ†’ Series[Any]ยถ

Get the feature properties of the pipeline.

Returns:

A Series containing the feature properties of the pipeline.

name() โ†’ strยถ

Get the name of the pipeline.

Returns:

The name of the pipeline.

node_property_steps() โ†’ DataFrameยถ

Get the node property steps of the pipeline.

Returns:

A DataFrame containing the node property steps.

parameter_space() โ†’ Series[Any]ยถ

Get the parameter space of the pipeline.

Returns:

A Series containing the parameter space.

selectFeatures(node_properties: str | list[str]) โ†’ Series[Any]ยถ

Select the node properties to use for training.

Parameters:

node_properties โ€“ The node properties to use for training.

Returns:

The result of the query.

split_config() โ†’ Series[float]ยถ

Get the split configuration of the pipeline.

Returns:

A Series containing the split configuration.

train(G: Graph, **config: Any) โ†’ tuple[MODEL_TYPE, Series[Any]]ยถ

Train a model on a given graph using the pipeline.

Parameters:
  • G โ€“ The graph to train on.

  • **config โ€“ The configuration for training.

Returns:

A tuple containing the trained model and the result of the query.

train_estimate(G: Graph, **config: Any) โ†’ Series[Any]ยถ

Estimate the training time for a given graph and configuration.

Parameters:
  • G โ€“ The graph to train on.

  • **config โ€“ The configuration for training.

Returns:

The result of the query.

type() โ†’ strยถ

Get the type of the pipeline.

Returns:

The type of the pipeline. It will be one of NodeClassificationPipeline, LinkPredictionPipeline, or NodeRegressionPipeline.