Skip to content

Commit ba850dc

Browse files
committed
merge fix.
1 parent 2caf24f commit ba850dc

File tree

1 file changed

+0
-101
lines changed

1 file changed

+0
-101
lines changed

src/Microsoft.ML.Transforms/NormalizerCatalog.cs

-101
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ namespace Microsoft.ML
99
/// </summary>
1010
public static class NormalizationCatalog
1111
{
12-
1312
/// <summary>
1413
/// Normalize (rescale) several columns according to the specified <paramref name="mode"/>.
1514
/// </summary>
@@ -133,106 +132,6 @@ public static NormalizingEstimator NormalizeSupervisedBinning(this TransformsCat
133132
return new NormalizingEstimator(CatalogUtils.GetEnvironment(catalog), columnOptions);
134133
}
135134

136-
/// <summary>
137-
/// Normalize (rescale) the column according to the <see cref="NormalizingEstimator.NormalizationMode.MinMax"/> mode.
138-
/// It normalizes the data based on the observed minimum and maximum values of the data.
139-
/// </summary>
140-
/// <param name="catalog">The transform catalog</param>
141-
/// <param name="outputColumnName">Name of the column resulting from the transformation of <paramref name="inputColumnName"/>.</param>
142-
/// <param name="inputColumnName">Name of the column to transform. If set to <see langword="null"/>, the value of the <paramref name="outputColumnName"/> will be used as source.</param>
143-
/// <param name="maximumExampleCount">Maximum number of examples used to train the normalizer.</param>
144-
/// <param name="fixZero">Whether to map zero to zero, preserving sparsity.</param>
145-
public static NormalizingEstimator NormalizeMinMax(this TransformsCatalog catalog,
146-
string outputColumnName, string inputColumnName = null,
147-
long maximumExampleCount = NormalizingEstimator.Defaults.MaximumExampleCount,
148-
bool fixZero = NormalizingEstimator.Defaults.EnsureZeroUntouched)
149-
{
150-
var columnOptions = new NormalizingEstimator.MinMaxColumnOptions(outputColumnName, inputColumnName, maximumExampleCount, fixZero);
151-
return new NormalizingEstimator(CatalogUtils.GetEnvironment(catalog), columnOptions);
152-
}
153-
154-
/// <summary>
155-
/// Normalize (rescale) the column according to the <see cref="NormalizingEstimator.NormalizationMode.MeanVariance"/> mode.
156-
/// It normalizes the data based on the computed mean and variance of the data.
157-
/// </summary>
158-
/// <param name="catalog">The transform catalog</param>
159-
/// <param name="outputColumnName">Name of the column resulting from the transformation of <paramref name="inputColumnName"/>.</param>
160-
/// <param name="inputColumnName">Name of the column to transform. If set to <see langword="null"/>, the value of the <paramref name="outputColumnName"/> will be used as source.</param>
161-
/// <param name="maximumExampleCount">Maximum number of examples used to train the normalizer.</param>
162-
/// <param name="fixZero">Whether to map zero to zero, preserving sparsity.</param>
163-
/// <param name="useCdf">Whether to use CDF as the output.</param>
164-
public static NormalizingEstimator NormalizeMeanVariance(this TransformsCatalog catalog,
165-
string outputColumnName, string inputColumnName = null,
166-
long maximumExampleCount = NormalizingEstimator.Defaults.MaximumExampleCount,
167-
bool fixZero = NormalizingEstimator.Defaults.EnsureZeroUntouched,
168-
bool useCdf = NormalizingEstimator.Defaults.MeanVarCdf)
169-
{
170-
var columnOptions = new NormalizingEstimator.MeanVarianceColumnOptions(outputColumnName, inputColumnName, maximumExampleCount, fixZero, useCdf);
171-
return new NormalizingEstimator(CatalogUtils.GetEnvironment(catalog), columnOptions);
172-
}
173-
174-
/// <summary>
175-
/// Normalize (rescale) the column according to the <see cref="NormalizingEstimator.NormalizationMode.LogMeanVariance"/> mode.
176-
/// It normalizes the data based on the computed mean and variance of the logarithm of the data.
177-
/// </summary>
178-
/// <param name="catalog">The transform catalog</param>
179-
/// <param name="outputColumnName">Name of the column resulting from the transformation of <paramref name="inputColumnName"/>.</param>
180-
/// <param name="inputColumnName">Name of the column to transform. If set to <see langword="null"/>, the value of the <paramref name="outputColumnName"/> will be used as source.</param>
181-
/// <param name="maximumExampleCount">Maximum number of examples used to train the normalizer.</param>
182-
/// <param name="useCdf">Whether to use CDF as the output.</param>
183-
public static NormalizingEstimator NormalizeLogMeanVariance(this TransformsCatalog catalog,
184-
string outputColumnName, string inputColumnName = null,
185-
long maximumExampleCount = NormalizingEstimator.Defaults.MaximumExampleCount,
186-
bool useCdf = NormalizingEstimator.Defaults.LogMeanVarCdf)
187-
{
188-
var columnOptions = new NormalizingEstimator.LogMeanVarianceColumnOptions(outputColumnName, inputColumnName, maximumExampleCount, useCdf);
189-
return new NormalizingEstimator(CatalogUtils.GetEnvironment(catalog), columnOptions);
190-
}
191-
192-
/// <summary>
193-
/// Normalize (rescale) the column according to the <see cref="NormalizingEstimator.NormalizationMode.Binning"/> mode.
194-
/// The values are assigned into bins with equal density.
195-
/// </summary>
196-
/// <param name="catalog">The transform catalog</param>
197-
/// <param name="outputColumnName">Name of the column resulting from the transformation of <paramref name="inputColumnName"/>.</param>
198-
/// <param name="inputColumnName">Name of the column to transform. If set to <see langword="null"/>, the value of the <paramref name="outputColumnName"/> will be used as source.</param>
199-
/// <param name="maximumExampleCount">Maximum number of examples used to train the normalizer.</param>
200-
/// <param name="fixZero">Whether to map zero to zero, preserving sparsity.</param>
201-
/// <param name="maximumBinCount">Maximum number of bins (power of 2 recommended).</param>
202-
public static NormalizingEstimator NormalizeBinning(this TransformsCatalog catalog,
203-
string outputColumnName, string inputColumnName = null,
204-
long maximumExampleCount = NormalizingEstimator.Defaults.MaximumExampleCount,
205-
bool fixZero = NormalizingEstimator.Defaults.EnsureZeroUntouched,
206-
int maximumBinCount = NormalizingEstimator.Defaults.MaximumBinCount)
207-
{
208-
var columnOptions = new NormalizingEstimator.BinningColumnOptions(outputColumnName, inputColumnName, maximumExampleCount, fixZero, maximumBinCount);
209-
return new NormalizingEstimator(CatalogUtils.GetEnvironment(catalog), columnOptions);
210-
}
211-
212-
/// <summary>
213-
/// Normalize (rescale) the column according to the <see cref="NormalizingEstimator.NormalizationMode.SupervisedBinning"/> mode.
214-
/// The values are assigned into bins based on correlation with the <paramref name="labelColumnName"/> column.
215-
/// </summary>
216-
/// <param name="catalog">The transform catalog</param>
217-
/// <param name="outputColumnName">Name of the column resulting from the transformation of <paramref name="inputColumnName"/>.</param>
218-
/// <param name="inputColumnName">Name of the column to transform. If set to <see langword="null"/>, the value of the <paramref name="outputColumnName"/> will be used as source.</param>
219-
/// <param name="labelColumnName">Name of the label column for supervised binning.</param>
220-
/// <param name="maximumExampleCount">Maximum number of examples used to train the normalizer.</param>
221-
/// <param name="fixZero">Whether to map zero to zero, preserving sparsity.</param>
222-
/// <param name="maximumBinCount">Maximum number of bins (power of 2 recommended).</param>
223-
/// <param name="mininimumExamplesPerBin">Minimum number of examples per bin.</param>
224-
public static NormalizingEstimator NormalizeSupervisedBinning(this TransformsCatalog catalog,
225-
string outputColumnName, string inputColumnName = null,
226-
string labelColumnName = DefaultColumnNames.Label,
227-
long maximumExampleCount = NormalizingEstimator.Defaults.MaximumExampleCount,
228-
bool fixZero = NormalizingEstimator.Defaults.EnsureZeroUntouched,
229-
int maximumBinCount = NormalizingEstimator.Defaults.MaximumBinCount,
230-
int mininimumExamplesPerBin = NormalizingEstimator.Defaults.MininimumBinSize)
231-
{
232-
var columnOptions = new NormalizingEstimator.SupervisedBinningColumOptions(outputColumnName, inputColumnName, labelColumnName, maximumExampleCount, fixZero, maximumBinCount, mininimumExamplesPerBin);
233-
return new NormalizingEstimator(CatalogUtils.GetEnvironment(catalog), columnOptions);
234-
}
235-
236135
/// <summary>
237136
/// Normalize (rescale) columns according to specified custom parameters.
238137
/// </summary>

0 commit comments

Comments
 (0)