Files
richard-churchman cc0a2bee21 Extensive modifications to the serialisation of Neural Network models to support Newtonsoft Json.net rather than Binary Serializer.
Included open-source Accord.net library code natively to the solution given the deprecated state of that project.  Accord.net will be supported inside Jube for own needs (such as upgrading to .Net 7+).

Accord.net libraries modified to compile to .Net 6.

Modified Accord.net libraries to better support Newtonsoft Json.net serialisation.

Included annotations in the Accord.net libraries to house important dependency statistics. Serialised json can be used independently of Jube to recall a Neural Network.

Removal of Binary Serializer totally as a precursor to the projects support of .Net 7+.

Extensive bug fixing in crucial functions of Neural Network training and recall.  While this part of the system remains in Alpha, it is substantially more fit for purpose.
2023-12-24 10:22:22 +01:00

49 lines
1.5 KiB
C#

// AForge Neural Net Library
// AForge.NET framework
// http://www.aforgenet.com/framework/
//
// Copyright © AForge.NET, 2007-2012
// [email protected]
//
namespace Accord.Neuro.Learning
{
using System;
/// <summary>
/// Supervised learning interface.
/// </summary>
///
/// <remarks><para>The interface describes methods, which should be implemented
/// by all supervised learning algorithms. Supervised learning is such
/// type of learning algorithms, where system's desired output is known on
/// the learning stage. So, given sample input values and desired outputs,
/// system should adopt its internals to produce correct (or close to correct)
/// result after the learning step is complete.</para></remarks>
///
public interface ISupervisedLearning
{
/// <summary>
/// Runs learning iteration.
/// </summary>
///
/// <param name="input">Input vector.</param>
/// <param name="output">Desired output vector.</param>
///
/// <returns>Returns learning error.</returns>
///
double Run( double[] input, double[] output );
/// <summary>
/// Runs learning epoch.
/// </summary>
///
/// <param name="input">Array of input vectors.</param>
/// <param name="output">Array of output vectors.</param>
///
/// <returns>Returns sum of learning errors.</returns>
///
double RunEpoch( double[][] input, double[][] output );
}
}