2 instantiations of KMeansModelParameters
Microsoft.ML.KMeansClustering (2)
KMeansModelParameters.cs (1)
261
return new
KMeansModelParameters
(env, ctx);
KMeansPlusPlusTrainer.cs (1)
271
return new
KMeansModelParameters
(Host, _k, centroids, copyIn: true);
16 references to KMeansModelParameters
Microsoft.ML.IntegrationTests (2)
IntrospectiveTraining.cs (2)
403
var kMeansModel = (modelComponents[1] as TransformerChain<ClusteringPredictionTransformer<
KMeansModelParameters
>>).LastTransformer;
417
private IEstimator<TransformerChain<ClusteringPredictionTransformer<
KMeansModelParameters
>>> StepOne(MLContext mlContext)
Microsoft.ML.KMeansClustering (11)
KMeansModelParameters.cs (4)
17
[assembly: LoadableClass(typeof(
KMeansModelParameters
), null, typeof(SignatureLoadModel),
18
"KMeans predictor",
KMeansModelParameters
.LoaderSignature)]
48
loaderAssemblyName: typeof(
KMeansModelParameters
).Assembly.FullName);
256
internal static
KMeansModelParameters
Create(IHostEnvironment env, ModelLoadContext ctx)
KMeansPlusPlusTrainer.cs (7)
79
public class KMeansTrainer : TrainerEstimatorBase<ClusteringPredictionTransformer<
KMeansModelParameters
>,
KMeansModelParameters
>
197
private protected override
KMeansModelParameters
TrainModelCore(TrainContext context)
211
private
KMeansModelParameters
TrainCore(IChannel ch, RoleMappedData data, int dimensionality)
321
private protected override ClusteringPredictionTransformer<
KMeansModelParameters
> MakeTransformer(
KMeansModelParameters
model, DataViewSchema trainSchema)
322
=> new ClusteringPredictionTransformer<
KMeansModelParameters
>(Host, model, trainSchema, _featureColumn);
Microsoft.ML.Samples (2)
Dynamic\Trainers\Clustering\KMeans.cs (1)
77
var
modelParams = model.Model;
Dynamic\Trainers\Clustering\KMeansWithOptions.cs (1)
85
var
modelParams = model.Model;
Microsoft.ML.TestFramework (1)
EnvironmentExtensions.cs (1)
25
env.ComponentCatalog.RegisterAssembly(typeof(
KMeansModelParameters
).Assembly); // ML.KMeansClustering