MCPcopy Create free account

hub / github.com/NewT123-WM/tnlearn / functions

Functions330 in github.com/NewT123-WM/tnlearn

↓ 1 callersMethod_write_json
(self, programs: code_manipulation.Function)
tnlearn/drsr/profile.py:108
↓ 1 callersMethod_write_tensorboard
(self)
tnlearn/drsr/profile.py:72
↓ 1 callersMethod_write_topk_json
(self)
tnlearn/drsr/profile.py:116
↓ 1 callersMethodbuild_network
Build final classification layer if needed
tnlearn/poly_regressor.py:86
↓ 1 callersMethodcalculate_auc
r"""Calculate the Area Under the Receiver Operating Characteristic Curve (ROC AUC)
tnlearn/base.py:83
↓ 1 callersMethodcalculate_f1_score
r"""Calculate the F1 score, a weighted average of precision and recall
tnlearn/base.py:87
↓ 1 callersMethodcalculate_precision
r"""Calculate the precision, the ability of the classifier not to label a sample as positive if it is negative
tnlearn/base.py:95
↓ 1 callersMethodcalculate_recall
r"""Calculate the recall, the ability of the classifier to find all the positive samples
tnlearn/base.py:91
↓ 1 callersMethodclassification_savefigure
r"""Method to save the training process figure. Args: loss: Training loss. accuracy: Training accuracy. p
tnlearn/base.py:39
↓ 1 callersFunctioncompare_tensors
Recursively compare two outputs, supporting nested tuples/lists.
tests/test_tntransformer.py:13
↓ 1 callersFunctioncompare_tensors
Recursively compare two outputs, supporting nested tuples/lists.
tests/test_tnrnn.py:10
↓ 1 callersMethodcompute_fitness
r"""Method to compute fitness based on the function, predictions, and labels. Args: func: Symbolic expression. pred:
tnlearn/regressor.py:259
↓ 1 callersMethodcompute_term_cp
(self, x, factors, order)
tnlearn/poly_regressor.py:90
↓ 1 callersMethodcompute_term_tucker
(self,x, core, factors, order)
tnlearn/poly_regressor.py:104
↓ 1 callersMethoddo_mutate
r"""Method to perform mutation on a selected tree structure. Args: selected: The selected offspring. Returns:
tnlearn/regressor.py:175
↓ 1 callersMethoddo_xover
r"""Method to perform crossover between two selected tree structures. Args: selected1: The selected tree structures 1.
tnlearn/regressor.py:190
↓ 1 callersMethoddraw_samples
(self, prompt: str, config: config_lib.Config, best_score: float = None, progress: float = 0.0, extra_prompt:
tnlearn/drsr/sampler.py:34
↓ 1 callersMethodfind_function_index
Return the index of input function name.
tnlearn/drsr/code_manipulation.py:100
↓ 1 callersMethodfrom_config
基于 'provider/model' 创建具体客户端。 必填:config['model'](形如 'provider/model')。 选填:config['api_key']、config['base_url']。
tnlearn/drsr/llm.py:298
↓ 1 callersMethodget_dynamic_threshold
(self)
tnlearn/poly_regressor.py:212
↓ 1 callersMethodget_neuron
Return the best discovered neuron formula.
tnlearn/rl_regressor.py:356
↓ 1 callersMethodget_offspring
r"""Method to generate offspring based on the given population and fitness. Args: popula: The given population. ftns:
tnlearn/regressor.py:225
↓ 1 callersMethodinitialize_factor_u
Initialize factor matrices for CP/Tucker decomposition
tnlearn/poly_regressor.py:71
↓ 1 callersMethodload_electricity
(self, test_size=0.2, seed=100)
benchmark/classification/dataset.py:45
↓ 1 callersMethodload_eye
(self, test_size=0.2, seed=100)
benchmark/classification/dataset.py:24
↓ 1 callersMethodload_housing
(self, test_size=0.2, seed=100)
benchmark/regression/dataset.py:43
↓ 1 callersMethodload_noise
(self, test_size=0.2, seed=100)
benchmark/regression/dataset.py:33
↓ 1 callersMethodload_oranges
(self, test_size=0.2, seed=100)
benchmark/classification/dataset.py:34
↓ 1 callersMethodload_space
(self, test_size=0.2, seed=100)
benchmark/regression/dataset.py:23
↓ 1 callersFunctionparse_provider_model
解析模型字符串为 (provider, model)。 规则:第一个 '/' 之前为提供商(大小写不敏感),之后的全部为模型名(大小写敏感,允许包含 '/'). 示例: - "deepseek/deepseek-chat" -> ("deepseek", "dee
tnlearn/drsr/llm.py:280
↓ 1 callersMethodplot_progress_classification
r"""Method to update the progress plot during training. Args: loss: Training loss. accuracy: Training accuracy.
tnlearn/base.py:29
↓ 1 callersMethodplot_progress_regression
r"""Method to update the progress plot during training. Args: loss: Training loss.
tnlearn/base1.py:29
↓ 1 callersMethodprepare_data
r"""Prepares the input data and splits it into training and validation sets. Args: X (numpy ndarray): Training data.
tnlearn/mlpclassifier.py:170
↓ 1 callersMethodprepare_data
r"""Prepares the input data and splits it into training and validation sets. Args: X (numpy ndarray): Training data.
tnlearn/mlpregressor.py:170
↓ 1 callersFunctionrandom_seed
r"""Set the random seed for reproducibility of experiments. Args: seed: Random seed.
tnlearn/poly_regressor.py:11
↓ 1 callersMethodregister_function
(self, programs: code_manipulation.Function)
tnlearn/drsr/profile.py:207
↓ 1 callersMethodregression_savefigure
r"""Method to save the training process figure. Args: loss: Training loss. path: Path to save the figure.
tnlearn/base1.py:38
↓ 1 callersMethodrender_prog
r"""Method to render a program based on a given tree structure. Recursively converts the tree into a string expression. Args:
tnlearn/regressor.py:80
↓ 1 callersMethodreset_islands
(self)
tnlearn/drsr/buffer.py:236
↓ 1 callersMethodreset_parameters
Kaiming 初始化权重,均匀初始化偏置。
tnlearn/neurons.py:114
↓ 1 callersMethodreset_parameters
(self)
tnlearn/TN_base.py:24
↓ 1 callersMethodreset_parameters
(self)
tnlearn/modules/TNconv.py:114
↓ 1 callersMethodreset_parameters
(self)
tnlearn/modules/TNconv.py:338
↓ 1 callersMethodreset_parameters
r"""Initialize weights and bias using Kaiming uniform initialization.
tnlearn/modules/TNlinear.py:87
↓ 1 callersMethodreset_parameters
Parameter initialisation (handled internally by TNLinear).
tnlearn/modules/TNrnn.py:369
↓ 1 callersMethodreturn_program
(self)
tnlearn/drsr/code_manipulation.py:170
↓ 1 callersMethodrun
( self, program: str, function_to_run: str, function_to_evolve: str, i
tnlearn/drsr/evaluator.py:33
↓ 1 callersMethodrun
(self, program: str, function_to_run: str, function_to_evolve: str, inputs: Any, test_input: str,
tnlearn/drsr/evaluator.py:56
↓ 1 callersMethodsample
(self, **kwargs)
tnlearn/drsr/sampler.py:131
↓ 1 callersMethodsample_program
(self)
tnlearn/drsr/buffer.py:78
↓ 1 callersMethodselect_device
r"""Selects the training device based on the 'gpu' parameter. Args: gpu: GPU ID.
tnlearn/mlpclassifier.py:120
↓ 1 callersMethodselect_device
r"""Selects the training device based on the 'gpu' parameter. Args: gpu: GPU ID.
tnlearn/mlpregressor.py:120
↓ 1 callersFunctionsum_output
(out)
tests/test_tntransformer.py:45
↓ 1 callersFunctionsum_output
(out)
tests/test_tnrnn.py:51
↓ 1 callersFunctiontc_densenet121
(num_class)
benchmark/image_benchmark_polyregressor/TC_densenet.py:121
↓ 1 callersFunctiontc_googlenet
(num_class)
benchmark/image_benchmark_polyregressor/TC_Googlenet.py:141
↓ 1 callersFunctiontc_resnet101
return a ResNet 101 object
benchmark/image_benchmark_polyregressor/TC_Resnet.py:167
↓ 1 callersFunctiontc_seresnet101
(num_class)
benchmark/image_benchmark_polyregressor/TC_senet.py:172
↓ 1 callersFunctiontest_data_preprocessor
()
tests/test_preprocessing.py:25
↓ 1 callersFunctiontest_rnn_models
()
tests/test_tnrnn.py:113
↓ 1 callersFunctiontest_save_load
Perform one training step on the model, save and reload it, then verify outputs and parameters.
tests/test_tncnn.py:11
↓ 1 callersFunctiontest_transformer_models
()
tests/test_tntransformer.py:95
↓ 1 callersFunctiontext_to_program
Return Program object by parsing input text using Python AST.
tnlearn/drsr/code_manipulation.py:174
↓ 1 callersMethodtrain_model
Training loop with regularization
tnlearn/poly_regressor.py:163
Method__getitem__
(self, index)
tnlearn/utils.py:27
Method__getstate__
(self)
tnlearn/modules/TNconv.py:84
Method__getstate__
(self)
tnlearn/modules/TNconv.py:309
Method__getstate__
(self)
tnlearn/modules/TNlinear.py:70
Method__getstate__
(self)
tnlearn/modules/TNrnn.py:217
Method__init__
(self, in_channels, out_channels, stride, r=16)
benchmark/image_benchmark_polyregressor/TC_senet.py:22
Method__init__
(self, in_channels, out_channels, stride, r=16)
benchmark/image_benchmark_polyregressor/TC_senet.py:67
Method__init__
(self, num_class=100)
benchmark/image_benchmark_polyregressor/TC_Googlenet.py:71
Method__init__
(self, in_channels, growth_rate)
benchmark/image_benchmark_polyregressor/TC_densenet.py:24
Method__init__
(self, in_channels, out_channels)
benchmark/image_benchmark_polyregressor/TC_densenet.py:50
Method__init__
(self, in_channels, out_channels, stride=1)
benchmark/image_benchmark_polyregressor/TC_Resnet.py:28
Method__init__
(self, in_channels, out_channels, stride=1)
benchmark/image_benchmark_polyregressor/TC_Resnet.py:65
Method__init__
r"""Construct MLPClassifier with task-based neurons. Args: neurons (str): Neuronal expression layers_list (list): List of neuro
tnlearn/mlpclassifier.py:32
Method__init__
r"""Initialize the preprocessor with options for numerical and categorical feature processing. Args: num_features: Numerical feat
tnlearn/preprocessing.py:21
Method__init__
(self, n_funcs: int, hidden_dim: int = 64)
tnlearn/rl_regressor.py:45
Method__init__
(self, pics, labels)
tnlearn/utils.py:23
Method__init__
r"""Initialization method of the BaseModel class that sets up a visualization tool
tnlearn/base.py:25
Method__init__
r"""Initialization method of the BaseModel class that sets up a visualization tool
tnlearn/base1.py:25
Method__init__
(self, rank, poly_order, method='cp', reg_
tnlearn/poly_regressor.py:27
Method__init__
r""" Construct MLPRegressor with task-based neurons. Args: neurons (str): Neuronal expression layers_list (list): L
tnlearn/mlpregressor.py:32
Method__init__
r"""Use vectorized symbolic regression algorithm to generate neuronal expression. Args: random_state (int): Seed for random numbe
tnlearn/regressor.py:27
Method__init__
(self, in_features: int, out_features: int, symbolic_expression: str, bias: bool = True)
tnlearn/neurons.py:36
Method__init__
(self, save_path='train_plot.png')
tnlearn/visualize.py:71
Method__init__
(self, save_path='train_plot.png')
tnlearn/visualize.py:144
Method__init__
(self, in_features: int, out_features: int, symbolic_expression: str, bias: bool = True)
tnlearn/TN_base.py:7
Method__init__
(self, in_channels: int, out_channels: int, kernel_size: Un
tnlearn/modules/TNconv.py:19
Method__init__
(self, in_channels, out_channels, kernel_size, stride=1, padding=0, symbolic_expression='x',
tnlearn/modules/TNconv.py:209
Method__init__
(self, in_channels, out_channels, kernel_size, stride=1, padding=0, symbolic_expression='x',
tnlearn/modules/TNconv.py:225
Method__init__
(self, in_channels: int, out_channels: int, kernel_size: Un
tnlearn/modules/TNconv.py:243
Method__init__
(self, in_channels, out_channels, kernel_size, stride=1, padding=0, output_padding=0, symboli
tnlearn/modules/TNconv.py:401
Method__init__
(self, in_channels, out_channels, kernel_size, stride=1, padding=0, output_padding=0, symboli
tnlearn/modules/TNconv.py:418
Method__init__
(self, in_channels, out_channels, kernel_size, stride=1, padding=0, output_padding=0, symboli
tnlearn/modules/TNconv.py:435
Method__init__
(self, in_features: int, out_features: int, symbolic_expres
tnlearn/modules/TNlinear.py:28
Method__init__
( self, d_model: int, nhead: int, dim_feedforward: int = 2048,
tnlearn/modules/TNtransformer.py:108
Method__init__
( self, d_model: int, nhead: int, dim_feedforward: int = 2048,
tnlearn/modules/TNtransformer.py:288
Method__init__
( self, encoder_layer: TNTransformerEncoderLayer, num_layers: int,
tnlearn/modules/TNtransformer.py:397
← previousnext →101–200 of 330, ranked by callers