@@ -252,12 +252,12 @@ public SchemaShape GetOutputSchema(SchemaShape inputSchema)
252
252
foreach ( var colInfo in _columns )
253
253
{
254
254
if ( ! inputSchema . TryFindColumn ( colInfo . Input , out var col ) )
255
- throw _host . ExceptSchemaMismatch ( nameof ( inputSchema ) , "input " , colInfo . Input ) ;
255
+ throw _host . ExceptSchemaMismatch ( nameof ( inputSchema ) , "source " , colInfo . Input ) ;
256
256
if ( col . Kind == SchemaShape . Column . VectorKind . VariableVector )
257
- throw _host . ExceptSchemaMismatch ( nameof ( inputSchema ) , "input " , colInfo . Input , "known-size vector or scalar" , col . GetTypeString ( ) ) ;
257
+ throw _host . ExceptSchemaMismatch ( nameof ( inputSchema ) , "source " , colInfo . Input , "known-size vector or scalar" , col . GetTypeString ( ) ) ;
258
258
259
259
if ( ! col . ItemType . Equals ( NumberType . R4 ) && ! col . ItemType . Equals ( NumberType . R8 ) )
260
- throw _host . ExceptSchemaMismatch ( nameof ( inputSchema ) , "input " , colInfo . Input , "vector or scalar of float or double" , col . GetTypeString ( ) ) ;
260
+ throw _host . ExceptSchemaMismatch ( nameof ( inputSchema ) , "source " , colInfo . Input , "vector or scalar of float or double" , col . GetTypeString ( ) ) ;
261
261
262
262
var isNormalizedMeta = new SchemaShape . Column ( MetadataUtils . Kinds . IsNormalized , SchemaShape . Column . VectorKind . Scalar ,
263
263
BoolType . Instance , false ) ;
@@ -401,7 +401,7 @@ public static NormalizingTransformer Train(IHostEnvironment env, IDataView data,
401
401
var info = columns [ i ] ;
402
402
bool success = data . Schema . TryGetColumnIndex ( info . Input , out srcCols [ i ] ) ;
403
403
if ( ! success )
404
- throw env . ExceptSchemaMismatch ( nameof ( data ) , "input " , info . Input ) ;
404
+ throw env . ExceptSchemaMismatch ( nameof ( data ) , "source " , info . Input ) ;
405
405
srcTypes [ i ] = data . Schema [ srcCols [ i ] ] . Type ;
406
406
activeCols . Add ( data . Schema [ srcCols [ i ] ] ) ;
407
407
@@ -562,10 +562,10 @@ protected override void CheckInputColumn(Schema inputSchema, int col, int srcCol
562
562
var colType = inputSchema [ srcCol ] . Type ;
563
563
VectorType vectorType = colType as VectorType ;
564
564
if ( vectorType != null && ! vectorType . IsKnownSize )
565
- throw Host . ExceptSchemaMismatch ( nameof ( inputSchema ) , "input " , ColumnPairs [ col ] . input , expectedType , "variable-size vector" ) ;
565
+ throw Host . ExceptSchemaMismatch ( nameof ( inputSchema ) , "source " , ColumnPairs [ col ] . input , expectedType , "variable-size vector" ) ;
566
566
ColumnType itemType = vectorType ? . ItemType ?? colType ;
567
567
if ( ! itemType . Equals ( NumberType . R4 ) && ! itemType . Equals ( NumberType . R8 ) )
568
- throw Host . ExceptSchemaMismatch ( nameof ( inputSchema ) , "input " , ColumnPairs [ col ] . input , expectedType , colType . ToString ( ) ) ;
568
+ throw Host . ExceptSchemaMismatch ( nameof ( inputSchema ) , "source " , ColumnPairs [ col ] . input , expectedType , colType . ToString ( ) ) ;
569
569
}
570
570
571
571
// Temporary: enables SignatureDataTransform factory methods.
0 commit comments