← OpenFluke

Chapter 54

stub/evaluation

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


Why it exists

Benchmark grids through runtime/forward with deviation metrics.

What it is

EvaluateNetwork, MultiNetworkEvaluation, DeviationMetrics.

Go example

examples/54-stub-evaluation/main.go

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

import (
	"fmt"

	"github.com/openfluke/welvet/architecture"
	"github.com/openfluke/welvet/core"
	"github.com/openfluke/welvet/stub/evaluation"
)

func main() {
	g := architecture.NewGrid(1, 1, 1, 1)
	in := []*core.Tensor[float32]{core.NewTensor[float32](1, 4)}
	rep, err := evaluation.EvaluateNetwork(g, in, []float64{0, 0, 0, 0})
	fmt.Println(rep, err)
}

Output

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