level_set_tree.LevelSetTree.save¶
-
LevelSetTree.
save
(filename)¶ Save a level set tree object to file. All members of the level set tree are serialized with the cPickle module and saved to file.
Parameters: filename : str
File to save the tree to. The filename extension does not matter for this method (although operating system requirements still apply).
See also
Examples
>>> X = numpy.random.rand(100, 2) >>> tree = debacl.construct_tree(X, k=8, prune_threshold=5) >>> tree.save('my_tree')