You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nejc Ilenic edited this page Mar 28, 2019
·
6 revisions
doddle-model expects a certain format of input CSV files. Namely, there should be two header lines present at the top of each file; the first one must contain feature names and the second one must contain feature types. Currently, there are two feature types supported; numerical features (denoted with n) and categorical features (denoted with c). Categorical features are encoded to numerical values using a label encoder during the loading of a file. All types of features support missing values (denoted as NA in the example below).
The file can then be read with the following function:
val (data, featureIndex) = loadCsvDataset(newFile("/path/to/local/data/dataset.csv"), naString ="NA")
// 'label' is the last column, drop it from features and feature indexval (x, y) = (data(::, 0 to -2), data(::, -1))
valfixedFeatureIndex= featureIndex.drop(x.cols)