datasets.Boston
Usage
import { Boston } from "machinelearn/datasets";
(async function() {
  const bostonData = new Boston();
  const {
    data,
    targets,
    labels,
  } = await bostonData.load();
});
Constructors
Methods
Constructors
constructor
⊕ Boston()
Defined in
Parameters:
| Param | Type | Default | Description | 
|---|
Returns: Boston
Methods
λ fsLoad
Load data from the local data folder
Defined in datasets/BaseDataset.ts:65
Parameters:
| Param | Type | Default | Description | 
|---|---|---|---|
| type | string | ||
| options.delimiter | string | ',' | |
| options.lastIsTarget | true | ||
| options.targetType | string | 'float' | |
| options.trainType | string | 'float' | 
Returns:
🤘 Promise
| Param | Type | Description | 
|---|---|---|
| data | any | undefined | 
| labels | any | undefined | 
| targets | any | undefined | 
λ load
Load the dataset
Defined in datasets/Boston.ts:38
Returns:
🤘 Promise
| Param | Type | Description | 
|---|---|---|
| data | any[][] | Training data | 
| labels | string[] | Real labels | 
| targets | any[] | Target data |