Numerical Decomposition
Original integration-test class: DecompositionNumerical in 4.2.2.ML.Decomposition.Numerical.cs. This is a direct SDK operation, not a PipelineClient workflow.
caution
The original xUnit theory is explicitly skipped: numerical train/test fit-transform is unsupported by the supplied decomposition SDK contract. No recorded output exists.
Prerequisites
Use the original SDK test project, its xUnit dependencies, helper classes and any upstream cache entries referenced in the source. See configuration.
Run the original integration test
This source is skipped; the following filter cannot enable the skipped theory.
dotnet test --filter "FullyQualifiedName~ParallelModel.Sdk.UnitTests.DecompositionNumerical.Run"
Full C# source
The supplied test logic is preserved. The method signature is:
Run(string datasetName, string selectionName, string impute, string name)
using ParallelModel.Sdk.UnitTests.Attributes;
namespace ParallelModel.Sdk.UnitTests;
[Collection("Decomposition")]
public sealed class DecompositionNumerical
{
private static readonly string[] Algorithms = { "DictionaryLearning", "FactorAnalysis", "FastICA",
"IncrementalPCA", "KernelPCA", "MiniBatchDictionaryLearning", "MiniBatchSparsePCA", "PCA",
"SparsePCA", "TruncatedSVD" };
public static TheoryData<string, string, string, string> DecompositionRequests =>
ImputeAttribute.GetRequests(typeof(DecompositionNumerical), nameof(Run), DecompositionAlgorithmsFor);
private static string[] DecompositionAlgorithmsFor(string datasetName) => datasetName switch
{
"LoadBreastCancer" => [.. Algorithms, "NMF", "MiniBatchNMF"],
_ => Algorithms
};
[Theory(Skip = "The supplied Decomposition SDK only supports text input with internal evaluation; numerical train/test fit-transform is unsupported.")]
[Trait("Category", "Integration")]
[MemberData(nameof(DecompositionRequests))]
[Impute("LoadDiabetes", "TrainTestSplit", "SimpleImputer")]
[Impute("LoadDiabetes", "TrainTestSplit", "KNNImputer")]
[Impute("LoadDiabetes", "TrainTestSplit", "IterativeImputer")]
[Impute("LoadBreastCancer", "TrainTestSplit", "SimpleImputer")]
[Impute("LoadBreastCancer", "TrainTestSplit", "KNNImputer")]
[Impute("LoadBreastCancer", "TrainTestSplit", "IterativeImputer")]
public Task Run(string datasetName, string selectionName, string impute, string name)
{
throw new NotSupportedException("Numerical decomposition requires a numerical SDK/controller/worker contract.");
}
}