CaliforniaHousing
classin packageklyn.math.datasets
public class CaliforniaHousing
CaliforniaHousing

California housing regression data: eight numeric features and a continuous median house value, expressed in units of 100,000 US dollars. Features are not standardized. The published data contains 20,640 census block groups.

Example

xTrain, yTrain, xTest, yTest = CaliforniaHousing.load()

Properties
Modifier and Type Member Description
public static readonly property featureNames
featureNames as IList<String>
Immutable feature names, in the column order returned by load().
Methods
Modifier and Type Member Description
public static load
load<T>(folder as Path = null, testSplit as Double = 0.2, seed as Long = 42l, shuffle as Boolean = true, trainLimit as Long = 0l, testLimit as Long = 0l, download as Boolean = true) as Tuple<NDArray<T>, NDArray<T>, NDArray<T>, NDArray<T>>
Loads four independent tensors, downloading and checking missing data.