این صفحه هنوز ترجمه نشده است؛ نسخهٔ انگلیسی نمایش داده میشود.
IRI.Maptor.Core.MachineLearning
Machine learning algorithms and statistical tools used in the Maptor stack, with a focus on spatial data analysis — clustering, association rule mining, logistic regression, and descriptive statistics.
Installation
dotnet add package IRI.Maptor.Core.MachineLearning
Features
- DBSCAN density-based clustering (
Dbscan.Cluster<T>) with a caller-supplied distance function - Apriori frequent-itemset mining (
AprioriAlgorithm,Itemset) - Binary logistic regression (
LogisticRegression) with configurable options: feature normalization, regularization method, variance calculation mode - Logistic-regression-based line simplification use case (
LogisticSimplificationwith synthetic training data helpers) - Descriptive statistics (
GeneralStatistics.CalculateSummary) - Shared building blocks: sigmoid, normalization, and regularization helpers
Usage
Train and use a logistic regression classifier:
using IRI.Maptor.Core.MachineLearning;
using IRI.Maptor.Core.Common.Mathematics;
var options = new LogisticRegressionOptions { NormalizeFeatures = true };
var lr = new LogisticRegression(options);
// each row of xValues is one observation; yValues holds the 0/1 labels
lr.Fit(xValues, yValues); // xValues: Matrix, yValues: double[]
double? probability = lr.Predict(new List<double> { 2.5, 1.3 });
Summarize a data series:
using IRI.Maptor.Core.MachineLearning;
var summary = GeneralStatistics.CalculateSummary(new double[] { 1, 2, 3, 4, 5 });
Limitations
Dbscan.Clustercurrently returnsvoid; the computed cluster assignments are not yet exposed to the caller.- Logistic regression is binary-only (no multi-class support).