Skip to content

Commit

Permalink
Fixing an error in the quickstart snippet.
Browse files Browse the repository at this point in the history
  • Loading branch information
Craigacp committed Sep 29, 2020
1 parent b329f53 commit defced4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion learn/4.0/docs/index.html
Expand Up @@ -68,7 +68,8 @@ <h2>Introduction</h2>
{% raw %}
var trainSet = new MutableDataset<>(new LibSVMDataSource(Paths.get("train-data"),new LabelFactory()));
var model = new LogisticRegressionTrainer().train(trainSet);
var eval = new LabelEvaluator().evaluate(new LibSVMDataSource(Paths.get("test-data"),trainSet.getOutputFactory()));
var testSet = new LibSVMDataSource(Paths.get("test-data"),trainSet.getOutputFactory());
var eval = new LabelEvaluator().evaluate(model,testSet);
{% endraw %}
{% endhighlight %}
</p>
Expand Down

0 comments on commit defced4

Please sign in to comment.