3 types derived from Entity
Microsoft.ML.AutoML (3)
Utils\Entity.cs (3)
177
internal class ConcatenateEntity :
Entity
201
internal class OneOfEntity :
Entity
212
internal abstract class ValueEntity :
Entity
73 references to Entity
Microsoft.ML.AutoML (69)
SweepableEstimator\Converter\MultiModelPipelineConverter.cs (1)
21
return new MultiModelPipeline(estimators,
Entity
.FromExpression(schema));
SweepableEstimator\Converter\SweepablePipelineConverter.cs (1)
22
return new SweepablePipeline(estimators,
Entity
.FromExpression(schema), currentSchema);
SweepableEstimator\Estimator.cs (10)
28
public static
Entity
operator +(Estimator left, Estimator right)
37
public static
Entity
operator +(
Entity
left, Estimator right)
46
public static
Entity
operator +(Estimator left,
Entity
right)
55
public static
Entity
operator *(Estimator left, Estimator right)
64
public static
Entity
operator *(
Entity
left, Estimator right)
73
public static
Entity
operator *(Estimator left,
Entity
right)
SweepableEstimator\MultiModelPipeline.cs (16)
18
private readonly
Entity
_schema;
26
internal MultiModelPipeline(Dictionary<string, SweepableEstimator> estimators,
Entity
schema)
34
internal
Entity
Schema { get => _schema; }
44
Entity
entity = null;
61
Entity
entity = null;
78
var pipelineNodes =
Entity
.FromExpression(schema)
86
internal MultiModelPipeline Append(
Entity
entity)
91
internal MultiModelPipeline AppendOrSkip(
Entity
entity)
108
var
sweepableEntity = CreateSweepableEntityFromEntity(pipeline.Schema, pipeline.Estimators);
112
private MultiModelPipeline AppendEntity(bool allowSkip,
Entity
entity)
115
var
stringEntity = VisitAndReplaceSweepableEntityWithStringEntity(entity, ref estimators);
121
var
schema = _schema;
134
private
Entity
CreateSweepableEntityFromEntity(
Entity
entity, Dictionary<string, SweepableEstimator> lookupTable)
170
private
Entity
VisitAndReplaceSweepableEntityWithStringEntity(
Entity
e, ref Dictionary<string, SweepableEstimator> estimators)
SweepableEstimator\SweepablePipeline.cs (15)
19
private readonly
Entity
_schema;
72
internal SweepablePipeline(Dictionary<string, SweepableEstimator> estimators,
Entity
schema, string currentSchema = null)
82
internal
Entity
Schema { get => _schema; }
88
var estimatorParameterPair =
Entity
.FromExpression(_currentSchema)
109
var
entity =
Entity
.FromExpression(schema);
119
Entity
entity = null;
156
var estimatorStrings =
Entity
.FromExpression(schema)
172
private SweepablePipeline AppendEntity(bool allowSkip,
Entity
entity)
175
var
stringEntity = VisitAndReplaceSweepableEntityWithStringEntity(entity, ref estimators);
181
var
schema = _schema;
194
private
Entity
CreateSweepableEntityFromEntity(
Entity
entity, Dictionary<string, SweepableEstimator> lookupTable)
230
private
Entity
VisitAndReplaceSweepableEntityWithStringEntity(
Entity
e, ref Dictionary<string, SweepableEstimator> estimators)
Tuner\PipelineProposer.cs (2)
198
var
entity =
Entity
.FromExpression(schema);
Utils\Entity.cs (24)
22
public static
Entity
Simplify(this
Entity
entity)
29
var
left = entity.Left.Simplify();
30
var
right = entity.Right.Simplify();
68
public static IEnumerable<
Entity
> ToTerms(this
Entity
entity)
70
var
simplifiedEntity = entity.Simplify();
83
public static IEnumerable<ValueEntity> ValueEntities(this
Entity
entity)
107
public static
Entity
FromExpression(string expression)
110
return
Entity
.FromExpression(exp);
113
public static
Entity
operator +(
Entity
left,
Entity
right)
121
public static
Entity
operator *(
Entity
left,
Entity
right)
129
public
Entity
Left { get; set; }
131
public
Entity
Right { get; set; }
133
private static
Entity
FromExpression(ExpressionSyntax exp)
141
return
Entity
.FromExpression(p.Expression);
145
var
left =
Entity
.FromExpression(b.Left);
146
var
right =
Entity
.FromExpression(b.Right);
Microsoft.ML.AutoML.Tests (4)
EntityTest.cs (4)
114
var
entity =
Entity
.FromExpression("a+b+c");
117
entity =
Entity
.FromExpression("abc");
120
entity =
Entity
.FromExpression("(a+b)*(c+d)");