Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Microsoft.ML.Runtime.Data;
using Microsoft.ML.Runtime.EntryPoints;
using Microsoft.ML.Transforms;
using Microsoft.ML.Transforms.Conversions;

[assembly: LoadableClass(typeof(void), typeof(TrainTestSplit), null, typeof(SignatureEntryPointModule), "TrainTestSplit")]

Expand Down
4 changes: 2 additions & 2 deletions src/Microsoft.ML.PCA/PcaTransform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
using Microsoft.ML.Runtime.Numeric;
using Microsoft.ML.StaticPipe;
using Microsoft.ML.StaticPipe.Runtime;
using Microsoft.ML.Transforms.PCA;
using Microsoft.ML.Transforms.Projections;
using System;
using System.Collections.Generic;
using System.Linq;
Expand All @@ -33,7 +33,7 @@

[assembly: LoadableClass(typeof(void), typeof(PcaTransform), null, typeof(SignatureEntryPointModule), PcaTransform.LoaderSignature)]

namespace Microsoft.ML.Transforms.PCA
namespace Microsoft.ML.Transforms.Projections
{
/// <include file='doc.xml' path='doc/members/member[@name="PCA"]/*' />
public sealed class PcaTransform : OneToOneTransformerBase
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.ML.Transforms/BootstrapSampleTransform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

[assembly: EntryPointModule(typeof(BootstrapSample))]

namespace Microsoft.ML.Runtime.Data
namespace Microsoft.ML.Transforms
{
/// <summary>
/// This class approximates bootstrap sampling of a dataview.
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.ML.Transforms/CategoricalHashTransform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
[assembly: LoadableClass(CategoricalHashTransform.Summary, typeof(IDataTransform), typeof(CategoricalHashTransform), typeof(CategoricalHashTransform.Arguments), typeof(SignatureDataTransform),
CategoricalHashTransform.UserName, "CategoricalHashTransform", "CatHashTransform", "CategoricalHash", "CatHash")]

namespace Microsoft.ML.Runtime.Data
namespace Microsoft.ML.Transforms.Categorical
{
public sealed class CategoricalHashTransform : ITransformer, ICanSaveModel
{
Expand Down
1 change: 1 addition & 0 deletions src/Microsoft.ML.Transforms/CategoricalTransform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
CategoricalTransform.UserName, "CategoricalTransform", "CatTransform", "Categorical", "Cat")]

[assembly: LoadableClass(typeof(void), typeof(Categorical), null, typeof(SignatureEntryPointModule), "Categorical")]

namespace Microsoft.ML.Transforms.Categorical
{
/// <include file='doc.xml' path='doc/members/member[@name="CategoricalOneHotVectorizer"]/*' />
Expand Down
7 changes: 2 additions & 5 deletions src/Microsoft.ML.Transforms/CompositeTransform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,18 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.ML.Runtime;
using Microsoft.ML.Runtime.Data;
using Microsoft.ML.Runtime.Internal.Utilities;
using Microsoft.ML.Runtime.Model;
using Microsoft.ML.Transforms;

// REVIEW: This is a temporary hack code to allow loading old saved loader models. Delete it once it is no longer needed.

// The below signatures are for (de)serialization purposes only.
[assembly: LoadableClass(typeof(IDataTransform), typeof(CompositeTransform), null, typeof(SignatureLoadDataTransform),
"Composite Transform", CompositeTransform.LoaderSignature)]

namespace Microsoft.ML.Runtime.Data
namespace Microsoft.ML.Transforms
{
public static class CompositeTransform
{
Expand Down
10 changes: 5 additions & 5 deletions src/Microsoft.ML.Transforms/GcnTransform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using Float = System.Single;

using System;
using System.Text;
using Microsoft.ML.Runtime;
using Microsoft.ML.Runtime.CommandLine;
using Microsoft.ML.Runtime.Data;
using Microsoft.ML.Runtime.EntryPoints;
using Microsoft.ML.Runtime.Internal.CpuMath;
using Microsoft.ML.Runtime.Internal.Utilities;
using Microsoft.ML.Runtime.Model;
using Microsoft.ML.Transforms.Projections;
using System;
using System.Text;
using Float = System.Single;

[assembly: LoadableClass(LpNormNormalizerTransform.GcnSummary, typeof(LpNormNormalizerTransform), typeof(LpNormNormalizerTransform.GcnArguments), typeof(SignatureDataTransform),
LpNormNormalizerTransform.UserNameGn, "GcnTransform", LpNormNormalizerTransform.ShortNameGn)]
Expand All @@ -25,7 +25,7 @@

[assembly: EntryPointModule(typeof(LpNormalization))]

namespace Microsoft.ML.Runtime.Data
namespace Microsoft.ML.Transforms.Projections
Copy link
Contributor

@Ivanidzo4ka Ivanidzo4ka Oct 30, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Projections [](start = 34, length = 11)

PCA, Whitening, LDA at some extent is also projections. #Resolved

Copy link
Member Author

@sfilipi sfilipi Oct 30, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is LDA projections or text?
#Resolved

Copy link
Contributor

@Ivanidzo4ka Ivanidzo4ka Oct 30, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's projection of text! so Text, (Well it's operate on vector of floats which we get from word bag, but it's main purpose is text related)
I forgot RFF, it's also projection.
Actually Whitening on internal site is stated in Image category.


In reply to: 229512989 [](ancestors = 229512989)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, fun fact, GCN is also stated as Image transform :)


In reply to: 229514079 [](ancestors = 229514079,229512989)

{
/// <summary>
/// Lp-Norm (vector/row-wise) normalization transform. Has the following two set of arguments:
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.ML.Transforms/GroupTransform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
[assembly: LoadableClass(GroupTransform.Summary, typeof(GroupTransform), null, typeof(SignatureLoadDataTransform),
GroupTransform.UserName, GroupTransform.LoaderSignature)]

[assembly: EntryPointModule(typeof(GroupingOperations))]
[assembly: EntryPointModule(typeof(Microsoft.ML.Transforms.GroupingOperations))]

namespace Microsoft.ML.Transforms
{
Expand Down
19 changes: 9 additions & 10 deletions src/Microsoft.ML.Transforms/HashJoinTransform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using Float = System.Single;

using System;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading;
using Microsoft.ML.Runtime;
using Microsoft.ML.Runtime.CommandLine;
using Microsoft.ML.Runtime.Data;
using Microsoft.ML.Runtime.Data.Conversion;
using Microsoft.ML.Runtime.EntryPoints;
using Microsoft.ML.Runtime.Internal.Utilities;
using Microsoft.ML.Runtime.Model;
using Microsoft.ML.Transforms.Conversions;
using System;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading;
using Float = System.Single;

[assembly: LoadableClass(HashJoinTransform.Summary, typeof(HashJoinTransform), typeof(HashJoinTransform.Arguments), typeof(SignatureDataTransform),
HashJoinTransform.UserName, "HashJoinTransform", HashJoinTransform.RegistrationName)]
Expand All @@ -25,7 +24,7 @@

[assembly: EntryPointModule(typeof(HashJoin))]

namespace Microsoft.ML.Runtime.Data
namespace Microsoft.ML.Transforms.Conversions
{
/// <summary>
/// This transform hashes its input columns. Each column is hashed separately, and within each
Expand Down Expand Up @@ -656,7 +655,7 @@ private HashDelegate<TSrc> ComposeHashDelegate<TSrc>()

// Default case: convert to text and hash as a string.
var sb = default(StringBuilder);
var conv = Conversions.Instance.GetStringConversion<TSrc>();
var conv = Runtime.Data.Conversion.Conversions.Instance.GetStringConversion<TSrc>();
return
(in TSrc value, uint seed) =>
{
Expand Down
4 changes: 2 additions & 2 deletions src/Microsoft.ML.Transforms/RffTransform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
using Microsoft.ML.Runtime.Numeric;
using Microsoft.ML.StaticPipe;
using Microsoft.ML.StaticPipe.Runtime;
using Microsoft.ML.Transforms;
using Microsoft.ML.Transforms.Projections;
using System;
using System.Collections.Generic;
using System.Linq;
Expand All @@ -30,7 +30,7 @@
[assembly: LoadableClass(typeof(IRowMapper), typeof(RffTransform), null, typeof(SignatureLoadRowMapper),
"Random Fourier Features Transform", RffTransform.LoaderSignature)]

namespace Microsoft.ML.Transforms
namespace Microsoft.ML.Transforms.Projections
{
public sealed class RffTransform : OneToOneTransformerBase
{
Expand Down
1 change: 1 addition & 0 deletions src/Microsoft.ML.Transforms/Text/TextTransform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
using Microsoft.ML.StaticPipe;
using Microsoft.ML.StaticPipe.Runtime;
using Microsoft.ML.Transforms;
using Microsoft.ML.Transforms.Projections;
using Microsoft.ML.Transforms.Text;
using System;
using System.Collections.Generic;
Expand Down
4 changes: 2 additions & 2 deletions src/Microsoft.ML.Transforms/WhiteningTransform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
using Microsoft.ML.Runtime.Internal.Utilities;
using Microsoft.ML.Runtime.Model;
using Microsoft.ML.Runtime.Internal.Internallearn;
using Microsoft.ML.Transforms;
using Microsoft.ML.Transforms.Projections;

[assembly: LoadableClass(WhiteningTransform.Summary, typeof(WhiteningTransform), typeof(WhiteningTransform.Arguments), typeof(SignatureDataTransform),
"Whitening Transform", "WhiteningTransform", "Whitening")]

[assembly: LoadableClass(WhiteningTransform.Summary, typeof(WhiteningTransform), null, typeof(SignatureLoadDataTransform),
"Whitening Transform", WhiteningTransform.LoaderSignature, WhiteningTransform.LoaderSignatureOld)]

namespace Microsoft.ML.Transforms
namespace Microsoft.ML.Transforms.Projections
{
public enum WhiteningKind
{
Expand Down
3 changes: 2 additions & 1 deletion src/Microsoft.ML.Transforms/WrappedGcnTransformers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
using Microsoft.ML.Runtime.Data;
using Microsoft.ML.StaticPipe;
using Microsoft.ML.StaticPipe.Runtime;
using Microsoft.ML.Transforms.Projections;
using System.Collections.Generic;
using System.Linq;
using static Microsoft.ML.Runtime.Data.LpNormNormalizerTransform;
using static Microsoft.ML.Transforms.Projections.LpNormNormalizerTransform;

namespace Microsoft.ML.Transforms
{
Expand Down
1 change: 1 addition & 0 deletions src/Microsoft.ML.Transforms/WrappedWhiteningTransformer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using Microsoft.ML.StaticPipe.Runtime;
using System.Collections.Generic;
using System.Linq;
using Microsoft.ML.Transforms.Projections;

namespace Microsoft.ML.Transforms
{
Expand Down
Loading