Skip to content

Commit

Permalink
Merge branch 'trunk' of https://github.com/apache/mahout into trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmusselman committed Feb 16, 2024
2 parents 71622fb + eb99791 commit 8fb8244
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,11 @@ static class IDMapReducer extends Reducer<VarIntWritable,VarLongWritable,VarIntW
@Override
protected void reduce(VarIntWritable index, Iterable<VarLongWritable> ids, Context ctx)
throws IOException, InterruptedException {
ctx.write(index, ids.iterator().next());
if (ids.iterator().hasNext()) {
ctx.write(index, ids.iterator().next());
} else {
log.debug("Iterator is empty");
}
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
---
layout: default
title:


title: Bank Marketing Example
---

Notice: Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -66,4 +48,4 @@ This example consists of 3 classes:

When you run the main method of BankMarketingClassificationMain it parses the dataset using the TelephoneCallParser and trains
a logistic regression model with 20 runs and 20 passes. The TelephoneCallParser uses Mahout's feature vector encoder
to encode the features in the dataset into a vector. Afterwards the model is tested and the learning rate and AUC is printed accuracy is printed to standard output.
to encode the features in the dataset into a vector. Afterwards the model is tested and the learning rate and AUC is printed accuracy is printed to standard output.

0 comments on commit 8fb8244

Please sign in to comment.