Chapter 53

stub/ensemble

github.com/openfluke/welvet/stub/ensemble🚧


Why it exists

Combine multiple model votes and find complementary specialists.

What it is

MajorityVote, FindComplementaryMatches, PerformanceSimilarity.

Go example

examples/53-stub-ensemble/main.go

Run:cd welvet/examples/53-stub-ensemble && source ../env.sh && go run .
package main

import (
	"fmt"

	"github.com/openfluke/welvet/stub/ensemble"
)

func main() {
	votes := [][]int{{0, 1, 1}, {0, 0, 1}, {0, 1, 0}}
	fmt.Println(ensemble.MajorityVote(votes))
}

Output

Run python3 _gen_welvet_book.py --run to capture output.