mirror of
https://github.com/hanzoai/jube-fork.git
synced 2026-10-30 18:33:33 +00:00
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.
39 lines
1.3 KiB
C#
39 lines
1.3 KiB
C#
// AForge Genetic Library
|
|
// AForge.NET framework
|
|
// http://www.aforgenet.com/framework/
|
|
//
|
|
// Copyright © Andrew Kirillov, 2006-2009
|
|
// [email protected]
|
|
//
|
|
|
|
namespace Accord.Genetic
|
|
{
|
|
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
|
|
/// <summary>
|
|
/// Genetic selection method interface.
|
|
/// </summary>
|
|
///
|
|
/// <remarks>The interface should be implemented by all classes, which
|
|
/// implement genetic selection algorithm. These algorithms select members of
|
|
/// current generation, which should be kept in the new generation. Basically,
|
|
/// these algorithms filter provided population keeping only specified amount of
|
|
/// members.</remarks>
|
|
///
|
|
public interface ISelectionMethod
|
|
{
|
|
/// <summary>
|
|
/// Apply selection to the specified population.
|
|
/// </summary>
|
|
///
|
|
/// <param name="chromosomes">Population, which should be filtered.</param>
|
|
/// <param name="size">The amount of chromosomes to keep.</param>
|
|
///
|
|
/// <remarks>Filters specified population according to the implemented
|
|
/// selection algorithm.</remarks>
|
|
///
|
|
void ApplySelection( List<IChromosome> chromosomes, int size );
|
|
}
|
|
} |