Skip to content

Commit f202c0f

Browse files
committed
rebase fixes
1 parent fed1fc2 commit f202c0f

File tree

2 files changed

+2
-29
lines changed

2 files changed

+2
-29
lines changed

src/Microsoft.ML.Data/Transforms/ConversionsExtensionsCatalog.cs

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -229,33 +229,6 @@ public static ValueMappingEstimator ValueMap<TInputType, TOutputType>(
229229
params (string outputColumnName, string inputColumnName)[] columns)
230230
=> new ValueMappingEstimator<TInputType, TOutputType[]>(CatalogUtils.GetEnvironment(catalog), keys, values, columns);
231231

232-
/// <summary>
233-
/// <see cref="ValueMappingEstimator"/>
234-
/// </summary>
235-
/// <typeparam name="TInputType">The key type.</typeparam>
236-
/// <typeparam name="TOutputType">The value type.</typeparam>
237-
/// <param name="catalog">The categorical transform's catalog</param>
238-
/// <param name="keys">The list of keys to use for the mapping. The mapping is 1-1 with values. This list must be the same length as values and
239-
/// cannot contain duplicate keys.</param>
240-
/// <param name="values">The list of values (an array) to pair with the keys for the mapping. This list must be equal to the same length as keys.</param>
241-
/// <param name="columns">The columns to apply this transform on.</param>
242-
/// <returns>An instance of the ValueMappingEstimator</returns>
243-
/// <example>
244-
/// <format type="text/markdown">
245-
/// <![CDATA[
246-
/// [!code-csharp[ValueMappingEstimator](~/../docs/samples/docs/samples/Microsoft.ML.Samples/Dynamic/ValueMapping.cs)]
247-
/// [!code-csharp[ValueMappingEstimator](~/../docs/samples/docs/samples/Microsoft.ML.Samples/Dynamic/ValueMappingStringToKeyType.cs)]
248-
/// [!code-csharp[ValueMappingEstimator](~/../docs/samples/docs/samples/Microsoft.ML.Samples/Dynamic/ValueMappingFloatToString.cs)]
249-
/// [!code-csharp[ValueMappingEstimator](~/../docs/samples/docs/samples/Microsoft.ML.Samples/Dynamic/ValueMappingStringToArray.cs)]
250-
/// ]]></format>
251-
/// </example>
252-
public static ValueMappingEstimator<TInputType, TOutputType> ValueMap<TInputType, TOutputType>(
253-
this TransformsCatalog.ConversionTransforms catalog,
254-
IEnumerable<TInputType> keys,
255-
IEnumerable<TOutputType[]> values,
256-
params (string outputColumnName, string inputColumnName)[] columns)
257-
=> new ValueMappingEstimator<TInputType, TOutputType>(CatalogUtils.GetEnvironment(catalog), keys, values, columns);
258-
259232
/// <summary>
260233
/// <see cref="ValueMappingEstimator"/>
261234
/// </summary>

src/Microsoft.ML.Data/Transforms/SkipTakeFilter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ public static class SkipFilter
275275
/// <param name="env">Host Environment.</param>
276276
/// <param name="input">>Input <see cref="IDataView"/>. This is the output from previous transform or loader.</param>
277277
/// <param name="count">Number of rows to skip</param>
278-
public static IDataTransform Create(IHostEnvironment env, IDataView input, long count = SkipTakeFilter.Options.DefaultSkip)
278+
public static IDataView Create(IHostEnvironment env, IDataView input, long count = SkipTakeFilter.Options.DefaultSkip)
279279
=> SkipTakeFilter.Create(env, new SkipTakeFilter.SkipOptions() { Count = count }, input);
280280
}
281281

@@ -288,7 +288,7 @@ public static class TakeFilter
288288
/// <param name="env">Host Environment.</param>
289289
/// <param name="input">>Input <see cref="IDataView"/>. This is the output from previous transform or loader.</param>
290290
/// <param name="count">Number of rows to take</param>
291-
public static IDataTransform Create(IHostEnvironment env, IDataView input, long count = SkipTakeFilter.Options.DefaultTake)
291+
public static IDataView Create(IHostEnvironment env, IDataView input, long count = SkipTakeFilter.Options.DefaultTake)
292292
=> SkipTakeFilter.Create(env, new SkipTakeFilter.TakeOptions() { Count = count }, input);
293293
}
294294
}

0 commit comments

Comments
 (0)