From 1501580a22802cfa2892c6596af17eb84356a169 Mon Sep 17 00:00:00 2001 From: Keren Fuentes Date: Tue, 20 Oct 2020 15:32:08 -0700 Subject: [PATCH 1/2] better error fix --- .../Transforms/ColumnConcatenatingEstimator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.ML.Data/Transforms/ColumnConcatenatingEstimator.cs b/src/Microsoft.ML.Data/Transforms/ColumnConcatenatingEstimator.cs index ef5508a648..89ef6a8d57 100644 --- a/src/Microsoft.ML.Data/Transforms/ColumnConcatenatingEstimator.cs +++ b/src/Microsoft.ML.Data/Transforms/ColumnConcatenatingEstimator.cs @@ -116,8 +116,8 @@ private SchemaShape.Column CheckInputsAndMakeColumn( } if (!col.ItemType.Equals(itemType)) { - throw _host.Except($"Column '{sources[i]}' has values of {col.ItemType}, " + - $"which is not the same as earlier observed type of {itemType}."); + throw _host.Except($"Concatenated columns should have the same type. Column '{sources[i]}' has values of {col.ItemType}, " + + $"but expected columns of type {itemType}."); } varVector |= col.Kind == SchemaShape.Column.VectorKind.VariableVector; isNormalized &= col.IsNormalized(); From 0180e087416839f880e57af397f61d23313d65c8 Mon Sep 17 00:00:00 2001 From: Keren Fuentes Date: Tue, 20 Oct 2020 16:03:19 -0700 Subject: [PATCH 2/2] revisions --- .../Transforms/ColumnConcatenatingEstimator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.ML.Data/Transforms/ColumnConcatenatingEstimator.cs b/src/Microsoft.ML.Data/Transforms/ColumnConcatenatingEstimator.cs index 89ef6a8d57..1eaf3be122 100644 --- a/src/Microsoft.ML.Data/Transforms/ColumnConcatenatingEstimator.cs +++ b/src/Microsoft.ML.Data/Transforms/ColumnConcatenatingEstimator.cs @@ -116,8 +116,8 @@ private SchemaShape.Column CheckInputsAndMakeColumn( } if (!col.ItemType.Equals(itemType)) { - throw _host.Except($"Concatenated columns should have the same type. Column '{sources[i]}' has values of {col.ItemType}, " + - $"but expected columns of type {itemType}."); + throw _host.Except($"Concatenated columns should have the same type. Column '{sources[i]}' has type of {col.ItemType}, " + + $"but expected column type is {itemType}."); } varVector |= col.Kind == SchemaShape.Column.VectorKind.VariableVector; isNormalized &= col.IsNormalized();