datasets.Boston

This dataset contains information collected by the U.S Census Service concerning housing in the area of Boston Mass. It was obtained from the StatLib archive (http://lib.stat.cmu.edu/datasets/boston), and has been used extensively throughout the literature to benchmark algorithms. However, these comparisons were primarily done outside of Delve and are thus somewhat suspect. The dataset is small in size with only 506 cases. The data was originally published by Harrison, D. and Rubinfeld, D.L. `Hedonic prices and the demand for clean air', J. Environ. Economics & Management, vol.5, 81-102, 1978.

Usage

import { Boston } from "machinelearn/datasets";

(async function() {
  const bostonData = new Boston();
  const {
    data,
    targets,
    labels,
  } = await bostonData.load();
});

Methods

Methods


λ load

Load the dataset

Defined in datasets/Boston.ts:36

Returns:

🤘 Promise

ParamTypeDescription
dataany[][]Training data
labelsstring[]Real labels
targetsany[]Target data