Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llvm/OneHot: Implement all modes #3124

Merged
merged 17 commits into from
Nov 21, 2024
Merged

Conversation

jvesely
Copy link
Collaborator

@jvesely jvesely commented Nov 21, 2024

Refactor Python OneHot implementation.
Add tests for OneHot(mode=DETERMINISTIC).

Refactor compiled OneHot to isolate PROB and PROB_INDICATOR.
Convert recursive traversal of arrays from generator to context manager.

Implement compiled random integer generation for bounded integers.
Implement all OneHot modes in compiled mode.

Results, errors, warning, are testid independently for each value of
tested softmax_choice parameter.

Signed-off-by: Jan Vesely <[email protected]>
Simplify implementation.
Handle multidimensional arrays.

Signed-off-by: Jan Vesely <[email protected]>
The other modes will be update to match generalized Python behaviour.

Signed-off-by: Jan Vesely <[email protected]>
…ISTIC

Allow output of multiple extremes.
Enable tests.

Still TODO:
 * mode==DETERMINISTIC
 * tie==RANDOM (only used with mode==DETERMINISTIC)
 * 2d arguments

Signed-off-by: Jan Vesely <[email protected]>
Not needed since OneHot now supports all modes != DETERMINISTIC
Cleanup codestyle.

Signed-off-by: Jan Vesely <[email protected]>
Remove call_elementwise_operation helper.

Signed-off-by: Jan Vesely <[email protected]>
…DETERMINISTIC mode

Drop random_state and seed if "tie" is not RANDOM

Signed-off-by: Jan Vesely <[email protected]>
Use "recursive_iterate_arrays" to support 2d input.

Signed-off-by: Jan Vesely <[email protected]>
Change test name to include "int32"
Use np.uint32 type for numpy PRNG

Signed-off-by: Jan Vesely <[email protected]>
Uses Lemire's algorithm [0].
Applies to Philox PRNG using "integers" API call,
"randint" uses older, "masked rejection sampling" approach.

[0] https://arxiv.org/abs/1805.10941

Signed-off-by: Jan Vesely <[email protected]>
Uses bit masked rejection sampling of lower bits.
Matches to Numpy's Random.randint API call.

Signed-off-by: Jan Vesely <[email protected]>
@jvesely jvesely added the compiler Runtime Compiler label Nov 21, 2024
Copy link

This PR causes the following changes to the html docs (ubuntu-latest-3.11):

