datasets.HeartDisease
Usage
import { HeartDisease } from "machinelearn/datasets";
(async function() {
  const heartDiseaseDataset = new HeartDisease();
  const {
    data,
    targets,
    labels,
  } = await heartDiseaseDataset.load();
});
Constructors
Methods
Constructors
constructor
⊕ HeartDisease()
Defined in
Parameters:
| Param | Type | Default | Description | 
|---|
Returns: HeartDisease
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
Defined in datasets/HeartDisease.ts:24
Returns:
🤘 Promise
| Param | Type | Description | 
|---|---|---|
| data | any[][] | undefined | 
| labels | string[] | undefined | 
| targets | any[] | undefined |