[mlpack-git] [mlpack/mlpack] Spill trees (#747)

MarcosPividori notifications at github.com
Tue Aug 16 19:13:10 EDT 2016


> +      double effectiveError = 0;
> +      size_t cases = 0;
> +      for (size_t i = 0; i < distances.n_elem; i++)
> +      {
> +        if (distancesExact(i) != 0 && distances(i) != DBL_MAX)
> +        {
> +          effectiveError += (distances(i) - distancesExact(i)) /
> +              distancesExact(i);
> +          cases++;
> +        }
> +      }
> +      if (cases)
> +        effectiveError /= cases;
> +
> +      Log::Info << "Effective error: " << effectiveError << endl;
> +    }

@rcurtin , I have implemented this in https://github.com/mlpack/mlpack/pull/747/commits/92155154bc8721055702ae3d22c33542f2f07a61 and https://github.com/mlpack/mlpack/pull/747/commits/3e79d273545cb5d5694f6c8e7370a0dbbd95e5e6.

-- 
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/747/files/fe090ee13c7cad79e2b7eb8b6690628ba3ead1ed#r75038128
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160816/da24e93d/attachment.html>


More information about the mlpack-git mailing list