saveAsSvg abstract method

Future<File> saveAsSvg(
  1. String filePath
)

Saves the tree as an SVG-image. Example:

final samples = (await fromCsv('path/to/dataset.csv'));
final classifier = DecisionTreeClassifier(
  samples,
  'target',
  minError: 0.3,
  minSamplesCount: 5,
  maxDepth: 4,
);

The file 'tree.svg' now contains a graphical representation of the tree

Implementation

//
//  await classifier.saveAsSvg('tree.svg');
/// ```
///
/// The file 'tree.svg' now contains a graphical representation of the tree
Future<File> saveAsSvg(String filePath);