Skip to content

Commit c758415

Browse files
committed
Renaming the file
Adding the doc refenrece.
1 parent b5f9592 commit c758415

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

docs/samples/Microsoft.ML.Samples.StaticPipe/Trainiers.cs renamed to docs/samples/Microsoft.ML.Samples.StaticPipe/Trainers.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
using Microsoft.ML.Core.Data;
6-
using Microsoft.ML.Runtime;
75
using Microsoft.ML.Runtime.Data;
86
using Microsoft.ML.Runtime.Learners;
9-
using Microsoft.ML.Trainers;
7+
using Microsoft.ML.StaticPipe;
108
using System;
11-
using System.IO;
12-
using System.Text;
139

1410
namespace Microsoft.ML.Samples.StaticPipe
1511
{

src/Microsoft.ML.StandardLearners/Standard/SdcaRegression.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525
namespace Microsoft.ML.Runtime.Learners
2626
{
2727
/// <include file='doc.xml' path='doc/members/member[@name="SDCA"]/*' />
28+
/// <example>
29+
/// <format type="text/markdown">
30+
/// <![CDATA[
31+
/// [!code-csharp[SDCA Regression](../../../docs/samples/Microsoft.ML.Samples.StaticPipe/Trainers.cs?range=5-8,12-14,25-79) "The SDCA regression example."]
32+
/// ]]></format>
33+
/// </example>
2834
public sealed class SdcaRegressionTrainer : SdcaTrainerBase<RegressionPredictionTransformer<LinearRegressionPredictor>, LinearRegressionPredictor>
2935
{
3036
internal const string LoadNameValue = "SDCAR";

src/Microsoft.ML.StandardLearners/Standard/SdcaStatic.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ public static partial class RegressionTrainers
3333
/// the linear model that was trained. Note that this action cannot change the result in any way; it is only a way for the caller to
3434
/// be informed about what was learnt.</param>
3535
/// <returns>The predicted output.</returns>
36+
/// <example>
37+
/// <format type="text/markdown">
38+
/// <![CDATA[
39+
/// [!code-csharp[SDCA Regression](../../../docs/samples/Microsoft.ML.Samples.StaticPipe/Trainers.cs?range=5-8,12-14,25-79) "The SDCA regression example."]
40+
/// ]]></format>
41+
/// </example>
3642
public static Scalar<float> Sdca(this RegressionContext.RegressionTrainers ctx,
3743
Scalar<float> label, Vector<float> features, Scalar<float> weights = null,
3844
float? l2Const = null,

0 commit comments

Comments
 (0)