Skip to content

Commit 274c94e

Browse files
committed
Internalize ICommandLineComponentFactory
1 parent 5e58a79 commit 274c94e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Microsoft.ML.Core/CommandLine/CmdParser.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ internal enum SettingsFlags
4040
///
4141
/// This allows components to be created by name, signature type, and a settings string.
4242
/// </summary>
43-
public interface ICommandLineComponentFactory : IComponentFactory
43+
[BestFriend]
44+
internal interface ICommandLineComponentFactory : IComponentFactory
4445
{
4546
Type SignatureType { get; }
4647
string Name { get; }

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ private bool ShouldAddColumn(Schema schema, int i, uint scoreSet, bool outputNam
232232
}
233233
}
234234

235-
public static class ScoreUtils
235+
[BestFriend]
236+
internal static class ScoreUtils
236237
{
237238
public static IDataScorerTransform GetScorer(IPredictor predictor, RoleMappedData data, IHostEnvironment env, RoleMappedSchema trainSchema)
238239
{

0 commit comments

Comments
 (0)