[mlpack-git] [mlpack/mlpack] Added the discretize function. Design changes as discussed. (#703)

Tham notifications at github.com
Fri Jun 24 09:22:56 EDT 2016


> +  fraction: fraction of features to use to train each tree
> +  n_tree: number of trees in forest to train
> +  n_class: number of classes (clusters) for binary splits
> +  min_count: minimum number of data points to allow split
> +  min_child: minimum number of data points allowed at child nodes
> +  max_depth: maximum depth of tree
> +  split: options include 'gini', 'entropy' and 'twoing'
> +  discretize: optional function mapping structured to class labels
> +
> +  stride: stride at which to compute edges
> +  sharpen: sharpening amount (can only decrease after training)
> +  n_tree_eval: number of trees to evaluate per location
> +  nms: if true apply non-maximum suppression to edges
> +  */
> +
> +  FeatureParameters params = FeatureParameters();

Thanks for the update :+1: 
In c++, when you declare an object, it will call the default constructor, so you can just write(Maybe you already know this)

`FeatureParameters params;`

In theory, initialize the object by using constructor is better than using copy assignment, but compiler should be able to optimize it, so it is just a preference of taste now.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/703/files/0abec2cbb44a0556b129485b485bae8d07986af7#r68396702
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160624/6626727f/attachment.html>


More information about the mlpack-git mailing list