var StringIndexer = require(EclairJS_Globals.NAMESPACE + '/ml/feature/StringIndexer');
var stringIndexer1 = new StringIndexer();
var SparkContext = require(EclairJS_Globals.NAMESPACE + '/SparkContext');
var jsc = new SparkContext("local[*]", "test");
var SQLContext = require(EclairJS_Globals.NAMESPACE + '/sql/SQLContext');
var sqlcontext1 = new SQLContext(jsc);
var data = sqlcontext1
.read()
.format("libsvm")
.load("/Users/doronrosenberg/mystuff/ibm/eclairjs/git/eclairjs-nashorn/examples/data/mllib/sample_libsvm_data.txt");
var labelIndexer = new StringIndexer()
.setInputCol("label")
.setOutputCol("indexedLabel")
.fit(data);
running
JSON.stringify(labelIndexer.labels()) === undefined
showstrue
.