Class SplitInstanceSource
Factory for the SplitInstanceSource class.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Learners.Mappings
Assembly: Microsoft.ML.Probabilistic.Learners.Recommender.dll
Syntax
public static class SplitInstanceSource
Methods
Test<TInstanceSource>(TInstanceSource)
Creates an instance source restricted to the instances in the test set of a given instance source.
Declaration
public static SplitInstanceSource<TInstanceSource> Test<TInstanceSource>(TInstanceSource instanceSource)
Parameters
Type | Name | Description |
---|---|---|
TInstanceSource | instanceSource | The unrestricted instance source. |
Returns
Type | Description |
---|---|
SplitInstanceSource<TInstanceSource> | The instance source restricted to the test set instances. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of the unrestricted instance source. |
Training<TInstanceSource>(TInstanceSource)
Creates an instance source restricted to the instances in the training set of a given instance source.
Declaration
public static SplitInstanceSource<TInstanceSource> Training<TInstanceSource>(TInstanceSource instanceSource)
Parameters
Type | Name | Description |
---|---|---|
TInstanceSource | instanceSource | The unrestricted instance source. |
Returns
Type | Description |
---|---|
SplitInstanceSource<TInstanceSource> | The instance source restricted to the training set instances. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of the unrestricted instance source. |