C# Класс MCAEmotiv.Classification.Example

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Example ( int cls, IEnumerable features ) : System

Construct an example with the specified class and feature data. Makes a copy of features. To preserve immutability.

WithClass ( int cls ) : Example

Efficiently returns an identical example except with the new class value.

WithFeatures ( IArrayView featureIndices ) : Example

Efficiently returns an identical example except with only the features at the indices specified by the argument. No copying of features is performed.

ZScored ( IArrayView means, IArrayView standardDeviations ) : Example

Efficiently returns an identical example with features that have been z-scored using means and standardDeviations.

Приватные методы

Метод Описание
Example ( int cls, IArrayView features ) : System
ZScored ( IArrayView examples, IArrayView &means, IArrayView &standardDeviations ) : IArrayView

Zscores the examples, returning the calculated means and standard deviations as out parameters.

Описание методов

Example() публичный Метод

Construct an example with the specified class and feature data. Makes a copy of features. To preserve immutability.
public Example ( int cls, IEnumerable features ) : System
cls int
features IEnumerable
Результат System

WithClass() публичный Метод

Efficiently returns an identical example except with the new class value.
public WithClass ( int cls ) : Example
cls int
Результат Example

WithFeatures() публичный Метод

Efficiently returns an identical example except with only the features at the indices specified by the argument. No copying of features is performed.
public WithFeatures ( IArrayView featureIndices ) : Example
featureIndices IArrayView
Результат Example

ZScored() публичный Метод

Efficiently returns an identical example with features that have been z-scored using means and standardDeviations.
public ZScored ( IArrayView means, IArrayView standardDeviations ) : Example
means IArrayView
standardDeviations IArrayView
Результат Example