Skip to content

Commit 2b85451

Browse files
author
Becca McHenry
committed
update string
1 parent 9674032 commit 2b85451

File tree

5 files changed

+20
-6
lines changed

5 files changed

+20
-6
lines changed

src/Microsoft.Data.Analysis/IDataView.Extension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ private static DataFrameColumn GetVectorDataFrame(VectorDataViewType vectorType,
205205
return new VBufferDataFrameColumn<decimal>(name);
206206
}
207207

208-
throw new NotSupportedException("Specified vector subtype " + itemType.ToString() + " is not supported.");
208+
throw new NotSupportedException(String.Format(Microsoft.Data.Strings.VectorSubTypeNotSupported, itemType.ToString()));
209209
}
210210
}
211211

src/Microsoft.Data.Analysis/Strings.Designer.cs

Lines changed: 11 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Microsoft.Data.Analysis/Strings.resx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,4 +243,8 @@
243243
<data name="StreamDoesntSupportReading" xml:space="preserve">
244244
<value>Stream doesn't support reading</value>
245245
</data>
246+
<data name="VectorSubTypeNotSupported" xml:space="preserve">
247+
<value>Specified vector subtype {0} is not supported.</value>
248+
<comment>{0} vectory subtype</comment>
249+
</data>
246250
</root>

src/Microsoft.ML.AutoML/API/AutoMLExperimentExtension.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,14 +254,13 @@ public static AutoMLExperiment SetGridSearchTuner(this AutoMLExperiment experime
254254

255255
return tuner;
256256
});
257-
257+
258258
return experiment;
259259
}
260260

261261
/// Set checkpoint folder for <see cref="AutoMLExperiment"/>. The checkpoint folder will be used to save
262262
/// temporary output, run history and many other stuff which will be used for restoring training process
263263
/// from last checkpoint and continue training.
264-
/// </summary>
265264
/// <param name="experiment"><see cref="AutoMLExperiment"/>.</param>
266265
/// <param name="folder">checkpoint folder. This folder will be created if not exist.</param>
267266
/// <returns><see cref="AutoMLExperiment"/></returns>

test/Microsoft.Data.Analysis.Tests/Microsoft.Data.Analysis.Tests.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232

3333
<ItemGroup>
3434
<Compile Include="../../src/Microsoft.Data.Analysis/Strings.Designer.cs" />
35-
<EmbeddedResource Include="../../src/Microsoft.Data.Analysis/Strings.resx" LogicalName="Microsoft.Data.Analysis.Strings.resources" />
35+
<EmbeddedResource Include="../../src/Microsoft.Data.Analysis/Strings.resx" LogicalName="Microsoft.Data.Analysis.Strings.resources">
36+
<Generator></Generator>
37+
</EmbeddedResource>
3638
</ItemGroup>
3739

3840
</Project>

0 commit comments

Comments
 (0)