pascalabcnet/InstallerSamples/MachineLearning/08_Datasets/MoscowHousing/04_MetroPriceScatter.pas
2026-04-03 23:35:26 +03:00

15 lines
444 B
ObjectPascal
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

uses MLABC, PlotML;
begin
var ds := Datasets.MoscowHousing;
var df := ds.Data;
var metro := df.ToVector('metro_minutes');
var price := df.ToVector(ds.Target);
Plot.Points(metro.Data.ConvertAll(x -> x*1.0), price.Data, size := 3);
Plot.XLabel('Минуты до метро');
Plot.YLabel('Цена (руб)');
Plot.Title := 'Зависимость цены квартиры от расстояния до метро';
end.