Welvet examples
53. stub/ensemble
Part: VIII Β· Stubs
Package: github.com/openfluke/welvet/stub/ensemble
Status: partial β π§
When
Scaffold / experimental stub stub/ensemble (may be partial).
Where
import "github.com/openfluke/welvet/stub/ensemble"
cd 53-stub-ensemble && source ../env.sh && go run .
Why
Combine multiple model votes and find complementary specialists.
What
MajorityVote, FindComplementaryMatches, PerformanceSimilarity.
Sample output (captured)
[0 1 1]
Live capture from go run ./cmd/runall on local ../../welvet (exit 0).
Source
Copied from the Welvet feature book examples (openfluke.github.io/welvet/examples/53-stub-ensemble).
main.go
Download source β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))
}