当前位置: 首页>>代码示例>>C#>>正文


C# IMLData.CopyTo方法代码示例

本文整理汇总了C#中IMLData.CopyTo方法的典型用法代码示例。如果您正苦于以下问题:C# IMLData.CopyTo方法的具体用法?C# IMLData.CopyTo怎么用?C# IMLData.CopyTo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IMLData的用法示例。


在下文中一共展示了IMLData.CopyTo方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: MaxInArray

        private double MaxInArray(IMLData result)
        {
            var array = new double[Network.OutputSize];
            result.CopyTo(array, 0, Network.OutputSize - 1);

            var maxValue = array.Max();
            var maxIndex = array.ToList().IndexOf(maxValue);

            return maxIndex + 1;
        }
开发者ID:dobrybajer,项目名称:NeuralNetworks,代码行数:10,代码来源:ProblemBase.cs

示例2: Compute

        /// <summary>
        /// Note: for Boltzmann networks, you will usually want to call the "run"
        /// method to compute the output.
        /// This method can be used to copy the input data to the current state. A
        /// single iteration is then run, and the new current state is returned.
        /// </summary>
        ///
        /// <param name="input">The input pattern.</param>
        /// <returns>The new current state.</returns>
        public override sealed IMLData Compute(IMLData input)
        {
            var result = new BiPolarMLData(input.Count);
			input.CopyTo(CurrentState.Data, 0, input.Count);
            Run();
            EngineArray.ArrayCopy(CurrentState.Data, result.Data);
            return result;
        }
开发者ID:jongh0,项目名称:MTree,代码行数:17,代码来源:BoltzmannMachine.cs

示例3: Compute

        public virtual void Compute(IMLData input, double[] output)
        {
            int sourceIndex = _layerOutput.Length
                              - _layerCounts[_layerCounts.Length - 1];

            input.CopyTo(_layerOutput, sourceIndex, _inputCount);

            InnerCompute(output);
        }
开发者ID:fxmozart,项目名称:encog-dotnet-core,代码行数:9,代码来源:FlatNetwork.cs

示例4: Compute

        /// <summary>
        /// Note: for Hopfield networks, you will usually want to call the "run"
        /// method to compute the output.
        /// This method can be used to copy the input data to the current state. A
        /// single iteration is then run, and the new current state is returned.
        /// </summary>
        ///
        /// <param name="input">The input pattern.</param>
        /// <returns>The new current state.</returns>
        public override sealed IMLData Compute(IMLData input)
        {
            var result = new BiPolarMLData(input.Count);
            input.CopyTo(CurrentState.Data, 0, input.Count);
            Run();

            for (int i = 0; i < CurrentState.Count; i++)
            {
                result.SetBoolean(i,
                                  BiPolarUtil.Double2bipolar(CurrentState[i]));
            }
            EngineArray.ArrayCopy(CurrentState.Data, result.Data);
            return result;
        }
开发者ID:benw408701,项目名称:MLHCTransactionPredictor,代码行数:23,代码来源:HopfieldNetwork.cs


注:本文中的IMLData.CopyTo方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。