nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.MachineLearning / Extensions

Extensions

Full name Microsoft.VisualBasic.MachineLearning.Extensions Assembly Microsoft.VisualBasic.MachineLearning Members 3

01 Syntax

Microsoft.VisualBasic.MachineLearning.Extensions

02 Methods

NameOverloadsSummary
ValueTruncate 1 对值进行约束剪裁
Delta 1 Generate small delta for GA mutations
ToDataMatrix 1 Convert samples data to dataset matrix

03 Members

method ValueTruncate #
ValueTruncate(Double, Double)

对值进行约束剪裁

Parameters
NameTypeDescription
valueDouble

The target value that will be truncated.

truncateDouble

the absolute value of the limitation.(修建的阈值应该是一个正实数来的)

Returns

A value that is limited in the interval [-truncate, truncate]; the NaN, +Infinity and -Infinity values will also be replaced by a valid number.

method Delta #
Delta(Double, Double)

Generate small delta for GA mutations

Remarks

1 = 10 ^ 0 ~ 0.1 = 10 ^ 1 0.1 10 = 10 ^ 1 ~ 1 = 10 ^ 2 0.1

Parameters
NameTypeDescription
xDouble

The reference value for calculates the magnitude of the delta.

dDouble

The ratio factor of the generated delta relative to the magnitude of the x value, the default value is 0.1.

Returns

A small delta value which is proportional to the order of magnitude of the x value.

method ToDataMatrix #
ToDataMatrix``1(IEnumerable(Of Sample), String(), String())

Convert samples data to dataset matrix

Type Parameters
NameDescription
T

The type of the target output dataset.

Parameters
NameTypeDescription
samplesIEnumerable(Of Sample)

A collection of the Sample data.

namesString()

The property names of the sample data vector.

outputNamesString()

The property names of the output vector for each sample

Returns

data layout of the populated matrix row:

 ID|names|outputNames