Skip to content
This repository was archived by the owner on Nov 19, 2020. It is now read-only.
This repository was archived by the owner on Nov 19, 2020. It is now read-only.

RandomForestLearning : Examples can't run with SampleRatio not equal 1.0  #576

@khanhjp

Description

@khanhjp

http://accord-framework.net/docs/html/T_Accord_MachineLearning_DecisionTrees_RandomForestLearning.htm

ERROR :

- forest.Decide (inputsPattern); 'forest.Decide (inputsPattern)' threw an exception of type 'System.AggregateException'. Int [] {System.AggregateException}
- base Count = 1 System.Exception {System.AggregateException}
+ Data {System.Collections.ListDictionaryInternal} System.Collections.IDictionary {System.Collections.ListDictionaryInternal}
HelpLink null string
 + InnerException {"Index is out of bounds of array"} System.Exception** {System.IndexOutOfRangeException}
Message "One or more errors occurred" string**
Source "mscorlib" string
StackTrace "location System.Threading.Tasks.Task.ThrowIfExceptional (Boolean includeTaskCanceledExceptions) \ r \ n Location System.Threading.Tasks.Task.Wait (Int32 millisecondsTimeout, CancellationToken cancellationToken) \ r \ n Location System.Threading.Tasks.Parallel. ForWorker [TLocal] (Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally) \ r \ n Location System.Threading.Tasks. Place Accord.MachineLearning.DecisionTrees.RandomForest.Decide (Double [] input) \ r \ n Location Accord.MachineLearning.ClassifierBase` 2 (Int32 to Inclusive, Int32 to Exclusive, ParallelOptions parallelOptions, Action`1 body) .Decide (TInput [] input, TClasses [] result) \ r \ n Location Accord.MachineLearning.ClassifierBase`2.Decide (TInput [] input) "string
+ TargetSite {Void ThrowIfExceptional (Boolean)} System.Reflection.MethodBase {System.Reflection.RuntimeMethodInfo}
+ Static members
+ Non-public members
+ InnerExceptions Count = 1 System.Collections.ObjectModel.ReadOnlyCollection <System.Exception>
+ Non-public members

Thanks for any and all help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions