pb

package
v0.0.0-...-cd6bac6 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2018 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package pb is a generated protocol buffer package.

It is generated from these files:

evolution.proto

It has these top-level messages:

Node
RandomTree
Individual
Population
Evolution

Index

Constants

This section is empty.

Variables

View Source
var Individual_Operator_name = map[int32]string{
	0: "INIT",
	1: "XO",
	2: "MUT",
	3: "REPR",
}
View Source
var Individual_Operator_value = map[string]int32{
	"INIT": 0,
	"XO":   1,
	"MUT":  2,
	"REPR": 3,
}
View Source
var Node_Symbol_name = map[int32]string{
	0: "ADD",
	1: "SUB",
	2: "MUL",
	3: "DIV",
	4: "CONST",
	5: "VAR",
}
View Source
var Node_Symbol_value = map[string]int32{
	"ADD":   0,
	"SUB":   1,
	"MUL":   2,
	"DIV":   3,
	"CONST": 4,
	"VAR":   5,
}

Functions

This section is empty.

Types

type Evolution

type Evolution struct {
	// Evolutionary process consists in a set of generations
	Generations []*Population `protobuf:"bytes,1,rep,name=generations" json:"generations,omitempty"`
}

func (*Evolution) Descriptor

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

func (*Evolution) GetGenerations

func (m *Evolution) GetGenerations() []*Population

func (*Evolution) ProtoMessage

func (*Evolution) ProtoMessage()

func (*Evolution) Reset

func (m *Evolution) Reset()

func (*Evolution) String

func (m *Evolution) String() string

type Individual

type Individual struct {
	Op            Individual_Operator `protobuf:"varint,1,opt,name=op,enum=pb.Individual_Operator" json:"op,omitempty"`
	FitnessTrain  float64             `protobuf:"fixed64,2,opt,name=fitness_train,json=fitnessTrain" json:"fitness_train,omitempty"`
	FitnessTest   float64             `protobuf:"fixed64,3,opt,name=fitness_test,json=fitnessTest" json:"fitness_test,omitempty"`
	SemanticTrain []float64           `protobuf:"fixed64,4,rep,packed,name=semantic_train,json=semanticTrain" json:"semantic_train,omitempty"`
	SemanticTest  []float64           `protobuf:"fixed64,5,rep,packed,name=semantic_test,json=semanticTest" json:"semantic_test,omitempty"`
	Contrib       []byte              `protobuf:"bytes,6,opt,name=contrib,proto3" json:"contrib,omitempty"`
	Rt            []*RandomTree       `protobuf:"bytes,7,rep,name=rt" json:"rt,omitempty"`
}

func (*Individual) Descriptor

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

func (*Individual) GetContrib

func (m *Individual) GetContrib() []byte

func (*Individual) GetFitnessTest

func (m *Individual) GetFitnessTest() float64

func (*Individual) GetFitnessTrain

func (m *Individual) GetFitnessTrain() float64

func (*Individual) GetOp

func (m *Individual) GetOp() Individual_Operator

func (*Individual) GetRt

func (m *Individual) GetRt() []*RandomTree

func (*Individual) GetSemanticTest

func (m *Individual) GetSemanticTest() []float64

func (*Individual) GetSemanticTrain

func (m *Individual) GetSemanticTrain() []float64

func (*Individual) ProtoMessage

func (*Individual) ProtoMessage()

func (*Individual) Reset

func (m *Individual) Reset()

func (*Individual) String

func (m *Individual) String() string

type Individual_Operator

type Individual_Operator int32
const (
	Individual_INIT Individual_Operator = 0
	Individual_XO   Individual_Operator = 1
	Individual_MUT  Individual_Operator = 2
	Individual_REPR Individual_Operator = 3
)

func (Individual_Operator) EnumDescriptor

func (Individual_Operator) EnumDescriptor() ([]byte, []int)

func (Individual_Operator) String

func (x Individual_Operator) String() string

type Node

type Node struct {
	Symbol   Node_Symbol `protobuf:"varint,1,opt,name=symbol,enum=pb.Node_Symbol" json:"symbol,omitempty"`
	Parent   *Node       `protobuf:"bytes,2,opt,name=parent" json:"parent,omitempty"`
	Children []*Node     `protobuf:"bytes,3,rep,name=children" json:"children,omitempty"`
}

func (*Node) Descriptor

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

func (*Node) GetChildren

func (m *Node) GetChildren() []*Node

func (*Node) GetParent

func (m *Node) GetParent() *Node

func (*Node) GetSymbol

func (m *Node) GetSymbol() Node_Symbol

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) String

func (m *Node) String() string

type Node_Symbol

type Node_Symbol int32
const (
	Node_ADD   Node_Symbol = 0
	Node_SUB   Node_Symbol = 1
	Node_MUL   Node_Symbol = 2
	Node_DIV   Node_Symbol = 3
	Node_CONST Node_Symbol = 4
	Node_VAR   Node_Symbol = 5
)

func (Node_Symbol) EnumDescriptor

func (Node_Symbol) EnumDescriptor() ([]byte, []int)

func (Node_Symbol) String

func (x Node_Symbol) String() string

type Population

type Population struct {
	Generation  int32         `protobuf:"varint,1,opt,name=generation" json:"generation,omitempty"`
	Individuals []*Individual `protobuf:"bytes,2,rep,name=individuals" json:"individuals,omitempty"`
}

func (*Population) Descriptor

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

func (*Population) GetGeneration

func (m *Population) GetGeneration() int32

func (*Population) GetIndividuals

func (m *Population) GetIndividuals() []*Individual

func (*Population) ProtoMessage

func (*Population) ProtoMessage()

func (*Population) Reset

func (m *Population) Reset()

func (*Population) String

func (m *Population) String() string

type RandomTree

type RandomTree struct {
	Data          []int32   `protobuf:"varint,1,rep,packed,name=data" json:"data,omitempty"`
	SemanticTrain []float64 `protobuf:"fixed64,2,rep,packed,name=semantic_train,json=semanticTrain" json:"semantic_train,omitempty"`
	SemanticTest  []float64 `protobuf:"fixed64,3,rep,packed,name=semantic_test,json=semanticTest" json:"semantic_test,omitempty"`
}

func (*RandomTree) Descriptor

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

func (*RandomTree) GetData

func (m *RandomTree) GetData() []int32

func (*RandomTree) GetSemanticTest

func (m *RandomTree) GetSemanticTest() []float64

func (*RandomTree) GetSemanticTrain

func (m *RandomTree) GetSemanticTrain() []float64

func (*RandomTree) ProtoMessage

func (*RandomTree) ProtoMessage()

func (*RandomTree) Reset

func (m *RandomTree) Reset()

func (*RandomTree) String

func (m *RandomTree) String() string

Jump to

Keyboard shortcuts

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