Documentation ¶
Overview ¶
Package proto is a generated protocol buffer package.
It is generated from these files:
tensorflow/contrib/decision_trees/proto/generic_tree_model.proto tensorflow/contrib/decision_trees/proto/generic_tree_model_extensions.proto
It has these top-level messages:
Model ModelAndFeatures Ensemble Summation Averaging DecisionTree TreeNode BinaryNode SparseVector Vector Leaf FeatureId ObliqueFeatures InequalityTest Value MatchingValuesTest
Index ¶
- Variables
- type Averaging
- type BinaryNode
- func (*BinaryNode) Descriptor() ([]byte, []int)
- func (m *BinaryNode) GetCustomLeftChildTest() *google_protobuf.Any
- func (m *BinaryNode) GetDefaultDirection() BinaryNode_Direction
- func (m *BinaryNode) GetInequalityLeftChildTest() *InequalityTest
- func (m *BinaryNode) GetLeftChildId() *google_protobuf1.Int32Value
- func (m *BinaryNode) GetLeftChildTest() isBinaryNode_LeftChildTest
- func (m *BinaryNode) GetRightChildId() *google_protobuf1.Int32Value
- func (*BinaryNode) ProtoMessage()
- func (m *BinaryNode) Reset()
- func (m *BinaryNode) String() string
- func (*BinaryNode) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, ...)
- type BinaryNode_CustomLeftChildTest
- type BinaryNode_Direction
- type BinaryNode_InequalityLeftChildTest
- type DecisionTree
- type Ensemble
- func (*Ensemble) Descriptor() ([]byte, []int)
- func (m *Ensemble) GetAdditionalData() []*google_protobuf.Any
- func (m *Ensemble) GetAveragingCombinationTechnique() *Averaging
- func (m *Ensemble) GetCombinationTechnique() isEnsemble_CombinationTechnique
- func (m *Ensemble) GetCustomCombinationTechnique() *google_protobuf.Any
- func (m *Ensemble) GetMembers() []*Ensemble_Member
- func (m *Ensemble) GetSummationCombinationTechnique() *Summation
- func (*Ensemble) ProtoMessage()
- func (m *Ensemble) Reset()
- func (m *Ensemble) String() string
- func (*Ensemble) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, ...)
- type Ensemble_AveragingCombinationTechnique
- type Ensemble_CustomCombinationTechnique
- type Ensemble_Member
- func (*Ensemble_Member) Descriptor() ([]byte, []int)
- func (m *Ensemble_Member) GetAdditionalData() []*google_protobuf.Any
- func (m *Ensemble_Member) GetSubmodel() *Model
- func (m *Ensemble_Member) GetSubmodelId() *google_protobuf1.Int32Value
- func (*Ensemble_Member) ProtoMessage()
- func (m *Ensemble_Member) Reset()
- func (m *Ensemble_Member) String() string
- type Ensemble_SummationCombinationTechnique
- type FeatureId
- type InequalityTest
- func (*InequalityTest) Descriptor() ([]byte, []int)
- func (m *InequalityTest) GetFeatureId() *FeatureId
- func (m *InequalityTest) GetFeatureSum() isInequalityTest_FeatureSum
- func (m *InequalityTest) GetOblique() *ObliqueFeatures
- func (m *InequalityTest) GetThreshold() *Value
- func (m *InequalityTest) GetType() InequalityTest_Type
- func (*InequalityTest) ProtoMessage()
- func (m *InequalityTest) Reset()
- func (m *InequalityTest) String() string
- func (*InequalityTest) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, ...)
- type InequalityTest_FeatureId
- type InequalityTest_Oblique
- type InequalityTest_Type
- type Leaf
- func (*Leaf) Descriptor() ([]byte, []int)
- func (m *Leaf) GetAdditionalData() []*google_protobuf.Any
- func (m *Leaf) GetLeaf() isLeaf_Leaf
- func (m *Leaf) GetSparseVector() *SparseVector
- func (m *Leaf) GetVector() *Vector
- func (*Leaf) ProtoMessage()
- func (m *Leaf) Reset()
- func (m *Leaf) String() string
- func (*Leaf) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, ...)
- type Leaf_SparseVector
- type Leaf_Vector
- type MatchingValuesTest
- func (*MatchingValuesTest) Descriptor() ([]byte, []int)
- func (m *MatchingValuesTest) GetFeatureId() *FeatureId
- func (m *MatchingValuesTest) GetInverse() bool
- func (m *MatchingValuesTest) GetValue() []*Value
- func (*MatchingValuesTest) ProtoMessage()
- func (m *MatchingValuesTest) Reset()
- func (m *MatchingValuesTest) String() string
- type Model
- func (*Model) Descriptor() ([]byte, []int)
- func (m *Model) GetAdditionalData() []*google_protobuf.Any
- func (m *Model) GetCustomModel() *google_protobuf.Any
- func (m *Model) GetDecisionTree() *DecisionTree
- func (m *Model) GetEnsemble() *Ensemble
- func (m *Model) GetModel() isModel_Model
- func (*Model) ProtoMessage()
- func (m *Model) Reset()
- func (m *Model) String() string
- func (*Model) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, ...)
- type ModelAndFeatures
- func (*ModelAndFeatures) Descriptor() ([]byte, []int)
- func (m *ModelAndFeatures) GetAdditionalData() []*google_protobuf.Any
- func (m *ModelAndFeatures) GetFeatures() map[string]*ModelAndFeatures_Feature
- func (m *ModelAndFeatures) GetModel() *Model
- func (*ModelAndFeatures) ProtoMessage()
- func (m *ModelAndFeatures) Reset()
- func (m *ModelAndFeatures) String() string
- type ModelAndFeatures_Feature
- func (*ModelAndFeatures_Feature) Descriptor() ([]byte, []int)
- func (m *ModelAndFeatures_Feature) GetAdditionalData() []*google_protobuf.Any
- func (m *ModelAndFeatures_Feature) GetFeatureId() *FeatureId
- func (*ModelAndFeatures_Feature) ProtoMessage()
- func (m *ModelAndFeatures_Feature) Reset()
- func (m *ModelAndFeatures_Feature) String() string
- type Model_CustomModel
- type Model_DecisionTree
- type Model_Ensemble
- type ObliqueFeatures
- type SparseVector
- type Summation
- type TreeNode
- func (*TreeNode) Descriptor() ([]byte, []int)
- func (m *TreeNode) GetAdditionalData() []*google_protobuf.Any
- func (m *TreeNode) GetBinaryNode() *BinaryNode
- func (m *TreeNode) GetCustomNodeType() *google_protobuf.Any
- func (m *TreeNode) GetDepth() *google_protobuf1.Int32Value
- func (m *TreeNode) GetLeaf() *Leaf
- func (m *TreeNode) GetNodeId() *google_protobuf1.Int32Value
- func (m *TreeNode) GetNodeType() isTreeNode_NodeType
- func (m *TreeNode) GetSubtreeSize() *google_protobuf1.Int32Value
- func (*TreeNode) ProtoMessage()
- func (m *TreeNode) Reset()
- func (m *TreeNode) String() string
- func (*TreeNode) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, ...)
- type TreeNode_BinaryNode
- type TreeNode_CustomNodeType
- type TreeNode_Leaf
- type Value
- func (*Value) Descriptor() ([]byte, []int)
- func (m *Value) GetCustomValue() *google_protobuf.Any
- func (m *Value) GetDoubleValue() float64
- func (m *Value) GetFloatValue() float32
- func (m *Value) GetInt32Value() int32
- func (m *Value) GetInt64Value() int64
- func (m *Value) GetValue() isValue_Value
- func (*Value) ProtoMessage()
- func (m *Value) Reset()
- func (m *Value) String() string
- func (*Value) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, ...)
- type Value_CustomValue
- type Value_DoubleValue
- type Value_FloatValue
- type Value_Int32Value
- type Value_Int64Value
- type Vector
Constants ¶
This section is empty.
Variables ¶
var BinaryNode_Direction_name = map[int32]string{
0: "LEFT",
1: "RIGHT",
}
var BinaryNode_Direction_value = map[string]int32{
"LEFT": 0,
"RIGHT": 1,
}
var InequalityTest_Type_name = map[int32]string{
0: "LESS_OR_EQUAL",
1: "LESS_THAN",
2: "GREATER_OR_EQUAL",
3: "GREATER_THAN",
}
var InequalityTest_Type_value = map[string]int32{
"LESS_OR_EQUAL": 0,
"LESS_THAN": 1,
"GREATER_OR_EQUAL": 2,
"GREATER_THAN": 3,
}
Functions ¶
This section is empty.
Types ¶
type Averaging ¶
type Averaging struct {
AdditionalData []*google_protobuf.Any `protobuf:"bytes,1,rep,name=additional_data,json=additionalData" json:"additional_data,omitempty"`
}
When present, the Ensemble's output is the average of member models' outputs.
func (*Averaging) Descriptor ¶
func (*Averaging) GetAdditionalData ¶
func (m *Averaging) GetAdditionalData() []*google_protobuf.Any
func (*Averaging) ProtoMessage ¶
func (*Averaging) ProtoMessage()
type BinaryNode ¶
type BinaryNode struct { LeftChildId *google_protobuf1.Int32Value `protobuf:"bytes,1,opt,name=left_child_id,json=leftChildId" json:"left_child_id,omitempty"` RightChildId *google_protobuf1.Int32Value `protobuf:"bytes,2,opt,name=right_child_id,json=rightChildId" json:"right_child_id,omitempty"` // When left_child_test is undefined for a particular datapoint (e.g. because // it's not defined when feature value is missing), the datapoint should go // in this direction. DefaultDirection BinaryNode_Direction `` /* 155-byte string literal not displayed */ // When a datapoint satisfies the test, it should be propagated to the left // child. // // Types that are valid to be assigned to LeftChildTest: // *BinaryNode_InequalityLeftChildTest // *BinaryNode_CustomLeftChildTest LeftChildTest isBinaryNode_LeftChildTest `protobuf_oneof:"left_child_test"` }
func (*BinaryNode) Descriptor ¶
func (*BinaryNode) Descriptor() ([]byte, []int)
func (*BinaryNode) GetCustomLeftChildTest ¶
func (m *BinaryNode) GetCustomLeftChildTest() *google_protobuf.Any
func (*BinaryNode) GetDefaultDirection ¶
func (m *BinaryNode) GetDefaultDirection() BinaryNode_Direction
func (*BinaryNode) GetInequalityLeftChildTest ¶
func (m *BinaryNode) GetInequalityLeftChildTest() *InequalityTest
func (*BinaryNode) GetLeftChildId ¶
func (m *BinaryNode) GetLeftChildId() *google_protobuf1.Int32Value
func (*BinaryNode) GetLeftChildTest ¶
func (m *BinaryNode) GetLeftChildTest() isBinaryNode_LeftChildTest
func (*BinaryNode) GetRightChildId ¶
func (m *BinaryNode) GetRightChildId() *google_protobuf1.Int32Value
func (*BinaryNode) ProtoMessage ¶
func (*BinaryNode) ProtoMessage()
func (*BinaryNode) Reset ¶
func (m *BinaryNode) Reset()
func (*BinaryNode) String ¶
func (m *BinaryNode) String() string
func (*BinaryNode) XXX_OneofFuncs ¶
func (*BinaryNode) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type BinaryNode_CustomLeftChildTest ¶
type BinaryNode_CustomLeftChildTest struct {
CustomLeftChildTest *google_protobuf.Any `protobuf:"bytes,5,opt,name=custom_left_child_test,json=customLeftChildTest,oneof"`
}
type BinaryNode_Direction ¶
type BinaryNode_Direction int32
const ( BinaryNode_LEFT BinaryNode_Direction = 0 BinaryNode_RIGHT BinaryNode_Direction = 1 )
func (BinaryNode_Direction) EnumDescriptor ¶
func (BinaryNode_Direction) EnumDescriptor() ([]byte, []int)
func (BinaryNode_Direction) String ¶
func (x BinaryNode_Direction) String() string
type BinaryNode_InequalityLeftChildTest ¶
type BinaryNode_InequalityLeftChildTest struct {
InequalityLeftChildTest *InequalityTest `protobuf:"bytes,4,opt,name=inequality_left_child_test,json=inequalityLeftChildTest,oneof"`
}
type DecisionTree ¶
type DecisionTree struct { Nodes []*TreeNode `protobuf:"bytes,1,rep,name=nodes" json:"nodes,omitempty"` AdditionalData []*google_protobuf.Any `protobuf:"bytes,2,rep,name=additional_data,json=additionalData" json:"additional_data,omitempty"` }
func (*DecisionTree) Descriptor ¶
func (*DecisionTree) Descriptor() ([]byte, []int)
func (*DecisionTree) GetAdditionalData ¶
func (m *DecisionTree) GetAdditionalData() []*google_protobuf.Any
func (*DecisionTree) GetNodes ¶
func (m *DecisionTree) GetNodes() []*TreeNode
func (*DecisionTree) ProtoMessage ¶
func (*DecisionTree) ProtoMessage()
func (*DecisionTree) Reset ¶
func (m *DecisionTree) Reset()
func (*DecisionTree) String ¶
func (m *DecisionTree) String() string
type Ensemble ¶
type Ensemble struct { Members []*Ensemble_Member `protobuf:"bytes,100,rep,name=members" json:"members,omitempty"` // The presence of a certain combination_technique indicates how to combine // the outputs of member models in order to compute the ensemble's output. // // Types that are valid to be assigned to CombinationTechnique: // *Ensemble_SummationCombinationTechnique // *Ensemble_AveragingCombinationTechnique // *Ensemble_CustomCombinationTechnique CombinationTechnique isEnsemble_CombinationTechnique `protobuf_oneof:"combination_technique"` AdditionalData []*google_protobuf.Any `protobuf:"bytes,4,rep,name=additional_data,json=additionalData" json:"additional_data,omitempty"` }
An ordered sequence of models. This message can be used to express bagged or boosted models, as well as custom ensembles.
func (*Ensemble) Descriptor ¶
func (*Ensemble) GetAdditionalData ¶
func (m *Ensemble) GetAdditionalData() []*google_protobuf.Any
func (*Ensemble) GetAveragingCombinationTechnique ¶
func (*Ensemble) GetCombinationTechnique ¶
func (m *Ensemble) GetCombinationTechnique() isEnsemble_CombinationTechnique
func (*Ensemble) GetCustomCombinationTechnique ¶
func (m *Ensemble) GetCustomCombinationTechnique() *google_protobuf.Any
func (*Ensemble) GetMembers ¶
func (m *Ensemble) GetMembers() []*Ensemble_Member
func (*Ensemble) GetSummationCombinationTechnique ¶
func (*Ensemble) ProtoMessage ¶
func (*Ensemble) ProtoMessage()
func (*Ensemble) XXX_OneofFuncs ¶
func (*Ensemble) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type Ensemble_AveragingCombinationTechnique ¶
type Ensemble_AveragingCombinationTechnique struct {
AveragingCombinationTechnique *Averaging `protobuf:"bytes,2,opt,name=averaging_combination_technique,json=averagingCombinationTechnique,oneof"`
}
type Ensemble_CustomCombinationTechnique ¶
type Ensemble_CustomCombinationTechnique struct {
CustomCombinationTechnique *google_protobuf.Any `protobuf:"bytes,3,opt,name=custom_combination_technique,json=customCombinationTechnique,oneof"`
}
type Ensemble_Member ¶
type Ensemble_Member struct { Submodel *Model `protobuf:"bytes,1,opt,name=submodel" json:"submodel,omitempty"` SubmodelId *google_protobuf1.Int32Value `protobuf:"bytes,2,opt,name=submodel_id,json=submodelId" json:"submodel_id,omitempty"` AdditionalData []*google_protobuf.Any `protobuf:"bytes,3,rep,name=additional_data,json=additionalData" json:"additional_data,omitempty"` }
func (*Ensemble_Member) Descriptor ¶
func (*Ensemble_Member) Descriptor() ([]byte, []int)
func (*Ensemble_Member) GetAdditionalData ¶
func (m *Ensemble_Member) GetAdditionalData() []*google_protobuf.Any
func (*Ensemble_Member) GetSubmodel ¶
func (m *Ensemble_Member) GetSubmodel() *Model
func (*Ensemble_Member) GetSubmodelId ¶
func (m *Ensemble_Member) GetSubmodelId() *google_protobuf1.Int32Value
func (*Ensemble_Member) ProtoMessage ¶
func (*Ensemble_Member) ProtoMessage()
func (*Ensemble_Member) Reset ¶
func (m *Ensemble_Member) Reset()
func (*Ensemble_Member) String ¶
func (m *Ensemble_Member) String() string
type Ensemble_SummationCombinationTechnique ¶
type Ensemble_SummationCombinationTechnique struct {
SummationCombinationTechnique *Summation `protobuf:"bytes,1,opt,name=summation_combination_technique,json=summationCombinationTechnique,oneof"`
}
type FeatureId ¶
type FeatureId struct { Id *google_protobuf1.StringValue `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` AdditionalData []*google_protobuf.Any `protobuf:"bytes,2,rep,name=additional_data,json=additionalData" json:"additional_data,omitempty"` }
func (*FeatureId) Descriptor ¶
func (*FeatureId) GetAdditionalData ¶
func (m *FeatureId) GetAdditionalData() []*google_protobuf.Any
func (*FeatureId) GetId ¶
func (m *FeatureId) GetId() *google_protobuf1.StringValue
func (*FeatureId) ProtoMessage ¶
func (*FeatureId) ProtoMessage()
type InequalityTest ¶
type InequalityTest struct { // When the feature is missing, the test's outcome is undefined. // // Types that are valid to be assigned to FeatureSum: // *InequalityTest_FeatureId // *InequalityTest_Oblique FeatureSum isInequalityTest_FeatureSum `protobuf_oneof:"FeatureSum"` Type InequalityTest_Type `protobuf:"varint,2,opt,name=type,enum=tensorflow.decision_trees.InequalityTest_Type" json:"type,omitempty"` Threshold *Value `protobuf:"bytes,3,opt,name=threshold" json:"threshold,omitempty"` }
func (*InequalityTest) Descriptor ¶
func (*InequalityTest) Descriptor() ([]byte, []int)
func (*InequalityTest) GetFeatureId ¶
func (m *InequalityTest) GetFeatureId() *FeatureId
func (*InequalityTest) GetFeatureSum ¶
func (m *InequalityTest) GetFeatureSum() isInequalityTest_FeatureSum
func (*InequalityTest) GetOblique ¶
func (m *InequalityTest) GetOblique() *ObliqueFeatures
func (*InequalityTest) GetThreshold ¶
func (m *InequalityTest) GetThreshold() *Value
func (*InequalityTest) GetType ¶
func (m *InequalityTest) GetType() InequalityTest_Type
func (*InequalityTest) ProtoMessage ¶
func (*InequalityTest) ProtoMessage()
func (*InequalityTest) Reset ¶
func (m *InequalityTest) Reset()
func (*InequalityTest) String ¶
func (m *InequalityTest) String() string
func (*InequalityTest) XXX_OneofFuncs ¶
func (*InequalityTest) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type InequalityTest_FeatureId ¶
type InequalityTest_FeatureId struct {
FeatureId *FeatureId `protobuf:"bytes,1,opt,name=feature_id,json=featureId,oneof"`
}
type InequalityTest_Oblique ¶
type InequalityTest_Oblique struct {
Oblique *ObliqueFeatures `protobuf:"bytes,4,opt,name=oblique,oneof"`
}
type InequalityTest_Type ¶
type InequalityTest_Type int32
const ( InequalityTest_LESS_OR_EQUAL InequalityTest_Type = 0 InequalityTest_LESS_THAN InequalityTest_Type = 1 InequalityTest_GREATER_OR_EQUAL InequalityTest_Type = 2 InequalityTest_GREATER_THAN InequalityTest_Type = 3 )
func (InequalityTest_Type) EnumDescriptor ¶
func (InequalityTest_Type) EnumDescriptor() ([]byte, []int)
func (InequalityTest_Type) String ¶
func (x InequalityTest_Type) String() string
type Leaf ¶
type Leaf struct { // Types that are valid to be assigned to Leaf: // *Leaf_Vector // *Leaf_SparseVector Leaf isLeaf_Leaf `protobuf_oneof:"leaf"` // For non-standard handling of leaves. AdditionalData []*google_protobuf.Any `protobuf:"bytes,3,rep,name=additional_data,json=additionalData" json:"additional_data,omitempty"` }
func (*Leaf) Descriptor ¶
func (*Leaf) GetAdditionalData ¶
func (m *Leaf) GetAdditionalData() []*google_protobuf.Any
func (*Leaf) GetSparseVector ¶
func (m *Leaf) GetSparseVector() *SparseVector
func (*Leaf) ProtoMessage ¶
func (*Leaf) ProtoMessage()
type Leaf_SparseVector ¶
type Leaf_SparseVector struct {
SparseVector *SparseVector `protobuf:"bytes,2,opt,name=sparse_vector,json=sparseVector,oneof"`
}
type Leaf_Vector ¶
type Leaf_Vector struct {
Vector *Vector `protobuf:"bytes,1,opt,name=vector,oneof"`
}
type MatchingValuesTest ¶
type MatchingValuesTest struct { // When the feature is missing, the test's outcome is undefined. FeatureId *FeatureId `protobuf:"bytes,1,opt,name=feature_id,json=featureId" json:"feature_id,omitempty"` Value []*Value `protobuf:"bytes,2,rep,name=value" json:"value,omitempty"` Inverse bool `protobuf:"varint,3,opt,name=inverse" json:"inverse,omitempty"` }
Used in generic_tree_model.BinaryNode.left_child_test. Tests whether the feature's value belongs to the specified list, (or does not belong if inverse=True).
func (*MatchingValuesTest) Descriptor ¶
func (*MatchingValuesTest) Descriptor() ([]byte, []int)
func (*MatchingValuesTest) GetFeatureId ¶
func (m *MatchingValuesTest) GetFeatureId() *FeatureId
func (*MatchingValuesTest) GetInverse ¶
func (m *MatchingValuesTest) GetInverse() bool
func (*MatchingValuesTest) GetValue ¶
func (m *MatchingValuesTest) GetValue() []*Value
func (*MatchingValuesTest) ProtoMessage ¶
func (*MatchingValuesTest) ProtoMessage()
func (*MatchingValuesTest) Reset ¶
func (m *MatchingValuesTest) Reset()
func (*MatchingValuesTest) String ¶
func (m *MatchingValuesTest) String() string
type Model ¶
type Model struct { // Types that are valid to be assigned to Model: // *Model_DecisionTree // *Model_Ensemble // *Model_CustomModel Model isModel_Model `protobuf_oneof:"model"` AdditionalData []*google_protobuf.Any `protobuf:"bytes,4,rep,name=additional_data,json=additionalData" json:"additional_data,omitempty"` }
A generic handle for any type of model.
func (*Model) Descriptor ¶
func (*Model) GetAdditionalData ¶
func (m *Model) GetAdditionalData() []*google_protobuf.Any
func (*Model) GetCustomModel ¶
func (m *Model) GetCustomModel() *google_protobuf.Any
func (*Model) GetDecisionTree ¶
func (m *Model) GetDecisionTree() *DecisionTree
func (*Model) GetEnsemble ¶
func (*Model) ProtoMessage ¶
func (*Model) ProtoMessage()
type ModelAndFeatures ¶
type ModelAndFeatures struct { // Given a FeatureId feature_id, the feature's description is in // features[feature_id.id.value]. Features map[string]*ModelAndFeatures_Feature `` /* 136-byte string literal not displayed */ Model *Model `protobuf:"bytes,2,opt,name=model" json:"model,omitempty"` AdditionalData []*google_protobuf.Any `protobuf:"bytes,3,rep,name=additional_data,json=additionalData" json:"additional_data,omitempty"` }
func (*ModelAndFeatures) Descriptor ¶
func (*ModelAndFeatures) Descriptor() ([]byte, []int)
func (*ModelAndFeatures) GetAdditionalData ¶
func (m *ModelAndFeatures) GetAdditionalData() []*google_protobuf.Any
func (*ModelAndFeatures) GetFeatures ¶
func (m *ModelAndFeatures) GetFeatures() map[string]*ModelAndFeatures_Feature
func (*ModelAndFeatures) GetModel ¶
func (m *ModelAndFeatures) GetModel() *Model
func (*ModelAndFeatures) ProtoMessage ¶
func (*ModelAndFeatures) ProtoMessage()
func (*ModelAndFeatures) Reset ¶
func (m *ModelAndFeatures) Reset()
func (*ModelAndFeatures) String ¶
func (m *ModelAndFeatures) String() string
type ModelAndFeatures_Feature ¶
type ModelAndFeatures_Feature struct { // TODO(jonasz): Remove this field, as it's confusing. Ctx: cr/153569450. FeatureId *FeatureId `protobuf:"bytes,1,opt,name=feature_id,json=featureId" json:"feature_id,omitempty"` AdditionalData []*google_protobuf.Any `protobuf:"bytes,2,rep,name=additional_data,json=additionalData" json:"additional_data,omitempty"` }
func (*ModelAndFeatures_Feature) Descriptor ¶
func (*ModelAndFeatures_Feature) Descriptor() ([]byte, []int)
func (*ModelAndFeatures_Feature) GetAdditionalData ¶
func (m *ModelAndFeatures_Feature) GetAdditionalData() []*google_protobuf.Any
func (*ModelAndFeatures_Feature) GetFeatureId ¶
func (m *ModelAndFeatures_Feature) GetFeatureId() *FeatureId
func (*ModelAndFeatures_Feature) ProtoMessage ¶
func (*ModelAndFeatures_Feature) ProtoMessage()
func (*ModelAndFeatures_Feature) Reset ¶
func (m *ModelAndFeatures_Feature) Reset()
func (*ModelAndFeatures_Feature) String ¶
func (m *ModelAndFeatures_Feature) String() string
type Model_CustomModel ¶
type Model_CustomModel struct {
CustomModel *google_protobuf.Any `protobuf:"bytes,3,opt,name=custom_model,json=customModel,oneof"`
}
type Model_DecisionTree ¶
type Model_DecisionTree struct {
DecisionTree *DecisionTree `protobuf:"bytes,1,opt,name=decision_tree,json=decisionTree,oneof"`
}
type Model_Ensemble ¶
type Model_Ensemble struct {
Ensemble *Ensemble `protobuf:"bytes,2,opt,name=ensemble,oneof"`
}
type ObliqueFeatures ¶
type ObliqueFeatures struct { // total value is sum(features[i] * weights[i]). Features []*FeatureId `protobuf:"bytes,1,rep,name=features" json:"features,omitempty"` Weights []float32 `protobuf:"fixed32,2,rep,packed,name=weights" json:"weights,omitempty"` }
func (*ObliqueFeatures) Descriptor ¶
func (*ObliqueFeatures) Descriptor() ([]byte, []int)
func (*ObliqueFeatures) GetFeatures ¶
func (m *ObliqueFeatures) GetFeatures() []*FeatureId
func (*ObliqueFeatures) GetWeights ¶
func (m *ObliqueFeatures) GetWeights() []float32
func (*ObliqueFeatures) ProtoMessage ¶
func (*ObliqueFeatures) ProtoMessage()
func (*ObliqueFeatures) Reset ¶
func (m *ObliqueFeatures) Reset()
func (*ObliqueFeatures) String ¶
func (m *ObliqueFeatures) String() string
type SparseVector ¶
type SparseVector struct {
SparseValue map[int64]*Value `` /* 162-byte string literal not displayed */
}
A SparseVector represents a vector in which only certain select elements are non-zero. Maps labels to values (e.g. class id to probability or count).
func (*SparseVector) Descriptor ¶
func (*SparseVector) Descriptor() ([]byte, []int)
func (*SparseVector) GetSparseValue ¶
func (m *SparseVector) GetSparseValue() map[int64]*Value
func (*SparseVector) ProtoMessage ¶
func (*SparseVector) ProtoMessage()
func (*SparseVector) Reset ¶
func (m *SparseVector) Reset()
func (*SparseVector) String ¶
func (m *SparseVector) String() string
type Summation ¶
type Summation struct {
AdditionalData []*google_protobuf.Any `protobuf:"bytes,1,rep,name=additional_data,json=additionalData" json:"additional_data,omitempty"`
}
When present, the Ensemble's output is the sum of member models' outputs.
func (*Summation) Descriptor ¶
func (*Summation) GetAdditionalData ¶
func (m *Summation) GetAdditionalData() []*google_protobuf.Any
func (*Summation) ProtoMessage ¶
func (*Summation) ProtoMessage()
type TreeNode ¶
type TreeNode struct { // Following fields are provided for convenience and better readability. // Filling them in is not required. NodeId *google_protobuf1.Int32Value `protobuf:"bytes,1,opt,name=node_id,json=nodeId" json:"node_id,omitempty"` Depth *google_protobuf1.Int32Value `protobuf:"bytes,2,opt,name=depth" json:"depth,omitempty"` SubtreeSize *google_protobuf1.Int32Value `protobuf:"bytes,3,opt,name=subtree_size,json=subtreeSize" json:"subtree_size,omitempty"` // Types that are valid to be assigned to NodeType: // *TreeNode_BinaryNode // *TreeNode_Leaf // *TreeNode_CustomNodeType NodeType isTreeNode_NodeType `protobuf_oneof:"node_type"` AdditionalData []*google_protobuf.Any `protobuf:"bytes,7,rep,name=additional_data,json=additionalData" json:"additional_data,omitempty"` }
func (*TreeNode) Descriptor ¶
func (*TreeNode) GetAdditionalData ¶
func (m *TreeNode) GetAdditionalData() []*google_protobuf.Any
func (*TreeNode) GetBinaryNode ¶
func (m *TreeNode) GetBinaryNode() *BinaryNode
func (*TreeNode) GetCustomNodeType ¶
func (m *TreeNode) GetCustomNodeType() *google_protobuf.Any
func (*TreeNode) GetDepth ¶
func (m *TreeNode) GetDepth() *google_protobuf1.Int32Value
func (*TreeNode) GetNodeId ¶
func (m *TreeNode) GetNodeId() *google_protobuf1.Int32Value
func (*TreeNode) GetNodeType ¶
func (m *TreeNode) GetNodeType() isTreeNode_NodeType
func (*TreeNode) GetSubtreeSize ¶
func (m *TreeNode) GetSubtreeSize() *google_protobuf1.Int32Value
func (*TreeNode) ProtoMessage ¶
func (*TreeNode) ProtoMessage()
func (*TreeNode) XXX_OneofFuncs ¶
func (*TreeNode) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type TreeNode_BinaryNode ¶
type TreeNode_BinaryNode struct {
BinaryNode *BinaryNode `protobuf:"bytes,4,opt,name=binary_node,json=binaryNode,oneof"`
}
type TreeNode_CustomNodeType ¶
type TreeNode_CustomNodeType struct {
CustomNodeType *google_protobuf.Any `protobuf:"bytes,6,opt,name=custom_node_type,json=customNodeType,oneof"`
}
type TreeNode_Leaf ¶
type TreeNode_Leaf struct {
Leaf *Leaf `protobuf:"bytes,5,opt,name=leaf,oneof"`
}
type Value ¶
type Value struct { // Types that are valid to be assigned to Value: // *Value_FloatValue // *Value_DoubleValue // *Value_Int32Value // *Value_Int64Value // *Value_CustomValue Value isValue_Value `protobuf_oneof:"value"` }
Represents a single value of any type, e.g. 5 or "abc".
func (*Value) Descriptor ¶
func (*Value) GetCustomValue ¶
func (m *Value) GetCustomValue() *google_protobuf.Any
func (*Value) GetDoubleValue ¶
func (*Value) GetFloatValue ¶
func (*Value) GetInt32Value ¶
func (*Value) GetInt64Value ¶
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
type Value_CustomValue ¶
type Value_CustomValue struct {
CustomValue *google_protobuf.Any `protobuf:"bytes,5,opt,name=custom_value,json=customValue,oneof"`
}
type Value_DoubleValue ¶
type Value_DoubleValue struct {
DoubleValue float64 `protobuf:"fixed64,2,opt,name=double_value,json=doubleValue,oneof"`
}
type Value_FloatValue ¶
type Value_FloatValue struct {
FloatValue float32 `protobuf:"fixed32,1,opt,name=float_value,json=floatValue,oneof"`
}
type Value_Int32Value ¶
type Value_Int32Value struct {
Int32Value int32 `protobuf:"varint,3,opt,name=int32_value,json=int32Value,oneof"`
}
type Value_Int64Value ¶
type Value_Int64Value struct {
Int64Value int64 `protobuf:"varint,4,opt,name=int64_value,json=int64Value,oneof"`
}
type Vector ¶
type Vector struct {
Value []*Value `protobuf:"bytes,1,rep,name=value" json:"value,omitempty"`
}
func (*Vector) Descriptor ¶
func (*Vector) ProtoMessage ¶
func (*Vector) ProtoMessage()