proto

package
v0.0.0-...-7d47eef Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Overview

Package proto includes all proto definitions used in the golang package in one large package.

It uses go generate tools to generate it from the source code, but we include the generated files in github, so one doesn't need to install anything.

Index

Constants

View Source
const (
	Default_Header_WinnerTakeAllInference = bool(true)
	Default_Header_NodeFormat             = string("TFE_RECORDIO")
)

Default values for Header fields.

Variables

View Source
var File_yggdrasil_decision_forests_model_random_forest_random_forest_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Header struct {

	// Number of shards used to store the nodes.
	NumNodeShards *int32 `protobuf:"varint,1,opt,name=num_node_shards,json=numNodeShards" json:"num_node_shards,omitempty"`
	// Number of trees.
	NumTrees *int64 `protobuf:"varint,2,opt,name=num_trees,json=numTrees" json:"num_trees,omitempty"`
	// Whether the vote of individual trees are distributions or winner-take-all.
	WinnerTakeAllInference *bool `` /* 131-byte string literal not displayed */
	// Evaluation of the model, on the out-of-bag examples, during the training.
	OutOfBagEvaluations []*OutOfBagTrainingEvaluations `protobuf:"bytes,4,rep,name=out_of_bag_evaluations,json=outOfBagEvaluations" json:"out_of_bag_evaluations,omitempty"`
	// Variable importance measures.
	MeanDecreaseInAccuracy []*proto.VariableImportance `protobuf:"bytes,5,rep,name=mean_decrease_in_accuracy,json=meanDecreaseInAccuracy" json:"mean_decrease_in_accuracy,omitempty"`
	MeanIncreaseInRmse     []*proto.VariableImportance `protobuf:"bytes,6,rep,name=mean_increase_in_rmse,json=meanIncreaseInRmse" json:"mean_increase_in_rmse,omitempty"`
	// Container used to store the trees' nodes.
	NodeFormat *string `protobuf:"bytes,7,opt,name=node_format,json=nodeFormat,def=TFE_RECORDIO" json:"node_format,omitempty"`
	// Number of nodes trained and then pruned during the training.
	// The classical random forest learning algorithm does not prune nodes.
	NumPrunedNodes *int64 `protobuf:"varint,8,opt,name=num_pruned_nodes,json=numPrunedNodes" json:"num_pruned_nodes,omitempty"`
	// contains filtered or unexported fields
}

Header for the random forest model.

func (*Header) Descriptor deprecated

func (*Header) Descriptor() ([]byte, []int)

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetMeanDecreaseInAccuracy

func (x *Header) GetMeanDecreaseInAccuracy() []*proto.VariableImportance

func (*Header) GetMeanIncreaseInRmse

func (x *Header) GetMeanIncreaseInRmse() []*proto.VariableImportance

func (*Header) GetNodeFormat

func (x *Header) GetNodeFormat() string

func (*Header) GetNumNodeShards

func (x *Header) GetNumNodeShards() int32

func (*Header) GetNumPrunedNodes

func (x *Header) GetNumPrunedNodes() int64

func (*Header) GetNumTrees

func (x *Header) GetNumTrees() int64

func (*Header) GetOutOfBagEvaluations

func (x *Header) GetOutOfBagEvaluations() []*OutOfBagTrainingEvaluations

func (*Header) GetWinnerTakeAllInference

func (x *Header) GetWinnerTakeAllInference() bool

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect

func (x *Header) ProtoReflect() protoreflect.Message

func (*Header) Reset

func (x *Header) Reset()

func (*Header) String

func (x *Header) String() string

type OutOfBagTrainingEvaluations

type OutOfBagTrainingEvaluations struct {

	// Number of trees available in the model when evaluated.
	NumberOfTrees *int32                    `protobuf:"varint,1,opt,name=number_of_trees,json=numberOfTrees" json:"number_of_trees,omitempty"`
	Evaluation    *proto1.EvaluationResults `protobuf:"bytes,2,opt,name=evaluation" json:"evaluation,omitempty"`
	// contains filtered or unexported fields
}

func (*OutOfBagTrainingEvaluations) Descriptor deprecated

func (*OutOfBagTrainingEvaluations) Descriptor() ([]byte, []int)

Deprecated: Use OutOfBagTrainingEvaluations.ProtoReflect.Descriptor instead.

func (*OutOfBagTrainingEvaluations) GetEvaluation

func (*OutOfBagTrainingEvaluations) GetNumberOfTrees

func (x *OutOfBagTrainingEvaluations) GetNumberOfTrees() int32

func (*OutOfBagTrainingEvaluations) ProtoMessage

func (*OutOfBagTrainingEvaluations) ProtoMessage()

func (*OutOfBagTrainingEvaluations) ProtoReflect

func (*OutOfBagTrainingEvaluations) Reset

func (x *OutOfBagTrainingEvaluations) Reset()

func (*OutOfBagTrainingEvaluations) String

func (x *OutOfBagTrainingEvaluations) String() string

Jump to

Keyboard shortcuts

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