You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hivemall.apache.org by my...@apache.org on 2020/08/27 09:07:10 UTC
[incubator-hivemall] branch master updated: Revised bagging doc
entry
This is an automated email from the ASF dual-hosted git repository.
myui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hivemall.git
The following commit(s) were added to refs/heads/master by this push:
new 59ffcca Revised bagging doc entry
59ffcca is described below
commit 59ffcca4d8cb81f1e56a4a4c44876a6fc2ce7546
Author: Makoto Yui <my...@apache.org>
AuthorDate: Thu Aug 27 18:06:58 2020 +0900
Revised bagging doc entry
---
docs/gitbook/binaryclass/news20_generic_bagging.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/docs/gitbook/binaryclass/news20_generic_bagging.md b/docs/gitbook/binaryclass/news20_generic_bagging.md
index 0e8c5f0..cc3a978 100644
--- a/docs/gitbook/binaryclass/news20_generic_bagging.md
+++ b/docs/gitbook/binaryclass/news20_generic_bagging.md
@@ -66,7 +66,7 @@ WITH weights as (
bagging as (
select
rowid,
- avg(total_weight) as total_weight
+ voted_avg(total_weight) as total_weight
from
weights
group by
@@ -74,10 +74,10 @@ bagging as (
)
select
rowid,
- max(total_weight) as total_weight, -- max is dummy
- -- Note: sum(total_weight) > 0.0 equals to sigmoid((total_weight)) > 0.5
+ total_weight,
+ -- Note: sum(total_weight) > 0.0 equals to sigmoid(total_weight) > 0.5
-- https://en.wikipedia.org/wiki/Sigmoid_function
- case when sum(total_weight) > 0.0 then 1 else -1 end as label
+ case when total_weight > 0.0 then 1 else -1 end as label
from
bagging
group by