diff -r docs-base/SelectionFunctions.html docs-head/SelectionFunctions.html
296c296
< <li><p><strong>mode</strong> (<em>DETERMINISITC</em><em>, </em><em>PROB</em><em>, </em><em>PROB_INDICATOR</em><em>,</em>) – </p></li>
---
> <li><p><strong>mode</strong> (<em>DETERMINISTiC</em><em>, </em><em>PROB</em><em>, </em><em>PROB_INDICATOR</em><em>,</em>) – </p></li>
368c368
< <dd class="field-odd"><p>DETERMINISITC, PROB, PROB_INDICATOR,</p>
---
> <dd class="field-odd"><p>DETERMINISTIC, PROB, PROB_INDICATOR,</p>
diff -r docs-base/searchindex.js docs-head/searchindex.js
1c1
< Search.setIndex({docnames:["AGT","AGTControlMechanism","AutoAssociativeLearningMechanism","AutoAssociativeProjection","AutodiffComposition","BasicsAndPrimer","BeukersNBackModel","BeukersNBackModel_NB","BotvinickConflictMonitoringModel","BustamanteStroopXORLVOCModel","Cohen_HustonModel","ComparatorMechanism","Compilation","Component","Components","Composition","CompositionFunctionApproximator","CompositionInterfaceMechanism","Compositions","Condition","Context","ContrastiveHebbianMechanism","ContributorsGuide","ControlMechanism","ControlMechanisms","ControlProjection","ControlProjections","ControlSignal","ConventionsAndDefinitions","Core","DDM","DefaultControlMechanism","Defaults","DistributionFunctions","EMComposition","EVC","EVCAuxiliary","EVCControlMechanism","EpisodicMemoryMechanism","Function","Functions","GatingMechanism","GatingMechanisms","GatingProjection","GatingProjections","GatingSignal","GilzenratModel","InputPort","IntegratorFunctions","IntegratorMechanism","IntegratorMechanisms","KWTAMechanism","Keywords","KohonenMechanism","LCAMechanism","LCControlMechanism","LCMechanism","LLVM","LeabraMechanism","LearningFunctions","LearningMechanism","LearningMechanisms","LearningProjection","LearningProjections","LearningSignal","Library","Log","MappingProjection","MaskedMappingProjection","Mechanism","Mechanisms","MemoryFunctions","Models","ModulatoryMechanism","ModulatoryMechanisms","ModulatoryProjection","ModulatoryProjections","ModulatorySignal","MontagueModel","NieuwenhuisModel","NonStatefulFunctions","ObjectiveFunctions","ObjectiveMechanism","ObjectiveMechanisms","OptimizationControlMechanism","OptimizationFunctions","OutputPort","PCTC_model","ParameterEstimationComposition","ParameterPort","Parameters","Pathway","PathwayProjection","PathwayProjections","Port","PredictionErrorMechanism","Preferences","ProcessingMechanism","ProcessingMechanisms","Projection","Projections","QuickReference","RecurrentTransferMechanism","RefactoredLearningGuide","Registry","RegressionCFA","Report","Scheduler","Scheduling","SelectionFunctions","Services","StatefulFunction","StatefulFunctions","Subystems","Time","TransferFunctions","TransferMechanism","TransferMechanisms","TransformFunctions","UserDefinedFunction","UserGuide","UserGuide_TBD","Visualization","globals","index","index_logo_with_text","mdf","nback_nb"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":4,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":3,"sphinx.domains.rst":2,"sphinx.domains.std":2,sphinx:56},filenames:["AGT.rst","AGTControlMechanism.rst","AutoAssociativeLearningMechanism.rst","AutoAssociativeProjection.rst","AutodiffComposition.rst","BasicsAndPrimer.rst","BeukersNBackModel.rst","BeukersNBackModel_NB.rst","BotvinickConflictMonitoringModel.rst","BustamanteStroopXORLVOCModel.rst","Cohen_HustonModel.rst","ComparatorMechanism.rst","Compilation.rst","Component.rst","Components.rst","Composition.rst","CompositionFunctionApproximator.rst","CompositionInterfaceMechanism.rst","Compositions.rst","Condition.rst","Context.rst","ContrastiveHebbianMechanism.rst","ContributorsGuide.rst","ControlMechanism.rst","ControlMechanisms.rst","ControlProjection.rst","ControlProjections.rst","ControlSignal.rst","ConventionsAndDefinitions.rst","Core.rst","DDM.rst","DefaultControlMechanism.rst","Defaults.rst","DistributionFunctions.rst","EMComposition.rst","EVC.rst","EVCAuxiliary.rst","EVCControlMechanism.rst","EpisodicMemoryMechanism.rst","Function.rst","Functions.rst","GatingMechanism.rst","GatingMechanisms.rst","GatingProjection.rst","GatingProjections.rst","GatingSignal.rst","GilzenratModel.rst","InputPort.rst","IntegratorFunctions.rst","IntegratorMechanism.rst","IntegratorMechanisms.rst","KWTAMechanism.rst","Keywords.rst","KohonenMechanism.rst","LCAMechanism.rst","LCControlMechanism.rst","LCMechanism.rst","LLVM.rst","LeabraMechanism.rst","LearningFunctions.rst","LearningMechanism.rst","LearningMechanisms.rst","LearningProjection.rst","LearningProjections.rst","LearningSignal.rst","Library.rst","Log.rst","MappingProjection.rst","MaskedMappingProjection.rst","Mechanism.rst","Mechanisms.rst","MemoryFunctions.rst","Models.rst","ModulatoryMechanism.rst","ModulatoryMechanisms.rst","ModulatoryProjection.rst","ModulatoryProjections.rst","ModulatorySignal.rst","MontagueModel.rst","NieuwenhuisModel.rst","NonStatefulFunctions.rst","ObjectiveFunctions.rst","ObjectiveMechanism.rst","ObjectiveMechanisms.rst","OptimizationControlMechanism.rst","OptimizationFunctions.rst","OutputPort.rst","PCTC_model.rst","ParameterEstimationComposition.rst","ParameterPort.rst","Parameters.rst","Pathway.rst","PathwayProjection.rst","PathwayProjections.rst","Port.rst","PredictionErrorMechanism.rst","Preferences.rst","ProcessingMechanism.rst","ProcessingMechanisms.rst","Projection.rst","Projections.rst","QuickReference.rst","RecurrentTransferMechanism.rst","RefactoredLearningGuide.rst","Registry.rst","RegressionCFA.rst","Report.rst","Scheduler.rst","Scheduling.rst","SelectionFunctions.rst","Services.rst","StatefulFunction.rst","StatefulFunctions.rst","Subystems.rst","Time.rst","TransferFunctions.rst","TransferMechanism.rst","TransferMechanisms.rst","TransformFunctions.rst","UserDefinedFunction.rst","UserGuide.rst","UserGuide_TBD.rst","Visualization.rst","globals.rst","index.rst","index_logo_with_text.rst","mdf.rst","nback_nb.ipynb"],objects:{"psyneulink.core.components":{component:[13,0,0,"-"]},"psyneulink.core.components.component":{Component:[13,1,1,""]},"psyneulink.core.components.component.Component":{"function":[13,4,1,""],_check_args:[13,2,1,""],_check_for_composition:[13,2,1,""],_deferred_init:[13,2,1,""],_dependent_components:[13,3,1,""],_get_allowed_arguments:[13,2,1,""],_get_param_value_from_tuple:[13,2,1,""],_handle_default_variable:[13,2,1,""],_handle_input_shapes:[13,2,1,""],_initialize_parameters:[13,2,1,""],_instantiate_defaults:[13,2,1,""],_instantiate_function:[13,2,1,""],_instantiate_parameter_classes:[13,2,1,""],_model_spec_class_name_is_generic:[13,4,1,""],_model_spec_generic_type_name:[13,4,1,""],_model_spec_parameter_blacklist:[13,3,1,""],_parameter_components:[13,3,1,""],_parse_arg_generic:[13,2,1,""],_parse_arg_variable:[13,2,1,""],_parse_function_variable:[13,2,1,""],_parse_input_shapes:[13,2,1,""],_receiver_ports:[13,3,1,""],_sender_ports:[13,3,1,""],_set_multiple_parameter_values:[13,2,1,""],_specified_variable_shape_flexibility:[13,4,1,""],_validate:[13,2,1,""],_validate_and_assign_runtime_params:[13,2,1,""],_validate_arguments:[13,2,1,""],_validate_function:[13,2,1,""],_validate_params:[13,2,1,""],_validate_variable:[13,2,1,""],all_dependent_parameters:[13,2,1,""],current_execution_time:[13,4,1,""],defaults:[13,4,1,""],execute:[13,2,1,""],execute_until_finished:[13,4,1,""],execution_count:[13,4,1,""],function_parameters:[13,3,1,""],get_afferents:[13,2,1,""],get_efferents:[13,2,1,""],initialization_status:[13,4,1,""],input_shapes:[13,4,1,""],is_finished:[13,2,1,""],log:[13,4,1,""],log_values:[13,2,1,""],loggable_items:[13,3,1,""],logged_items:[13,3,1,""],max_executions_before_finished:[13,4,1,""],most_recent_context:[13,3,1,""],name:[13,4,1,""],num_executions:[13,4,1,""],num_executions_before_finished:[13,4,1,""],parameters:[13,4,1,""],prefs:[13,4,1,""],reset:[13,2,1,""],reset_params:[13,2,1,""],reset_stateful_function_when:[13,4,1,""],set_delivery_conditions:[13,2,1,""],set_log_conditions:[13,2,1,""],stateful_parameters:[13,3,1,"id0"],value:[13,4,1,""],variable:[13,4,1,""]},"psyneulink.core.components.functions":{"function":[40,0,0,"-"],distributionfunctions:[33,0,0,"-"],learningfunctions:[59,0,0,"-"],objectivefunctions:[81,0,0,"-"],optimizationfunctions:[85,0,0,"-"],selectionfunctions:[109,0,0,"-"],transferfunctions:[115,0,0,"-"],transformfunctions:[118,0,0,"-"],userdefinedfunction:[119,0,0,"-"]},"psyneulink.core.components.functions.distributionfunctions":{DistributionFunction:[33,1,1,""],DriftDiffusionAnalytical:[33,1,1,""],ExponentialDist:[33,1,1,""],GammaDist:[33,1,1,""],NormalDist:[33,1,1,""],UniformDist:[33,1,1,""],UniformToNormalDist:[33,1,1,""],WaldDist:[33,1,1,""]},"psyneulink.core.components.functions.distributionfunctions.DriftDiffusionAnalytical":{_compute_conditional_rt_moments:[33,2,1,""],_function:[33,2,1,""],bias:[33,4,1,""],derivative:[33,2,1,""],drift_rate:[33,4,1,""],name:[33,4,1,""],noise:[33,4,1,""],non_decision_time:[33,4,1,""],owner:[33,4,1,""],prefs:[33,4,1,""],shenhav_et_al_compat_mode:[33,3,1,""],starting_value:[33,4,1,""],threshold:[33,4,1,""],variable:[33,4,1,""]},"psyneulink.core.components.functions.distributionfunctions.ExponentialDist":{beta:[33,4,1,""],name:[33,4,1,""],owner:[33,4,1,""],params:[33,4,1,""],prefs:[33,4,1,""],random_state:[33,4,1,""]},"psyneulink.core.components.functions.distributionfunctions.GammaDist":{dist_shape:[33,4,1,""],name:[33,4,1,""],owner:[33,4,1,""],params:[33,4,1,""],prefs:[33,4,1,""],random_state:[33,4,1,""],scale:[33,4,1,""]},"psyneulink.core.components.functions.distributionfunctions.NormalDist":{_validate_params:[33,2,1,""],mean:[33,4,1,""],name:[33,4,1,""],owner:[33,4,1,""],params:[33,4,1,""],prefs:[33,4,1,""],random_state:[33,4,1,""],standard_deviation:[33,4,1,""]},"psyneulink.core.components.functions.distributionfunctions.UniformDist":{high:[33,4,1,""],low:[33,4,1,""],name:[33,4,1,""],owner:[33,4,1,""],params:[33,4,1,""],prefs:[33,4,1,""],random_state:[33,4,1,""]},"psyneulink.core.components.functions.distributionfunctions.UniformToNormalDist":{mean:[33,4,1,""],name:[33,4,1,""],owner:[33,4,1,""],params:[33,4,1,""],prefs:[33,4,1,""],random_state:[33,4,1,""],standard_deviation:[33,4,1,""]},"psyneulink.core.components.functions.function":{ArgumentTherapy:[40,1,1,""],Function_Base:[40,1,1,""],RandomMatrix:[40,1,1,""]},"psyneulink.core.components.functions.function.ArgumentTherapy":{Manner:[40,1,1,""],_function:[40,2,1,""],_validate_params:[40,2,1,""],_validate_variable:[40,2,1,""],name:[40,4,1,""],owner:[40,4,1,""],pertinacity:[40,4,1,""],prefs:[40,4,1,""],propensity:[40,4,1,""],variable:[40,4,1,""]},"psyneulink.core.components.functions.function.Function_Base":{"function":[40,4,1,""],_assign_to_mdf_model:[40,2,1,""],_get_pytorch_fct_param_value:[40,2,1,""],_model_spec_parameter_blacklist:[40,3,1,""],_parse_arg_generic:[40,2,1,""],_validate_parameter_spec:[40,2,1,""],name:[40,4,1,""],owner:[40,4,1,""],prefs:[40,4,1,""],variable:[40,4,1,""]},"psyneulink.core.components.functions.function.RandomMatrix":{center:[40,4,1,""],range:[40,4,1,""]},"psyneulink.core.components.functions.learningfunctions":{BackPropagation:[59,1,1,""],BayesGLM:[59,1,1,""],ContrastiveHebbian:[59,1,1,""],Hebbian:[59,1,1,""],Kohonen:[59,1,1,""],LearningFunction:[59,1,1,""],Reinforcement:[59,1,1,""],TDLearning:[59,1,1,""]},"psyneulink.core.components.functions.learningfunctions.BackPropagation":{_function:[59,2,1,""],_validate_params:[59,2,1,""],_validate_variable:[59,2,1,""],activation_derivative_fct:[59,4,1,""],activation_input:[59,4,1,""],activation_output:[59,4,1,""],covariates:[59,4,1,""],error_matrix:[59,4,1,""],error_signal:[59,4,1,""],learning_rate:[59,4,1,""],loss_spec:[59,4,1,""],owner:[59,4,1,""],prefs:[59,4,1,""],variable:[59,4,1,""]},"psyneulink.core.components.functions.learningfunctions.BayesGLM":{Lambda_n:[59,4,1,""],Lambda_prior:[59,4,1,""],_function:[59,2,1,""],_handle_default_variable:[59,2,1,""],gamma_shape_0:[59,4,1,""],gamma_shape_n:[59,4,1,""],gamma_shape_prior:[59,4,1,""],gamma_size_0:[59,4,1,""],gamma_size_n:[59,4,1,""],gamma_size_prior:[59,4,1,""],initialize_priors:[59,2,1,""],mu_0:[59,4,1,""],mu_n:[59,4,1,""],mu_prior:[59,4,1,""],owner:[59,4,1,""],prefs:[59,4,1,""],random_state:[59,4,1,""],reset:[59,2,1,""],sample_weights:[59,2,1,""],sigma_0:[59,4,1,""],variable:[59,4,1,""],weights_sample:[59,4,1,""]},"psyneulink.core.components.functions.learningfunctions.ContrastiveHebbian":{"function":[59,4,1,""],_function:[59,2,1,""],_validate_params:[59,2,1,""],_validate_variable:[59,2,1,""],learning_rate:[59,4,1,""],owner:[59,4,1,""],prefs:[59,4,1,""],variable:[59,4,1,""]},"psyneulink.core.components.functions.learningfunctions.Hebbian":{"function":[59,4,1,""],_function:[59,2,1,""],_validate_params:[59,2,1,""],_validate_variable:[59,2,1,""],learning_rate:[59,4,1,""],owner:[59,4,1,""],prefs:[59,4,1,""],variable:[59,4,1,""]},"psyneulink.core.components.functions.learningfunctions.Kohonen":{"function":[59,4,1,""],_function:[59,2,1,""],_validate_params:[59,2,1,""],_validate_variable:[59,2,1,""],learning_rate:[59,4,1,""],owner:[59,4,1,""],prefs:[59,4,1,""],variable:[59,4,1,""]},"psyneulink.core.components.functions.learningfunctions.LearningFunction":{learning_rate:[59,4,1,""],variable:[59,4,1,""]},"psyneulink.core.components.functions.learningfunctions.Reinforcement":{"function":[59,4,1,""],_function:[59,2,1,""],_validate_params:[59,2,1,""],_validate_variable:[59,2,1,""],activation_input:[59,4,1,""],activation_output:[59,4,1,""],error_signal:[59,4,1,""],learning_rate:[59,4,1,""],owner:[59,4,1,""],prefs:[59,4,1,""],variable:[59,4,1,""]},"psyneulink.core.components.functions.learningfunctions.TDLearning":{_validate_variable:[59,2,1,""]},"psyneulink.core.components.functions.objectivefunctions":{Distance:[81,1,1,""],Energy:[81,1,1,""],Entropy:[81,1,1,""],ObjectiveFunction:[81,1,1,""],Stability:[81,1,1,""]},"psyneulink.core.components.functions.objectivefunctions.Distance":{_function:[81,2,1,""],_validate_params:[81,2,1,""],metric:[81,4,1,""],normalize:[81,4,1,""],owner:[81,4,1,""],params:[81,4,1,""],prefs:[81,4,1,""],variable:[81,4,1,""]},"psyneulink.core.components.functions.objectivefunctions.Energy":{matrix:[81,4,1,""],normalize:[81,4,1,""],owner:[81,4,1,""],params:[81,4,1,""],prefs:[81,4,1,""],size:[81,4,1,""],transfer_fct:[81,4,1,""],variable:[81,4,1,""]},"psyneulink.core.components.functions.objectivefunctions.Entropy":{input_shapes:[81,4,1,""],matrix:[81,4,1,""],normalize:[81,4,1,""],owner:[81,4,1,""],params:[81,4,1,""],prefs:[81,4,1,""],transfer_fct:[81,4,1,""],variable:[81,4,1,""]},"psyneulink.core.components.functions.objectivefunctions.Stability":{_function:[81,2,1,""],_instantiate_attributes_before_function:[81,2,1,""],_validate_params:[81,2,1,""],_validate_variable:[81,2,1,""],matrix:[81,4,1,""],metric:[81,4,1,""],normalize:[81,4,1,""],owner:[81,4,1,""],params:[81,4,1,""],prefs:[81,4,1,""],size:[81,4,1,""],transfer_fct:[81,4,1,""],variable:[81,4,1,""]},"psyneulink.core.components.functions.optimizationfunctions":{GaussianProcess:[85,1,1,""],GradientOptimization:[85,1,1,""],GridSearch:[85,1,1,""],OptimizationFunction:[85,1,1,""],SampleIterator:[85,1,1,""]},"psyneulink.core.components.functions.optimizationfunctions.GaussianProcess":{_function:[85,2,1,""],_gaussian_process_sample:[85,2,1,""],_gaussian_process_satisfied:[85,2,1,""],_validate_params:[85,2,1,""],direction:[85,4,1,""],iteration:[85,4,1,""],max_iterations:[85,4,1,""],objective_function:[85,4,1,""],save_samples:[85,4,1,""],save_values:[85,4,1,""],search_space:[85,4,1,""],variable:[85,4,1,""]},"psyneulink.core.components.functions.optimizationfunctions.GradientOptimization":{_function:[85,2,1,""],_validate_params:[85,2,1,""],annealing_function:[85,4,1,""],bounds:[85,4,1,""],convergence_criterion:[85,4,1,""],convergence_threshold:[85,4,1,""],direction:[85,4,1,""],gradient_function:[85,4,1,""],iteration:[85,4,1,""],max_iterations:[85,4,1,""],objective_function:[85,4,1,""],reset:[85,2,1,""],save_samples:[85,4,1,""],save_values:[85,4,1,""],search_space:[85,4,1,""],step_size:[85,4,1,""],variable:[85,4,1,""]},"psyneulink.core.components.functions.optimizationfunctions.GridSearch":{_function:[85,2,1,""],_validate_params:[85,2,1,""],direction:[85,4,1,""],grid:[85,4,1,""],iteration:[85,4,1,""],max_iterations:[85,4,1,""],num_iterations:[85,4,1,""],objec
...

See CI logs for the full diff.

It no longer needs to fit search for extreme values.

Signed-off-by: Jan Vesely <[email protected]>
Copy link

This PR causes the following changes to the html docs (ubuntu-latest-3.11):

diff -r docs-base/SelectionFunctions.html docs-head/SelectionFunctions.html
296c296
< <li><p><strong>mode</strong> (<em>DETERMINISITC</em><em>, </em><em>PROB</em><em>, </em><em>PROB_INDICATOR</em><em>,</em>) – </p></li>
---
> <li><p><strong>mode</strong> (<em>DETERMINISTiC</em><em>, </em><em>PROB</em><em>, </em><em>PROB_INDICATOR</em><em>,</em>) – </p></li>
368c368
< <dd class="field-odd"><p>DETERMINISITC, PROB, PROB_INDICATOR,</p>
---
> <dd class="field-odd"><p>DETERMINISTIC, PROB, PROB_INDICATOR,</p>
diff -r docs-base/searchindex.js docs-head/searchindex.js
1c1
< Search.setIndex({docnames:["AGT","AGTControlMechanism","AutoAssociativeLearningMechanism","AutoAssociativeProjection","AutodiffComposition","BasicsAndPrimer","BeukersNBackModel","BeukersNBackModel_NB","BotvinickConflictMonitoringModel","BustamanteStroopXORLVOCModel","Cohen_HustonModel","ComparatorMechanism","Compilation","Component","Components","Composition","CompositionFunctionApproximator","CompositionInterfaceMechanism","Compositions","Condition","Context","ContrastiveHebbianMechanism","ContributorsGuide","ControlMechanism","ControlMechanisms","ControlProjection","ControlProjections","ControlSignal","ConventionsAndDefinitions","Core","DDM","DefaultControlMechanism","Defaults","DistributionFunctions","EMComposition","EVC","EVCAuxiliary","EVCControlMechanism","EpisodicMemoryMechanism","Function","Functions","GatingMechanism","GatingMechanisms","GatingProjection","GatingProjections","GatingSignal","GilzenratModel","InputPort","IntegratorFunctions","IntegratorMechanism","IntegratorMechanisms","KWTAMechanism","Keywords","KohonenMechanism","LCAMechanism","LCControlMechanism","LCMechanism","LLVM","LeabraMechanism","LearningFunctions","LearningMechanism","LearningMechanisms","LearningProjection","LearningProjections","LearningSignal","Library","Log","MappingProjection","MaskedMappingProjection","Mechanism","Mechanisms","MemoryFunctions","Models","ModulatoryMechanism","ModulatoryMechanisms","ModulatoryProjection","ModulatoryProjections","ModulatorySignal","MontagueModel","NieuwenhuisModel","NonStatefulFunctions","ObjectiveFunctions","ObjectiveMechanism","ObjectiveMechanisms","OptimizationControlMechanism","OptimizationFunctions","OutputPort","PCTC_model","ParameterEstimationComposition","ParameterPort","Parameters","Pathway","PathwayProjection","PathwayProjections","Port","PredictionErrorMechanism","Preferences","ProcessingMechanism","ProcessingMechanisms","Projection","Projections","QuickReference","RecurrentTransferMechanism","RefactoredLearningGuide","Registry","RegressionCFA","Report","Scheduler","Scheduling","SelectionFunctions","Services","StatefulFunction","StatefulFunctions","Subystems","Time","TransferFunctions","TransferMechanism","TransferMechanisms","TransformFunctions","UserDefinedFunction","UserGuide","UserGuide_TBD","Visualization","globals","index","index_logo_with_text","mdf","nback_nb"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":4,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":3,"sphinx.domains.rst":2,"sphinx.domains.std":2,sphinx:56},filenames:["AGT.rst","AGTControlMechanism.rst","AutoAssociativeLearningMechanism.rst","AutoAssociativeProjection.rst","AutodiffComposition.rst","BasicsAndPrimer.rst","BeukersNBackModel.rst","BeukersNBackModel_NB.rst","BotvinickConflictMonitoringModel.rst","BustamanteStroopXORLVOCModel.rst","Cohen_HustonModel.rst","ComparatorMechanism.rst","Compilation.rst","Component.rst","Components.rst","Composition.rst","CompositionFunctionApproximator.rst","CompositionInterfaceMechanism.rst","Compositions.rst","Condition.rst","Context.rst","ContrastiveHebbianMechanism.rst","ContributorsGuide.rst","ControlMechanism.rst","ControlMechanisms.rst","ControlProjection.rst","ControlProjections.rst","ControlSignal.rst","ConventionsAndDefinitions.rst","Core.rst","DDM.rst","DefaultControlMechanism.rst","Defaults.rst","DistributionFunctions.rst","EMComposition.rst","EVC.rst","EVCAuxiliary.rst","EVCControlMechanism.rst","EpisodicMemoryMechanism.rst","Function.rst","Functions.rst","GatingMechanism.rst","GatingMechanisms.rst","GatingProjection.rst","GatingProjections.rst","GatingSignal.rst","GilzenratModel.rst","InputPort.rst","IntegratorFunctions.rst","IntegratorMechanism.rst","IntegratorMechanisms.rst","KWTAMechanism.rst","Keywords.rst","KohonenMechanism.rst","LCAMechanism.rst","LCControlMechanism.rst","LCMechanism.rst","LLVM.rst","LeabraMechanism.rst","LearningFunctions.rst","LearningMechanism.rst","LearningMechanisms.rst","LearningProjection.rst","LearningProjections.rst","LearningSignal.rst","Library.rst","Log.rst","MappingProjection.rst","MaskedMappingProjection.rst","Mechanism.rst","Mechanisms.rst","MemoryFunctions.rst","Models.rst","ModulatoryMechanism.rst","ModulatoryMechanisms.rst","ModulatoryProjection.rst","ModulatoryProjections.rst","ModulatorySignal.rst","MontagueModel.rst","NieuwenhuisModel.rst","NonStatefulFunctions.rst","ObjectiveFunctions.rst","ObjectiveMechanism.rst","ObjectiveMechanisms.rst","OptimizationControlMechanism.rst","OptimizationFunctions.rst","OutputPort.rst","PCTC_model.rst","ParameterEstimationComposition.rst","ParameterPort.rst","Parameters.rst","Pathway.rst","PathwayProjection.rst","PathwayProjections.rst","Port.rst","PredictionErrorMechanism.rst","Preferences.rst","ProcessingMechanism.rst","ProcessingMechanisms.rst","Projection.rst","Projections.rst","QuickReference.rst","RecurrentTransferMechanism.rst","RefactoredLearningGuide.rst","Registry.rst","RegressionCFA.rst","Report.rst","Scheduler.rst","Scheduling.rst","SelectionFunctions.rst","Services.rst","StatefulFunction.rst","StatefulFunctions.rst","Subystems.rst","Time.rst","TransferFunctions.rst","TransferMechanism.rst","TransferMechanisms.rst","TransformFunctions.rst","UserDefinedFunction.rst","UserGuide.rst","UserGuide_TBD.rst","Visualization.rst","globals.rst","index.rst","index_logo_with_text.rst","mdf.rst","nback_nb.ipynb"],objects:{"psyneulink.core.components":{component:[13,0,0,"-"]},"psyneulink.core.components.component":{Component:[13,1,1,""]},"psyneulink.core.components.component.Component":{"function":[13,4,1,""],_check_args:[13,2,1,""],_check_for_composition:[13,2,1,""],_deferred_init:[13,2,1,""],_dependent_components:[13,3,1,""],_get_allowed_arguments:[13,2,1,""],_get_param_value_from_tuple:[13,2,1,""],_handle_default_variable:[13,2,1,""],_handle_input_shapes:[13,2,1,""],_initialize_parameters:[13,2,1,""],_instantiate_defaults:[13,2,1,""],_instantiate_function:[13,2,1,""],_instantiate_parameter_classes:[13,2,1,""],_model_spec_class_name_is_generic:[13,4,1,""],_model_spec_generic_type_name:[13,4,1,""],_model_spec_parameter_blacklist:[13,3,1,""],_parameter_components:[13,3,1,""],_parse_arg_generic:[13,2,1,""],_parse_arg_variable:[13,2,1,""],_parse_function_variable:[13,2,1,""],_parse_input_shapes:[13,2,1,""],_receiver_ports:[13,3,1,""],_sender_ports:[13,3,1,""],_set_multiple_parameter_values:[13,2,1,""],_specified_variable_shape_flexibility:[13,4,1,""],_validate:[13,2,1,""],_validate_and_assign_runtime_params:[13,2,1,""],_validate_arguments:[13,2,1,""],_validate_function:[13,2,1,""],_validate_params:[13,2,1,""],_validate_variable:[13,2,1,""],all_dependent_parameters:[13,2,1,""],current_execution_time:[13,4,1,""],defaults:[13,4,1,""],execute:[13,2,1,""],execute_until_finished:[13,4,1,""],execution_count:[13,4,1,""],function_parameters:[13,3,1,""],get_afferents:[13,2,1,""],get_efferents:[13,2,1,""],initialization_status:[13,4,1,""],input_shapes:[13,4,1,""],is_finished:[13,2,1,""],log:[13,4,1,""],log_values:[13,2,1,""],loggable_items:[13,3,1,""],logged_items:[13,3,1,""],max_executions_before_finished:[13,4,1,""],most_recent_context:[13,3,1,""],name:[13,4,1,""],num_executions:[13,4,1,""],num_executions_before_finished:[13,4,1,""],parameters:[13,4,1,""],prefs:[13,4,1,""],reset:[13,2,1,""],reset_params:[13,2,1,""],reset_stateful_function_when:[13,4,1,""],set_delivery_conditions:[13,2,1,""],set_log_conditions:[13,2,1,""],stateful_parameters:[13,3,1,"id0"],value:[13,4,1,""],variable:[13,4,1,""]},"psyneulink.core.components.functions":{"function":[40,0,0,"-"],distributionfunctions:[33,0,0,"-"],learningfunctions:[59,0,0,"-"],objectivefunctions:[81,0,0,"-"],optimizationfunctions:[85,0,0,"-"],selectionfunctions:[109,0,0,"-"],transferfunctions:[115,0,0,"-"],transformfunctions:[118,0,0,"-"],userdefinedfunction:[119,0,0,"-"]},"psyneulink.core.components.functions.distributionfunctions":{DistributionFunction:[33,1,1,""],DriftDiffusionAnalytical:[33,1,1,""],ExponentialDist:[33,1,1,""],GammaDist:[33,1,1,""],NormalDist:[33,1,1,""],UniformDist:[33,1,1,""],UniformToNormalDist:[33,1,1,""],WaldDist:[33,1,1,""]},"psyneulink.core.components.functions.distributionfunctions.DriftDiffusionAnalytical":{_compute_conditional_rt_moments:[33,2,1,""],_function:[33,2,1,""],bias:[33,4,1,""],derivative:[33,2,1,""],drift_rate:[33,4,1,""],name:[33,4,1,""],noise:[33,4,1,""],non_decision_time:[33,4,1,""],owner:[33,4,1,""],prefs:[33,4,1,""],shenhav_et_al_compat_mode:[33,3,1,""],starting_value:[33,4,1,""],threshold:[33,4,1,""],variable:[33,4,1,""]},"psyneulink.core.components.functions.distributionfunctions.ExponentialDist":{beta:[33,4,1,""],name:[33,4,1,""],owner:[33,4,1,""],params:[33,4,1,""],prefs:[33,4,1,""],random_state:[33,4,1,""]},"psyneulink.core.components.functions.distributionfunctions.GammaDist":{dist_shape:[33,4,1,""],name:[33,4,1,""],owner:[33,4,1,""],params:[33,4,1,""],prefs:[33,4,1,""],random_state:[33,4,1,""],scale:[33,4,1,""]},"psyneulink.core.components.functions.distributionfunctions.NormalDist":{_validate_params:[33,2,1,""],mean:[33,4,1,""],name:[33,4,1,""],owner:[33,4,1,""],params:[33,4,1,""],prefs:[33,4,1,""],random_state:[33,4,1,""],standard_deviation:[33,4,1,""]},"psyneulink.core.components.functions.distributionfunctions.UniformDist":{high:[33,4,1,""],low:[33,4,1,""],name:[33,4,1,""],owner:[33,4,1,""],params:[33,4,1,""],prefs:[33,4,1,""],random_state:[33,4,1,""]},"psyneulink.core.components.functions.distributionfunctions.UniformToNormalDist":{mean:[33,4,1,""],name:[33,4,1,""],owner:[33,4,1,""],params:[33,4,1,""],prefs:[33,4,1,""],random_state:[33,4,1,""],standard_deviation:[33,4,1,""]},"psyneulink.core.components.functions.function":{ArgumentTherapy:[40,1,1,""],Function_Base:[40,1,1,""],RandomMatrix:[40,1,1,""]},"psyneulink.core.components.functions.function.ArgumentTherapy":{Manner:[40,1,1,""],_function:[40,2,1,""],_validate_params:[40,2,1,""],_validate_variable:[40,2,1,""],name:[40,4,1,""],owner:[40,4,1,""],pertinacity:[40,4,1,""],prefs:[40,4,1,""],propensity:[40,4,1,""],variable:[40,4,1,""]},"psyneulink.core.components.functions.function.Function_Base":{"function":[40,4,1,""],_assign_to_mdf_model:[40,2,1,""],_get_pytorch_fct_param_value:[40,2,1,""],_model_spec_parameter_blacklist:[40,3,1,""],_parse_arg_generic:[40,2,1,""],_validate_parameter_spec:[40,2,1,""],name:[40,4,1,""],owner:[40,4,1,""],prefs:[40,4,1,""],variable:[40,4,1,""]},"psyneulink.core.components.functions.function.RandomMatrix":{center:[40,4,1,""],range:[40,4,1,""]},"psyneulink.core.components.functions.learningfunctions":{BackPropagation:[59,1,1,""],BayesGLM:[59,1,1,""],ContrastiveHebbian:[59,1,1,""],Hebbian:[59,1,1,""],Kohonen:[59,1,1,""],LearningFunction:[59,1,1,""],Reinforcement:[59,1,1,""],TDLearning:[59,1,1,""]},"psyneulink.core.components.functions.learningfunctions.BackPropagation":{_function:[59,2,1,""],_validate_params:[59,2,1,""],_validate_variable:[59,2,1,""],activation_derivative_fct:[59,4,1,""],activation_input:[59,4,1,""],activation_output:[59,4,1,""],covariates:[59,4,1,""],error_matrix:[59,4,1,""],error_signal:[59,4,1,""],learning_rate:[59,4,1,""],loss_spec:[59,4,1,""],owner:[59,4,1,""],prefs:[59,4,1,""],variable:[59,4,1,""]},"psyneulink.core.components.functions.learningfunctions.BayesGLM":{Lambda_n:[59,4,1,""],Lambda_prior:[59,4,1,""],_function:[59,2,1,""],_handle_default_variable:[59,2,1,""],gamma_shape_0:[59,4,1,""],gamma_shape_n:[59,4,1,""],gamma_shape_prior:[59,4,1,""],gamma_size_0:[59,4,1,""],gamma_size_n:[59,4,1,""],gamma_size_prior:[59,4,1,""],initialize_priors:[59,2,1,""],mu_0:[59,4,1,""],mu_n:[59,4,1,""],mu_prior:[59,4,1,""],owner:[59,4,1,""],prefs:[59,4,1,""],random_state:[59,4,1,""],reset:[59,2,1,""],sample_weights:[59,2,1,""],sigma_0:[59,4,1,""],variable:[59,4,1,""],weights_sample:[59,4,1,""]},"psyneulink.core.components.functions.learningfunctions.ContrastiveHebbian":{"function":[59,4,1,""],_function:[59,2,1,""],_validate_params:[59,2,1,""],_validate_variable:[59,2,1,""],learning_rate:[59,4,1,""],owner:[59,4,1,""],prefs:[59,4,1,""],variable:[59,4,1,""]},"psyneulink.core.components.functions.learningfunctions.Hebbian":{"function":[59,4,1,""],_function:[59,2,1,""],_validate_params:[59,2,1,""],_validate_variable:[59,2,1,""],learning_rate:[59,4,1,""],owner:[59,4,1,""],prefs:[59,4,1,""],variable:[59,4,1,""]},"psyneulink.core.components.functions.learningfunctions.Kohonen":{"function":[59,4,1,""],_function:[59,2,1,""],_validate_params:[59,2,1,""],_validate_variable:[59,2,1,""],learning_rate:[59,4,1,""],owner:[59,4,1,""],prefs:[59,4,1,""],variable:[59,4,1,""]},"psyneulink.core.components.functions.learningfunctions.LearningFunction":{learning_rate:[59,4,1,""],variable:[59,4,1,""]},"psyneulink.core.components.functions.learningfunctions.Reinforcement":{"function":[59,4,1,""],_function:[59,2,1,""],_validate_params:[59,2,1,""],_validate_variable:[59,2,1,""],activation_input:[59,4,1,""],activation_output:[59,4,1,""],error_signal:[59,4,1,""],learning_rate:[59,4,1,""],owner:[59,4,1,""],prefs:[59,4,1,""],variable:[59,4,1,""]},"psyneulink.core.components.functions.learningfunctions.TDLearning":{_validate_variable:[59,2,1,""]},"psyneulink.core.components.functions.objectivefunctions":{Distance:[81,1,1,""],Energy:[81,1,1,""],Entropy:[81,1,1,""],ObjectiveFunction:[81,1,1,""],Stability:[81,1,1,""]},"psyneulink.core.components.functions.objectivefunctions.Distance":{_function:[81,2,1,""],_validate_params:[81,2,1,""],metric:[81,4,1,""],normalize:[81,4,1,""],owner:[81,4,1,""],params:[81,4,1,""],prefs:[81,4,1,""],variable:[81,4,1,""]},"psyneulink.core.components.functions.objectivefunctions.Energy":{matrix:[81,4,1,""],normalize:[81,4,1,""],owner:[81,4,1,""],params:[81,4,1,""],prefs:[81,4,1,""],size:[81,4,1,""],transfer_fct:[81,4,1,""],variable:[81,4,1,""]},"psyneulink.core.components.functions.objectivefunctions.Entropy":{input_shapes:[81,4,1,""],matrix:[81,4,1,""],normalize:[81,4,1,""],owner:[81,4,1,""],params:[81,4,1,""],prefs:[81,4,1,""],transfer_fct:[81,4,1,""],variable:[81,4,1,""]},"psyneulink.core.components.functions.objectivefunctions.Stability":{_function:[81,2,1,""],_instantiate_attributes_before_function:[81,2,1,""],_validate_params:[81,2,1,""],_validate_variable:[81,2,1,""],matrix:[81,4,1,""],metric:[81,4,1,""],normalize:[81,4,1,""],owner:[81,4,1,""],params:[81,4,1,""],prefs:[81,4,1,""],size:[81,4,1,""],transfer_fct:[81,4,1,""],variable:[81,4,1,""]},"psyneulink.core.components.functions.optimizationfunctions":{GaussianProcess:[85,1,1,""],GradientOptimization:[85,1,1,""],GridSearch:[85,1,1,""],OptimizationFunction:[85,1,1,""],SampleIterator:[85,1,1,""]},"psyneulink.core.components.functions.optimizationfunctions.GaussianProcess":{_function:[85,2,1,""],_gaussian_process_sample:[85,2,1,""],_gaussian_process_satisfied:[85,2,1,""],_validate_params:[85,2,1,""],direction:[85,4,1,""],iteration:[85,4,1,""],max_iterations:[85,4,1,""],objective_function:[85,4,1,""],save_samples:[85,4,1,""],save_values:[85,4,1,""],search_space:[85,4,1,""],variable:[85,4,1,""]},"psyneulink.core.components.functions.optimizationfunctions.GradientOptimization":{_function:[85,2,1,""],_validate_params:[85,2,1,""],annealing_function:[85,4,1,""],bounds:[85,4,1,""],convergence_criterion:[85,4,1,""],convergence_threshold:[85,4,1,""],direction:[85,4,1,""],gradient_function:[85,4,1,""],iteration:[85,4,1,""],max_iterations:[85,4,1,""],objective_function:[85,4,1,""],reset:[85,2,1,""],save_samples:[85,4,1,""],save_values:[85,4,1,""],search_space:[85,4,1,""],step_size:[85,4,1,""],variable:[85,4,1,""]},"psyneulink.core.components.functions.optimizationfunctions.GridSearch":{_function:[85,2,1,""],_validate_params:[85,2,1,""],direction:[85,4,1,""],grid:[85,4,1,""],iteration:[85,4,1,""],max_iterations:[85,4,1,""],num_iterations:[85,4,1,""],objec
...

See CI logs for the full diff.

Copy link

This PR causes the following changes to the html docs (ubuntu-latest-3.11):

diff -r docs-base/SelectionFunctions.html docs-head/SelectionFunctions.html
296c296
< <li><p><strong>mode</strong> (<em>DETERMINISITC</em><em>, </em><em>PROB</em><em>, </em><em>PROB_INDICATOR</em><em>,</em>) – </p></li>
---
> <li><p><strong>mode</strong> (<em>DETERMINISTiC</em><em>, </em><em>PROB</em><em>, </em><em>PROB_INDICATOR</em><em>,</em>) – </p></li>
368c368
< <dd class="field-odd"><p>DETERMINISITC, PROB, PROB_INDICATOR,</p>
---
> <dd class="field-odd"><p>DETERMINISTIC, PROB, PROB_INDICATOR,</p>
diff -r docs-base/searchindex.js docs-head/searchindex.js
1c1
< Search.setIndex({docnames:["AGT","AGTControlMechanism","AutoAssociativeLearningMechanism","AutoAssociativeProjection","AutodiffComposition","BasicsAndPrimer","BeukersNBackModel","BeukersNBackModel_NB","BotvinickConflictMonitoringModel","BustamanteStroopXORLVOCModel","Cohen_HustonModel","ComparatorMechanism","Compilation","Component","Components","Composition","CompositionFunctionApproximator","CompositionInterfaceMechanism","Compositions","Condition","Context","ContrastiveHebbianMechanism","ContributorsGuide","ControlMechanism","ControlMechanisms","ControlProjection","ControlProjections","ControlSignal","ConventionsAndDefinitions","Core","DDM","DefaultControlMechanism","Defaults","DistributionFunctions","EMComposition","EVC","EVCAuxiliary","EVCControlMechanism","EpisodicMemoryMechanism","Function","Functions","GatingMechanism","GatingMechanisms","GatingProjection","GatingProjections","GatingSignal","GilzenratModel","InputPort","IntegratorFunctions","IntegratorMechanism","IntegratorMechanisms","KWTAMechanism","Keywords","KohonenMechanism","LCAMechanism","LCControlMechanism","LCMechanism","LLVM","LeabraMechanism","LearningFunctions","LearningMechanism","LearningMechanisms","LearningProjection","LearningProjections","LearningSignal","Library","Log","MappingProjection","MaskedMappingProjection","Mechanism","Mechanisms","MemoryFunctions","Models","ModulatoryMechanism","ModulatoryMechanisms","ModulatoryProjection","ModulatoryProjections","ModulatorySignal","MontagueModel","NieuwenhuisModel","NonStatefulFunctions","ObjectiveFunctions","ObjectiveMechanism","ObjectiveMechanisms","OptimizationControlMechanism","OptimizationFunctions","OutputPort","PCTC_model","ParameterEstimationComposition","ParameterPort","Parameters","Pathway","PathwayProjection","PathwayProjections","Port","PredictionErrorMechanism","Preferences","ProcessingMechanism","ProcessingMechanisms","Projection","Projections","QuickReference","RecurrentTransferMechanism","RefactoredLearningGuide","Registry","RegressionCFA","Report","Scheduler","Scheduling","SelectionFunctions","Services","StatefulFunction","StatefulFunctions","Subystems","Time","TransferFunctions","TransferMechanism","TransferMechanisms","TransformFunctions","UserDefinedFunction","UserGuide","UserGuide_TBD","Visualization","globals","index","index_logo_with_text","mdf","nback_nb"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":4,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":3,"sphinx.domains.rst":2,"sphinx.domains.std":2,sphinx:56},filenames:["AGT.rst","AGTControlMechanism.rst","AutoAssociativeLearningMechanism.rst","AutoAssociativeProjection.rst","AutodiffComposition.rst","BasicsAndPrimer.rst","BeukersNBackModel.rst","BeukersNBackModel_NB.rst","BotvinickConflictMonitoringModel.rst","BustamanteStroopXORLVOCModel.rst","Cohen_HustonModel.rst","ComparatorMechanism.rst","Compilation.rst","Component.rst","Components.rst","Composition.rst","CompositionFunctionApproximator.rst","CompositionInterfaceMechanism.rst","Compositions.rst","Condition.rst","Context.rst","ContrastiveHebbianMechanism.rst","ContributorsGuide.rst","ControlMechanism.rst","ControlMechanisms.rst","ControlProjection.rst","ControlProjections.rst","ControlSignal.rst","ConventionsAndDefinitions.rst","Core.rst","DDM.rst","DefaultControlMechanism.rst","Defaults.rst","DistributionFunctions.rst","EMComposition.rst","EVC.rst","EVCAuxiliary.rst","EVCControlMechanism.rst","EpisodicMemoryMechanism.rst","Function.rst","Functions.rst","GatingMechanism.rst","GatingMechanisms.rst","GatingProjection.rst","GatingProjections.rst","GatingSignal.rst","GilzenratModel.rst","InputPort.rst","IntegratorFunctions.rst","IntegratorMechanism.rst","IntegratorMechanisms.rst","KWTAMechanism.rst","Keywords.rst","KohonenMechanism.rst","LCAMechanism.rst","LCControlMechanism.rst","LCMechanism.rst","LLVM.rst","LeabraMechanism.rst","LearningFunctions.rst","LearningMechanism.rst","LearningMechanisms.rst","LearningProjection.rst","LearningProjections.rst","LearningSignal.rst","Library.rst","Log.rst","MappingProjection.rst","MaskedMappingProjection.rst","Mechanism.rst","Mechanisms.rst","MemoryFunctions.rst","Models.rst","ModulatoryMechanism.rst","ModulatoryMechanisms.rst","ModulatoryProjection.rst","ModulatoryProjections.rst","ModulatorySignal.rst","MontagueModel.rst","NieuwenhuisModel.rst","NonStatefulFunctions.rst","ObjectiveFunctions.rst","ObjectiveMechanism.rst","ObjectiveMechanisms.rst","OptimizationControlMechanism.rst","OptimizationFunctions.rst","OutputPort.rst","PCTC_model.rst","ParameterEstimationComposition.rst","ParameterPort.rst","Parameters.rst","Pathway.rst","PathwayProjection.rst","PathwayProjections.rst","Port.rst","PredictionErrorMechanism.rst","Preferences.rst","ProcessingMechanism.rst","ProcessingMechanisms.rst","Projection.rst","Projections.rst","QuickReference.rst","RecurrentTransferMechanism.rst","RefactoredLearningGuide.rst","Registry.rst","RegressionCFA.rst","Report.rst","Scheduler.rst","Scheduling.rst","SelectionFunctions.rst","Services.rst","StatefulFunction.rst","StatefulFunctions.rst","Subystems.rst","Time.rst","TransferFunctions.rst","TransferMechanism.rst","TransferMechanisms.rst","TransformFunctions.rst","UserDefinedFunction.rst","UserGuide.rst","UserGuide_TBD.rst","Visualization.rst","globals.rst","index.rst","index_logo_with_text.rst","mdf.rst","nback_nb.ipynb"],objects:{"psyneulink.core.components":{component:[13,0,0,"-"]},"psyneulink.core.components.component":{Component:[13,1,1,""]},"psyneulink.core.components.component.Component":{"function":[13,4,1,""],_check_args:[13,2,1,""],_check_for_composition:[13,2,1,""],_deferred_init:[13,2,1,""],_dependent_components:[13,3,1,""],_get_allowed_arguments:[13,2,1,""],_get_param_value_from_tuple:[13,2,1,""],_handle_default_variable:[13,2,1,""],_handle_input_shapes:[13,2,1,""],_initialize_parameters:[13,2,1,""],_instantiate_defaults:[13,2,1,""],_instantiate_function:[13,2,1,""],_instantiate_parameter_classes:[13,2,1,""],_model_spec_class_name_is_generic:[13,4,1,""],_model_spec_generic_type_name:[13,4,1,""],_model_spec_parameter_blacklist:[13,3,1,""],_parameter_components:[13,3,1,""],_parse_arg_generic:[13,2,1,""],_parse_arg_variable:[13,2,1,""],_parse_function_variable:[13,2,1,""],_parse_input_shapes:[13,2,1,""],_receiver_ports:[13,3,1,""],_sender_ports:[13,3,1,""],_set_multiple_parameter_values:[13,2,1,""],_specified_variable_shape_flexibility:[13,4,1,""],_validate:[13,2,1,""],_validate_and_assign_runtime_params:[13,2,1,""],_validate_arguments:[13,2,1,""],_validate_function:[13,2,1,""],_validate_params:[13,2,1,""],_validate_variable:[13,2,1,""],all_dependent_parameters:[13,2,1,""],current_execution_time:[13,4,1,""],defaults:[13,4,1,""],execute:[13,2,1,""],execute_until_finished:[13,4,1,""],execution_count:[13,4,1,""],function_parameters:[13,3,1,""],get_afferents:[13,2,1,""],get_efferents:[13,2,1,""],initialization_status:[13,4,1,""],input_shapes:[13,4,1,""],is_finished:[13,2,1,""],log:[13,4,1,""],log_values:[13,2,1,""],loggable_items:[13,3,1,""],logged_items:[13,3,1,""],max_executions_before_finished:[13,4,1,""],most_recent_context:[13,3,1,""],name:[13,4,1,""],num_executions:[13,4,1,""],num_executions_before_finished:[13,4,1,""],parameters:[13,4,1,""],prefs:[13,4,1,""],reset:[13,2,1,""],reset_params:[13,2,1,""],reset_stateful_function_when:[13,4,1,""],set_delivery_conditions:[13,2,1,""],set_log_conditions:[13,2,1,""],stateful_parameters:[13,3,1,"id0"],value:[13,4,1,""],variable:[13,4,1,""]},"psyneulink.core.components.functions":{"function":[40,0,0,"-"],distributionfunctions:[33,0,0,"-"],learningfunctions:[59,0,0,"-"],objectivefunctions:[81,0,0,"-"],optimizationfunctions:[85,0,0,"-"],selectionfunctions:[109,0,0,"-"],transferfunctions:[115,0,0,"-"],transformfunctions:[118,0,0,"-"],userdefinedfunction:[119,0,0,"-"]},"psyneulink.core.components.functions.distributionfunctions":{DistributionFunction:[33,1,1,""],DriftDiffusionAnalytical:[33,1,1,""],ExponentialDist:[33,1,1,""],GammaDist:[33,1,1,""],NormalDist:[33,1,1,""],UniformDist:[33,1,1,""],UniformToNormalDist:[33,1,1,""],WaldDist:[33,1,1,""]},"psyneulink.core.components.functions.distributionfunctions.DriftDiffusionAnalytical":{_compute_conditional_rt_moments:[33,2,1,""],_function:[33,2,1,""],bias:[33,4,1,""],derivative:[33,2,1,""],drift_rate:[33,4,1,""],name:[33,4,1,""],noise:[33,4,1,""],non_decision_time:[33,4,1,""],owner:[33,4,1,""],prefs:[33,4,1,""],shenhav_et_al_compat_mode:[33,3,1,""],starting_value:[33,4,1,""],threshold:[33,4,1,""],variable:[33,4,1,""]},"psyneulink.core.components.functions.distributionfunctions.ExponentialDist":{beta:[33,4,1,""],name:[33,4,1,""],owner:[33,4,1,""],params:[33,4,1,""],prefs:[33,4,1,""],random_state:[33,4,1,""]},"psyneulink.core.components.functions.distributionfunctions.GammaDist":{dist_shape:[33,4,1,""],name:[33,4,1,""],owner:[33,4,1,""],params:[33,4,1,""],prefs:[33,4,1,""],random_state:[33,4,1,""],scale:[33,4,1,""]},"psyneulink.core.components.functions.distributionfunctions.NormalDist":{_validate_params:[33,2,1,""],mean:[33,4,1,""],name:[33,4,1,""],owner:[33,4,1,""],params:[33,4,1,""],prefs:[33,4,1,""],random_state:[33,4,1,""],standard_deviation:[33,4,1,""]},"psyneulink.core.components.functions.distributionfunctions.UniformDist":{high:[33,4,1,""],low:[33,4,1,""],name:[33,4,1,""],owner:[33,4,1,""],params:[33,4,1,""],prefs:[33,4,1,""],random_state:[33,4,1,""]},"psyneulink.core.components.functions.distributionfunctions.UniformToNormalDist":{mean:[33,4,1,""],name:[33,4,1,""],owner:[33,4,1,""],params:[33,4,1,""],prefs:[33,4,1,""],random_state:[33,4,1,""],standard_deviation:[33,4,1,""]},"psyneulink.core.components.functions.function":{ArgumentTherapy:[40,1,1,""],Function_Base:[40,1,1,""],RandomMatrix:[40,1,1,""]},"psyneulink.core.components.functions.function.ArgumentTherapy":{Manner:[40,1,1,""],_function:[40,2,1,""],_validate_params:[40,2,1,""],_validate_variable:[40,2,1,""],name:[40,4,1,""],owner:[40,4,1,""],pertinacity:[40,4,1,""],prefs:[40,4,1,""],propensity:[40,4,1,""],variable:[40,4,1,""]},"psyneulink.core.components.functions.function.Function_Base":{"function":[40,4,1,""],_assign_to_mdf_model:[40,2,1,""],_get_pytorch_fct_param_value:[40,2,1,""],_model_spec_parameter_blacklist:[40,3,1,""],_parse_arg_generic:[40,2,1,""],_validate_parameter_spec:[40,2,1,""],name:[40,4,1,""],owner:[40,4,1,""],prefs:[40,4,1,""],variable:[40,4,1,""]},"psyneulink.core.components.functions.function.RandomMatrix":{center:[40,4,1,""],range:[40,4,1,""]},"psyneulink.core.components.functions.learningfunctions":{BackPropagation:[59,1,1,""],BayesGLM:[59,1,1,""],ContrastiveHebbian:[59,1,1,""],Hebbian:[59,1,1,""],Kohonen:[59,1,1,""],LearningFunction:[59,1,1,""],Reinforcement:[59,1,1,""],TDLearning:[59,1,1,""]},"psyneulink.core.components.functions.learningfunctions.BackPropagation":{_function:[59,2,1,""],_validate_params:[59,2,1,""],_validate_variable:[59,2,1,""],activation_derivative_fct:[59,4,1,""],activation_input:[59,4,1,""],activation_output:[59,4,1,""],covariates:[59,4,1,""],error_matrix:[59,4,1,""],error_signal:[59,4,1,""],learning_rate:[59,4,1,""],loss_spec:[59,4,1,""],owner:[59,4,1,""],prefs:[59,4,1,""],variable:[59,4,1,""]},"psyneulink.core.components.functions.learningfunctions.BayesGLM":{Lambda_n:[59,4,1,""],Lambda_prior:[59,4,1,""],_function:[59,2,1,""],_handle_default_variable:[59,2,1,""],gamma_shape_0:[59,4,1,""],gamma_shape_n:[59,4,1,""],gamma_shape_prior:[59,4,1,""],gamma_size_0:[59,4,1,""],gamma_size_n:[59,4,1,""],gamma_size_prior:[59,4,1,""],initialize_priors:[59,2,1,""],mu_0:[59,4,1,""],mu_n:[59,4,1,""],mu_prior:[59,4,1,""],owner:[59,4,1,""],prefs:[59,4,1,""],random_state:[59,4,1,""],reset:[59,2,1,""],sample_weights:[59,2,1,""],sigma_0:[59,4,1,""],variable:[59,4,1,""],weights_sample:[59,4,1,""]},"psyneulink.core.components.functions.learningfunctions.ContrastiveHebbian":{"function":[59,4,1,""],_function:[59,2,1,""],_validate_params:[59,2,1,""],_validate_variable:[59,2,1,""],learning_rate:[59,4,1,""],owner:[59,4,1,""],prefs:[59,4,1,""],variable:[59,4,1,""]},"psyneulink.core.components.functions.learningfunctions.Hebbian":{"function":[59,4,1,""],_function:[59,2,1,""],_validate_params:[59,2,1,""],_validate_variable:[59,2,1,""],learning_rate:[59,4,1,""],owner:[59,4,1,""],prefs:[59,4,1,""],variable:[59,4,1,""]},"psyneulink.core.components.functions.learningfunctions.Kohonen":{"function":[59,4,1,""],_function:[59,2,1,""],_validate_params:[59,2,1,""],_validate_variable:[59,2,1,""],learning_rate:[59,4,1,""],owner:[59,4,1,""],prefs:[59,4,1,""],variable:[59,4,1,""]},"psyneulink.core.components.functions.learningfunctions.LearningFunction":{learning_rate:[59,4,1,""],variable:[59,4,1,""]},"psyneulink.core.components.functions.learningfunctions.Reinforcement":{"function":[59,4,1,""],_function:[59,2,1,""],_validate_params:[59,2,1,""],_validate_variable:[59,2,1,""],activation_input:[59,4,1,""],activation_output:[59,4,1,""],error_signal:[59,4,1,""],learning_rate:[59,4,1,""],owner:[59,4,1,""],prefs:[59,4,1,""],variable:[59,4,1,""]},"psyneulink.core.components.functions.learningfunctions.TDLearning":{_validate_variable:[59,2,1,""]},"psyneulink.core.components.functions.objectivefunctions":{Distance:[81,1,1,""],Energy:[81,1,1,""],Entropy:[81,1,1,""],ObjectiveFunction:[81,1,1,""],Stability:[81,1,1,""]},"psyneulink.core.components.functions.objectivefunctions.Distance":{_function:[81,2,1,""],_validate_params:[81,2,1,""],metric:[81,4,1,""],normalize:[81,4,1,""],owner:[81,4,1,""],params:[81,4,1,""],prefs:[81,4,1,""],variable:[81,4,1,""]},"psyneulink.core.components.functions.objectivefunctions.Energy":{matrix:[81,4,1,""],normalize:[81,4,1,""],owner:[81,4,1,""],params:[81,4,1,""],prefs:[81,4,1,""],size:[81,4,1,""],transfer_fct:[81,4,1,""],variable:[81,4,1,""]},"psyneulink.core.components.functions.objectivefunctions.Entropy":{input_shapes:[81,4,1,""],matrix:[81,4,1,""],normalize:[81,4,1,""],owner:[81,4,1,""],params:[81,4,1,""],prefs:[81,4,1,""],transfer_fct:[81,4,1,""],variable:[81,4,1,""]},"psyneulink.core.components.functions.objectivefunctions.Stability":{_function:[81,2,1,""],_instantiate_attributes_before_function:[81,2,1,""],_validate_params:[81,2,1,""],_validate_variable:[81,2,1,""],matrix:[81,4,1,""],metric:[81,4,1,""],normalize:[81,4,1,""],owner:[81,4,1,""],params:[81,4,1,""],prefs:[81,4,1,""],size:[81,4,1,""],transfer_fct:[81,4,1,""],variable:[81,4,1,""]},"psyneulink.core.components.functions.optimizationfunctions":{GaussianProcess:[85,1,1,""],GradientOptimization:[85,1,1,""],GridSearch:[85,1,1,""],OptimizationFunction:[85,1,1,""],SampleIterator:[85,1,1,""]},"psyneulink.core.components.functions.optimizationfunctions.GaussianProcess":{_function:[85,2,1,""],_gaussian_process_sample:[85,2,1,""],_gaussian_process_satisfied:[85,2,1,""],_validate_params:[85,2,1,""],direction:[85,4,1,""],iteration:[85,4,1,""],max_iterations:[85,4,1,""],objective_function:[85,4,1,""],save_samples:[85,4,1,""],save_values:[85,4,1,""],search_space:[85,4,1,""],variable:[85,4,1,""]},"psyneulink.core.components.functions.optimizationfunctions.GradientOptimization":{_function:[85,2,1,""],_validate_params:[85,2,1,""],annealing_function:[85,4,1,""],bounds:[85,4,1,""],convergence_criterion:[85,4,1,""],convergence_threshold:[85,4,1,""],direction:[85,4,1,""],gradient_function:[85,4,1,""],iteration:[85,4,1,""],max_iterations:[85,4,1,""],objective_function:[85,4,1,""],reset:[85,2,1,""],save_samples:[85,4,1,""],save_values:[85,4,1,""],search_space:[85,4,1,""],step_size:[85,4,1,""],variable:[85,4,1,""]},"psyneulink.core.components.functions.optimizationfunctions.GridSearch":{_function:[85,2,1,""],_validate_params:[85,2,1,""],direction:[85,4,1,""],grid:[85,4,1,""],iteration:[85,4,1,""],max_iterations:[85,4,1,""],num_iterations:[85,4,1,""],objec
...

See CI logs for the full diff.

@jvesely jvesely merged commit c0f73e2 into PrincetonUniversity:devel Nov 21, 2024
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler Runtime Compiler
Projects
Development

Successfully merging this pull request may close these issues.

1 participant