A folded data set allows you to "fold" the data into several equal(or nearly equal) datasets. You then have the ability to select which fold the dataset will process. This is very useful for crossvalidation. This dataset works off of an underlying dataset. By default there are no folds (fold size 1). Call the fold method to create more folds.
상속: IIndexable
예제 #1
0
 /// <summary>
 /// Construct a cross trainer. 
 /// </summary>
 /// <param name="network">The network.</param>
 /// <param name="training">The training data.</param>
 public CrossTraining(BasicNetwork network,
          FoldedDataSet training)
 {
     this.network = network;
     Training = training;
     this.folded = training;
 }
예제 #2
0
        /// <summary>
        /// Open an additional dataset.
        /// </summary>
        /// <returns>The dataset.</returns>
        public IEngineIndexableSet OpenAdditional()
        {
            FoldedDataSet folded = new FoldedDataSet(
                (IIndexable)this.underlying.OpenAdditional());

            folded.Owner = this;
            return(folded);
        }
예제 #3
0
 /// <summary>
 /// Open an additional dataset.
 /// </summary>
 /// <returns>The dataset.</returns>
 public IEngineIndexableSet OpenAdditional()
 {
     FoldedDataSet folded = new FoldedDataSet(
             (IIndexable)this.underlying.OpenAdditional());
     folded.Owner = this;
     return folded;
 }
예제 #4
0
 /// <summary>
 /// Construct an enumerator.
 /// </summary>
 /// <param name="owner">The owner.</param>
 public FoldedEnumerator(FoldedDataSet owner)
 {
     this.owner        = owner;
     this.currentIndex = -1;
 }