Function topologicalSort

  • Use Kahn's algorithm to topologically sort the nodes of the network.

    This essentially provides an ordering for executing the neural network, however, this is only applicable for directed acyclic graphs.

    Parameters

    • inputToOutput: {
          [key: number]: number[];
      }
      • [key: number]: number[]
    • outputToInput: {
          [key: number]: number[];
      }
      • [key: number]: number[]

    Returns number[]

Generated using TypeDoc