Initial Control Points

You can provide initial control points via a file. The file should contain a list of control points. The file format must be pickled PyTorch (.pt), comma-separated values (.csv), tab-separated values (.tsv), JSON (.json), or YAML (.yml or .yaml).

Pickled PyTorch

See PyTorch documentation for details:

CSV

"(2, 0)", 0.0, 0.1
"(1, 1)", 1.0, 1.1
"(0, 2)", 2.0, 2.1

TSV

"(2, 0)"     0.0     0.1
"(1, 1)"     1.0     1.1
"(0, 2)"     2.0     2.1

JSON

{
  "(2, 0)": [0.0, 0.1],
  "(1, 1)": [1.0, 1.1],
  "(0, 2)": [2.0, 2.1]
}

YAML

(2, 0): [0.0, 0.1]
(1, 1): [1.0, 1.1]
(0, 2): [2.0, 2.1]