@@ -11,6 +11,26 @@ namespace Microsoft.ML
11
11
/// <include file='doc.xml' path='doc/members/member[@name="TensorflowTransformer"]/*' />
12
12
public static class TensorflowCatalog
13
13
{
14
+ /// <summary>
15
+ /// Scores a dataset using a pre-traiend TensorFlow model located in <paramref name="modelLocation"/>.
16
+ /// </summary>
17
+ /// <param name="catalog">The transform's catalog.</param>
18
+ /// <param name="modelLocation">Location of the TensorFlow model.</param>
19
+ /// <param name="inputColumnName"> The name of the model inputs.</param>
20
+ /// <param name="outputColumnName">The name of the requested model outputs.</param>
21
+ /// <example>
22
+ /// <format type="text/markdown">
23
+ /// <]
25
+ /// ]]>
26
+ /// </format>
27
+ /// </example>
28
+ public static TensorFlowEstimator ScoreTensorFlowModel ( this TransformsCatalog catalog ,
29
+ string modelLocation ,
30
+ string outputColumnName ,
31
+ string inputColumnName )
32
+ => new TensorFlowEstimator ( CatalogUtils . GetEnvironment ( catalog ) , new [ ] { outputColumnName } , new [ ] { inputColumnName } , modelLocation ) ;
33
+
14
34
/// <summary>
15
35
/// Scores a dataset using a pre-traiend TensorFlow model located in <paramref name="modelLocation"/>.
16
36
/// </summary>
@@ -31,6 +51,19 @@ public static TensorFlowEstimator ScoreTensorFlowModel(this TransformsCatalog ca
31
51
string [ ] inputColumnNames )
32
52
=> new TensorFlowEstimator ( CatalogUtils . GetEnvironment ( catalog ) , outputColumnNames , inputColumnNames , modelLocation ) ;
33
53
54
+ /// <summary>
55
+ /// Scores a dataset using a pre-traiend TensorFlow model specified via <paramref name="tensorFlowModel"/>.
56
+ /// </summary>
57
+ /// <param name="catalog">The transform's catalog.</param>
58
+ /// <param name="tensorFlowModel">The pre-trained TensorFlow model.</param>
59
+ /// <param name="inputColumnName"> The name of the model inputs.</param>
60
+ /// <param name="outputColumnName">The name of the requested model outputs.</param>
61
+ public static TensorFlowEstimator ScoreTensorFlowModel ( this TransformsCatalog catalog ,
62
+ TensorFlowModelInfo tensorFlowModel ,
63
+ string outputColumnName ,
64
+ string inputColumnName )
65
+ => new TensorFlowEstimator ( CatalogUtils . GetEnvironment ( catalog ) , new [ ] { outputColumnName } , new [ ] { inputColumnName } , tensorFlowModel ) ;
66
+
34
67
/// <summary>
35
68
/// Scores a dataset using a pre-traiend TensorFlow model specified via <paramref name="tensorFlowModel"/>.
36
69
/// </summary>
@@ -49,20 +82,20 @@ public static TensorFlowEstimator ScoreTensorFlowModel(this TransformsCatalog ca
49
82
/// The model is specified in the <see cref="TensorFlowTransformer.Options.ModelLocation"/>.
50
83
/// </summary>
51
84
/// <param name="catalog">The transform's catalog.</param>
52
- /// <param name="args ">The <see cref="TensorFlowTransformer.Options"/> specifying the inputs and the settings of the <see cref="TensorFlowEstimator"/>.</param>
85
+ /// <param name="options ">The <see cref="TensorFlowTransformer.Options"/> specifying the inputs and the settings of the <see cref="TensorFlowEstimator"/>.</param>
53
86
public static TensorFlowEstimator TensorFlow ( this TransformsCatalog catalog ,
54
- TensorFlowTransformer . Options args )
55
- => new TensorFlowEstimator ( CatalogUtils . GetEnvironment ( catalog ) , args ) ;
87
+ TensorFlowTransformer . Options options )
88
+ => new TensorFlowEstimator ( CatalogUtils . GetEnvironment ( catalog ) , options ) ;
56
89
57
90
/// <summary>
58
91
/// Scores or retrains (based on setting of the <see cref="TensorFlowTransformer.Options.ReTrain"/>) a pre-traiend TensorFlow model specified via <paramref name="tensorFlowModel"/>.
59
92
/// </summary>
60
93
/// <param name="catalog">The transform's catalog.</param>
61
- /// <param name="args ">The <see cref="TensorFlowTransformer.Options"/> specifying the inputs and the settings of the <see cref="TensorFlowEstimator"/>.</param>
94
+ /// <param name="options ">The <see cref="TensorFlowTransformer.Options"/> specifying the inputs and the settings of the <see cref="TensorFlowEstimator"/>.</param>
62
95
/// <param name="tensorFlowModel">The pre-trained TensorFlow model.</param>
63
96
public static TensorFlowEstimator TensorFlow ( this TransformsCatalog catalog ,
64
- TensorFlowTransformer . Options args ,
97
+ TensorFlowTransformer . Options options ,
65
98
TensorFlowModelInfo tensorFlowModel )
66
- => new TensorFlowEstimator ( CatalogUtils . GetEnvironment ( catalog ) , args , tensorFlowModel ) ;
99
+ => new TensorFlowEstimator ( CatalogUtils . GetEnvironment ( catalog ) , options , tensorFlowModel ) ;
67
100
}
68
101
}
0 commit comments