pyepo.data.shortestpath

Synthetic data for Shortest path problem

Module Contents

Functions

genData(num_data, num_features, grid[, deg, ...])

A function to generate synthetic data and features for shortest path

pyepo.data.shortestpath.genData(num_data, num_features, grid, deg=1, noise_width=0, seed=135)

A function to generate synthetic data and features for shortest path

Parameters:
  • num_data (int) – number of data points

  • num_features (int) – dimension of features

  • grid (int, int) – size of grid network

  • deg (int) – data polynomial degree

  • noise_width (float) – half witdth of data random noise

  • seed (int) – random seed

Returns:

data features (np.ndarray), costs (np.ndarray)

Return type:

tuple