|
4 | 4 |
|
5 | 5 | <member name="TensorflowTransform">
|
6 | 6 | <summary>
|
7 |
| - Extracts hidden layers' values from a pre-trained Tensorflow model. |
| 7 | + Extracts hidden layers' values from a pre-trained Tensorflow model. |
8 | 8 | </summary>
|
9 | 9 | <remarks>
|
10 | 10 | <para>
|
|
44 | 44 | </a>.
|
45 | 45 |
|
46 | 46 | </remarks>
|
47 |
| - </member> |
48 |
| - <example name="TensorflowTransform"> |
49 | 47 | <example>
|
50 | 48 | <code language="csharp">
|
51 | 49 | pipeline.Add(new TextLoader(dataFile).CreateFrom<MNISTData>(useHeader: false));
|
52 | 50 | pipeline.Add(new ColumnCopier(("NumericImageVec", "Input");
|
53 | 51 | pipeline.Add(new TensorFlowScorer()
|
54 | 52 | {
|
55 |
| - ModelFile = model_location; |
56 |
| - InputColumns = new []{ "Input" }; |
57 |
| - OutputColumns = "Output" |
| 53 | + ModelFile = model_location; |
| 54 | + InputColumns = new []{ "Input" }; |
| 55 | + OutputColumns = "Output" |
58 | 56 | }
|
59 | 57 | </code>
|
60 | 58 | </example>
|
61 | 59 | <example>
|
62 | 60 | <code language="csharp">
|
63 | 61 | var pipeline = new LearningPipeline(seed: 1);
|
64 | 62 | pipeline.Add(new TextLoader(dataFile).CreateFrom<CifarData>(useHeader: false));
|
65 |
| - pipeline.Add(new ImageLoader(("ImagePath", "ImageReal")) |
| 63 | + pipeline.Add(new ImageLoader(("ImagePath", "ImageReal")) |
66 | 64 | {
|
67 |
| - ImageFolder = imageFolder |
| 65 | + ImageFolder = imageFolder |
68 | 66 | });
|
69 | 67 |
|
70 |
| - pipeline.Add(new ImageResizer(("ImageReal", "ImageCropped")) |
| 68 | + pipeline.Add(new ImageResizer(("ImageReal", "ImageCropped")) |
71 | 69 | {
|
72 |
| - ImageHeight = imageHeight, |
73 |
| - ImageWidth = imageWidth, |
74 |
| - Resizing = ImageResizerTransformResizingKind.IsoCrop |
| 70 | + ImageHeight = imageHeight, |
| 71 | + ImageWidth = imageWidth, |
| 72 | + Resizing = ImageResizerTransformResizingKind.IsoCrop |
75 | 73 | });
|
76 | 74 |
|
77 |
| - pipeline.Add(new ImagePixelExtractor(("ImageCropped", "Input")) |
| 75 | + pipeline.Add(new ImagePixelExtractor(("ImageCropped", "Input")) |
78 | 76 | {
|
79 |
| - UseAlpha = false, |
80 |
| - InterleaveArgb = true |
| 77 | + UseAlpha = false, |
| 78 | + InterleaveArgb = true |
81 | 79 | });
|
82 | 80 |
|
83 | 81 | pipeline.Add(new TensorFlowScorer()
|
84 | 82 | {
|
85 |
| - ModelFile = model_location, |
86 |
| - InputColumns = new[] { "Input" }, |
87 |
| - OutputColumns = "Output" |
| 83 | + ModelFile = model_location, |
| 84 | + InputColumns = new[] { "Input" }, |
| 85 | + OutputColumns = "Output" |
88 | 86 | });
|
89 | 87 | </code>
|
90 |
| - </example> |
91 | 88 | </example>
|
| 89 | + </member> |
92 | 90 |
|
93 | 91 | </members>
|
94 | 92 | </doc>
|
0 commit comments