machinelearning icon indicating copy to clipboard operation
machinelearning copied to clipboard

[Docs] Explicitly clarify that IEstimator Append() doesn't alter the calling object

Open shmoradims opened this issue 8 years ago • 2 comments

In estimator1.Append(estimator2) it's not 100% clear that estimator1 is not changed. The summary comment for Append() should highlight that.

        /// <summary>
        /// Append another estimator to the end.
        /// </summary>
        public CompositeReaderEstimator<TSource, TNewTrans> Append<TNewTrans>(IEstimator<TNewTrans> estimator)

Should be

        /// <summary>
        /// Create a new reader estimator, by appending another estimator to the end of this reader estimator.
        /// </summary>
        public CompositeReaderEstimator<TSource, TNewTrans> Append<TNewTrans>(IEstimator<TNewTrans> estimator)

shmoradims avatar Oct 26 '18 18:10 shmoradims

Same goes for other Append methods (for IDataReader, IDataReaderEstimator EstimatorChain, ITransformer, TransformerChain, etc.).

Zruty0 avatar Oct 26 '18 20:10 Zruty0

I will give it a try. I just need to alter the function summaries for the Append methods, right?

JorgeAndd avatar Oct 29 '18 12:10 JorgeAndd