C# 클래스 Encog.App.Analyst.CSV.Balance.BalanceCSV

Balance a CSV file. This utility is useful when you have several an unbalanced training set. You may have a large number of one particular class, and many fewer elements of other classes. This can hinder many Machine Learning methods. This class can be used to balance the data. Obviously this class cannot generate data. You must request how many items you want per class. Some classes will have lower than this number if they were already below the specified amount. Any class above this amount will be trimmed to that amount.
상속: Encog.App.Analyst.CSV.Basic.BasicFile
파일 보기 프로젝트 열기: encog/encog-silverlight-core 1 사용 예제들

공개 메소드들

메소드 설명
Analyze ( FileInfo inputFile, bool headers, CSVFormat format ) : void

Analyze the data. This counts the records and prepares the data to be processed.

DumpCounts ( ) : String

Return a string that lists the counts per class.

Process ( FileInfo outputFile, int targetField, int countPer ) : void

Process and balance the data.

메소드 상세

Analyze() 공개 메소드

Analyze the data. This counts the records and prepares the data to be processed.
public Analyze ( FileInfo inputFile, bool headers, CSVFormat format ) : void
inputFile System.IO.FileInfo The input file to process.
headers bool True, if headers are present.
format Encog.Util.CSV.CSVFormat The format of the CSV file.
리턴 void

DumpCounts() 공개 메소드

Return a string that lists the counts per class.
public DumpCounts ( ) : String
리턴 String

Process() 공개 메소드

Process and balance the data.
public Process ( FileInfo outputFile, int targetField, int countPer ) : void
outputFile System.IO.FileInfo The output file to write data to.
targetField int
countPer int The desired count per class.
리턴 void