Skip to content

Commit b8e2259

Browse files
authored
Expose Ml/FeatureHasher's constructors (#761)
1 parent 6197dc4 commit b8e2259

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/csharp/Microsoft.Spark/ML/Feature/FeatureHasher.cs

+10-2
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,19 @@ public class FeatureHasher: FeatureBase<FeatureHasher>, IJvmObjectReferenceProvi
1616
private static readonly string s_featureHasherClassName =
1717
"org.apache.spark.ml.feature.FeatureHasher";
1818

19-
internal FeatureHasher() : base(s_featureHasherClassName)
19+
/// <summary>
20+
/// Creates a <see cref="FeatureHasher"/> without any parameters.
21+
/// </summary>
22+
public FeatureHasher() : base(s_featureHasherClassName)
2023
{
2124
}
2225

23-
internal FeatureHasher(string uid) : base(s_featureHasherClassName, uid)
26+
/// <summary>
27+
/// Creates a <see cref="FeatureHasher"/> with a UID that is used to give the
28+
/// <see cref="FeatureHasher"/> a unique ID.
29+
/// </summary>
30+
/// <param name="uid">An immutable unique ID for the object and its derivatives.</param>
31+
public FeatureHasher(string uid) : base(s_featureHasherClassName, uid)
2432
{
2533
}
2634

0 commit comments

Comments
 (0)