Skip to content

Commit 4aabd31

Browse files
committed
Senja comments
1 parent 936fbbf commit 4aabd31

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

src/Microsoft.ML.Api/TypedCursor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,8 @@ public static ICursorable<TRow> AsCursorable<TRow>(this IDataView data, bool ign
563563
SchemaDefinition schemaDefinition = null)
564564
where TRow : class, new()
565565
{
566-
// REVIEW: Take this as a parameter, or else make it a method on he context itself.
567-
var ml = new MLContext(42);
566+
// REVIEW: Take this as a parameter, or else make it a method on the context itself.
567+
var ml = new MLContext();
568568
return data.AsCursorable<TRow>(ml, ignoreMissingColumns, schemaDefinition);
569569
}
570570

src/Microsoft.ML.Core/Data/IHostEnvironment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public interface IHostEnvironment : IChannelProvider, IProgressChannelProvider
7373
/// The use of suffix and prefix, including whether they have any affect, is up to the host environment.
7474
/// </summary>
7575
[Obsolete("The host environment is not disposable, so it is inappropriate to use this method. " +
76-
"Handle your own temporary files. If you cannot, reconsider your life choices.")]
76+
"Please handle your own temporary files within the component yourself, including their proper disposal and deletion.")]
7777
IFileHandle CreateTempFile(string suffix = null, string prefix = null);
7878

7979
/// <summary>

src/Microsoft.ML.Core/Data/ServerChannel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace Microsoft.ML.Runtime
2020
/// that the library will publish some sort of restful API.
2121
/// </summary>
2222
[BestFriend]
23-
public sealed class ServerChannel : ServerChannel.IPendingBundleNotification, IDisposable
23+
internal sealed class ServerChannel : ServerChannel.IPendingBundleNotification, IDisposable
2424
{
2525
// See ServerChannel.md for a more elaborate discussion of high level usage and design.
2626
private readonly IChannelProvider _chp;

src/Microsoft.ML.Data/Commands/DataCommand.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ namespace Microsoft.ML.Runtime.Data
1717
/// <summary>
1818
/// This holds useful base classes for commands that ingest a primary dataset and deal with associated model files.
1919
/// </summary>
20-
public static class DataCommand
20+
[BestFriend]
21+
internal static class DataCommand
2122
{
2223
public abstract class ArgumentsBase
2324
{

0 commit comments

Comments
 (0)