output

package
v0.0.0-...-b7c488f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2021 License: MIT Imports: 5 Imported by: 1

Documentation

Overview

Package output provides different formats of output for experiments.

Package output provides different formats of output for experiments.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CsvMeasurementFormatter

func CsvMeasurementFormatter(topics, headers []string, data [][]float64) (string, error)

CsvMeasurementFormatter outputs results in CSV format.

func JsonEvaluationFormatter

func JsonEvaluationFormatter(results map[string]map[string]float64) (string, error)

JsonMeasurementFormatter outputs results in a JSON format.

func JsonMeasurementFormatter

func JsonMeasurementFormatter(topics, headers []string, data [][]float64) (string, error)

JsonMeasurementFormatter outputs results in a JSON format.

Types

type EvaluationFormatter

type EvaluationFormatter func(map[string]map[string]float64) (string, error)

EvaluationFormatter is used in the a groove pipeline to output evaluation results.

type MeasurementFormatter

type MeasurementFormatter func(topics, headers []string, data [][]float64) (string, error)

MeasurementFormatter is used in the a groove pipeline to output measurements in various formats. These methods should not be used directly since there are some assumptions made about the inputs; for instance, the length of each argument.

type TrecResults

type TrecResults struct {
	Path    string
	Results trecresults.ResultList
}

TrecResults represents the output format for trec results.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL