Welvet examples

53. stub/ensemble

Open original example β†—Recorded results Β· not a live execution

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))
}