-
Notifications
You must be signed in to change notification settings - Fork 24
/
typegen.go
35 lines (19 loc) · 8.58 KB
/
typegen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Code generated by "core generate -add-types"; DO NOT EDIT.
package params
import (
"cogentcore.org/core/types"
)
var _ = types.AddType(&types.Type{Name: "github.com/emer/emergent/v2/params.FlexVal", IDName: "flex-val", Doc: "FlexVal is a specific flexible value for the Flex parameter map\nthat implements the StylerObject interface for CSS-style selection logic.\nThe field names are abbreviated because full names are used in StylerObject.", Fields: []types.Field{{Name: "Name", Doc: "name of this specific object, matches #Name selections"}, {Name: "Type", Doc: "type name of this object, matches plain TypeName selections"}, {Name: "Class", Doc: "space-separated list of class name(s), match the .Class selections"}, {Name: "Object", Doc: "actual object with data that is set by the parameters"}, {Name: "History", Doc: "History of params applied"}}})
var _ = types.AddType(&types.Type{Name: "github.com/emer/emergent/v2/params.Flex", IDName: "flex", Doc: "Flex supports arbitrary named parameter values that can be set\nby a Set of parameters, as a map of any objects.\nFirst initialize the map with set of names and a type to create\nblank values, then apply the Set to it."})
var _ = types.AddType(&types.Type{Name: "github.com/emer/emergent/v2/params.History", IDName: "history", Doc: "The params.History interface records history of parameters applied\nto a given object.", Methods: []types.Method{{Name: "ParamsHistoryReset", Doc: "ParamsHistoryReset resets parameter application history"}, {Name: "ParamsApplied", Doc: "ParamsApplied is called when a parameter is successfully applied for given selector", Args: []string{"sel"}}}})
var _ = types.AddType(&types.Type{Name: "github.com/emer/emergent/v2/params.HistoryImpl", IDName: "history-impl", Doc: "HistoryImpl implements the History interface. Implementing object can\njust pass calls to a HistoryImpl field."})
var _ = types.AddType(&types.Type{Name: "github.com/emer/emergent/v2/params.HyperValues", IDName: "hyper-values", Doc: "HyperValues is a string-value map for storing hyperparameter values"})
var _ = types.AddType(&types.Type{Name: "github.com/emer/emergent/v2/params.Hypers", IDName: "hypers", Doc: "Hypers is a parallel structure to Params which stores information relevant\nto hyperparameter search as well as the values.\nUse the key \"Val\" for the default value. This is equivalant to the value in\nParams. \"Min\" and \"Max\" guid the range, and \"Sigma\" describes a Gaussian."})
var _ = types.AddType(&types.Type{Name: "github.com/emer/emergent/v2/params.Params", IDName: "params", Doc: "Params is a name-value map for parameter values that can be applied\nto any numeric type in any object.\nThe name must be a dot-separated path to a specific parameter, e.g., Path.Learn.Lrate\nThe first part of the path is the overall target object type, e.g., \"Path\" or \"Layer\",\nwhich is used for determining if the parameter applies to a given object type.\n\nAll of the params in one map must apply to the same target type because\nonly the first item in the map (which could be any due to order randomization)\nis used for checking the type of the target. Also, they all fall within the same\nSel selector scope which is used to determine what specific objects to apply the\nparameters to."})
var _ = types.AddType(&types.Type{Name: "github.com/emer/emergent/v2/params.Sel", IDName: "sel", Doc: "params.Sel specifies a selector for the scope of application of a set of\nparameters, using standard css selector syntax (. prefix = class, # prefix = name,\nand no prefix = type)", Directives: []types.Directive{{Tool: "types", Directive: "add"}}, Fields: []types.Field{{Name: "Sel", Doc: "selector for what to apply the parameters to, using standard css selector syntax: .Example applies to anything with a Class tag of 'Example', #Example applies to anything with a Name of 'Example', and Example with no prefix applies to anything of type 'Example'"}, {Name: "Desc", Doc: "description of these parameter values -- what effect do they have? what range was explored? it is valuable to record this information as you explore the params."}, {Name: "Params", Doc: "parameter values to apply to whatever matches the selector"}, {Name: "Hypers", Doc: "Put your hyperparams here"}, {Name: "NMatch", Doc: "number of times this selector matched a target during the last Apply process -- a warning is issued for any that remain at 0 -- see Sheet SelMatchReset and SelNoMatchWarn methods"}, {Name: "SetName", Doc: "name of current Set being applied"}}})
var _ = types.AddType(&types.Type{Name: "github.com/emer/emergent/v2/params.Sheet", IDName: "sheet", Doc: "Sheet is a CSS-like style-sheet of params.Sel values, each of which represents\na different set of specific parameter values applied according to the Sel selector:\n.Class #Name or Type.\n\nThe order of elements in the Sheet list is critical, as they are applied\nin the order given by the list (slice), and thus later Sel's can override\nthose applied earlier. Thus, you generally want to have more general Type-level\nparameters listed first, and then subsequently more specific ones (.Class and #Name)\n\nThis is the highest level of params that has an Apply method -- above this level\napplication must be done under explicit program control."})
var _ = types.AddType(&types.Type{Name: "github.com/emer/emergent/v2/params.Sets", IDName: "sets", Doc: "Sets is a collection of Sheets that can be chosen among\ndepending on different desired configurations etc. Thus, each Set\nrepresents a collection of different possible specific configurations,\nand different such configurations can be chosen by name to apply as desired."})
var _ = types.AddType(&types.Type{Name: "github.com/emer/emergent/v2/params.SearchValues", IDName: "search-values", Doc: "SearchValues is a list of parameter values to search for one parameter\non a given object (specified by Name), for float-valued params.", Fields: []types.Field{{Name: "Name", Doc: "name of object with the parameter"}, {Name: "Type", Doc: "type of object with the parameter. This is a Base type name (e.g., Layer, Path),\nthat is at the start of the path in Network params."}, {Name: "Path", Doc: "path to the parameter within the object"}, {Name: "Start", Doc: "starting value, e.g., for restoring after searching\nbefore moving on to another parameter, for grid search."}, {Name: "Values", Doc: "values of the parameter to search"}}})
var _ = types.AddType(&types.Type{Name: "github.com/emer/emergent/v2/params.Styler", IDName: "styler", Doc: "The params.Styler interface exposes TypeName, Class, and Name methods\nthat allow the params.Sel CSS-style selection specifier to determine\nwhether a given parameter applies.\nAdding Set versions of Name and Class methods is a good idea but not\nneeded for this interface, so they are not included here.", Methods: []types.Method{{Name: "StyleType", Doc: "StyleType returns the name of this type for CSS-style matching.\nThis is used for CSS Sel selector with no prefix.\nThis type is used *in addition* to the actual Go type name\nof the object, and is a kind of type-category (e.g., Layer\nor Path in emergent network objects).", Returns: []string{"string"}}, {Name: "StyleClass", Doc: "StyleClass returns the space-separated list of class selectors (tags).\nParameters with a . prefix target class tags.\nDo NOT include the . in the Class tags on Styler objects;\nThe . is only used in the Sel selector on the params.Sel.", Returns: []string{"string"}}, {Name: "StyleName", Doc: "StyleName returns the name of this object.\nParameters with a # prefix target object names, which are typically\nunique. Note, do not include the # prefix in the actual object name,\nonly in the Sel selector on params.Sel.", Returns: []string{"string"}}}})
var _ = types.AddType(&types.Type{Name: "github.com/emer/emergent/v2/params.StylerObject", IDName: "styler-object", Doc: "The params.StylerObject interface extends Styler to include an arbitary\nfunction to access the underlying object type.", Methods: []types.Method{{Name: "StyleObject", Doc: "StyleObject returns the object that will have its field values set by\nthe params specifications.", Returns: []string{"any"}}}})
var _ = types.AddType(&types.Type{Name: "github.com/emer/emergent/v2/params.Tweaks", IDName: "tweaks", Doc: "Tweaks holds parameter tweak values associated with one parameter selector.\nHas all the object values affected for a given parameter within one\nselector, that has a tweak hyperparameter set.", Fields: []types.Field{{Name: "Param", Doc: "the parameter path for this param"}, {Name: "Sel", Doc: "the param selector that set the specific value upon which tweak is based"}, {Name: "Search", Doc: "the search values for all objects covered by this selector"}}})