11 references to Expression
Microsoft.ML.Samples (4)
Dynamic\Transforms\Expression.cs (4)
32
var pipeline = mlContext.Transforms.
Expression
("Expr1", "(x,y)=>log(y)+x",
34
.Append(mlContext.Transforms.
Expression
("Expr2", "(b,s,i)=>b ? len(s) : i",
36
.Append(mlContext.Transforms.
Expression
("Expr3", "(s,f1,f2,i)=>len(concat(s,\"a\"))+f1+f2+i",
38
.Append(mlContext.Transforms.
Expression
("Expr4", "(x,y)=>cos(x+pi())*y",
Microsoft.ML.Tests (6)
Transformers\ExpressionTransformerTests.cs (6)
40
var expr = ML.Transforms.
Expression
("Expr1", "x=>x/2", "Double").
41
Append(ML.Transforms.
Expression
("Expr2", "(x,y)=>(x+y)/3", "Float", "FloatVector")).
42
Append(ML.Transforms.
Expression
("Expr3", "(x,y)=>x*y", "Float", "Int")).
43
Append(ML.Transforms.
Expression
("Expr4", "(x,y,z)=>abs(x-y)*z", "Float", "FloatVector", "Double")).
44
Append(ML.Transforms.
Expression
("Expr5", "x=>len(concat(upper(x),lower(x)))", "Text")).
45
Append(ML.Transforms.
Expression
("Expr6", "(x,y)=>right(x,y)", "TextVector", "Int"));
Microsoft.ML.Transforms (1)
ExpressionTransformer.cs (1)
53
/// <seealso cref="ExpressionCatalog.
Expression
(TransformsCatalog, string, string, string[])"/>