MCPcopy Create free account

hub / github.com/FlyingFeather/DEA-SQL / functions

Functions1,466 in github.com/FlyingFeather/DEA-SQL

Method__init__
(self, input_dim, output_dim=128, init='glorot_uniform', inner_init='orthogonal',
evaluation/ts_old/spider-master/baselines/nl2code/nn/layers/recurrent.py:144
Method__init__
(self, input_dim, output_dim, init='glorot_uniform', inner_init='orthogonal', forget_bias_ini
evaluation/ts_old/spider-master/baselines/nl2code/nn/layers/recurrent.py:247
Method__init__
(self, input_dim, output_dim, init='glorot_uniform', inner_init='orthogonal', forget_bias_ini
evaluation/ts_old/spider-master/baselines/nl2code/nn/layers/recurrent.py:359
Method__init__
(self, input_dim, output_dim, context_dim, att_hidden_dim, init='glorot_unif
evaluation/ts_old/spider-master/baselines/nl2code/nn/layers/recurrent.py:401
Method__init__
(self, input_dim, context_dim, hidden_dim, vocab_num, init='glorot_uniform', inner_init='orth
evaluation/ts_old/spider-master/baselines/nl2code/nn/layers/recurrent.py:584
Method__init__
(self, max_sent_len, word_embed_dim, filter_num, filter_window_size, border_mode='valid', act
evaluation/ts_old/spider-master/baselines/nl2code/nn/layers/convolution.py:14
Method__init__
(self, embed_size, unfixed_embed_size, embed_dim, init='uniform', name='HybridEmbedding')
evaluation/ts_old/spider-master/baselines/nl2code/nn/layers/embeddings.py:75
Method__init__
(self, schema, table)
evaluation/ts_old/spider-master/preprocess/parse_raw_json.py:20
Method__init__
(self, schema, table)
evaluation/ts_old/spider-master/preprocess/parse_sql_one.py:20
Method__init__
(self)
evaluation/test-suite-sql-eval/evaluation.py:359
Method__init__
(self, schema)
evaluation/test-suite-sql-eval/process_sql.py:52
Method__iter__
(self)
evaluation/ts_old/spider-master/baselines/nl2code/learner.py:178
Method__iter__
(self)
evaluation/ts_old/spider-master/baselines/nl2code/dataset.py:79
Method__iter__
(self)
evaluation/ts_old/spider-master/baselines/nl2code/lang/grammar.py:51
Method__len__
(self)
evaluation/ts_old/spider-master/baselines/nl2code/dataset.py:76
Method__len__
(self)
evaluation/ts_old/spider-master/baselines/nl2code/lang/grammar.py:54
Method__len__
(self)
evaluation/ts_old/spider-master/baselines/nl2code/nn/utils/io_utils.py:23
Method__ne__
(self, other)
evaluation/ts_old/spider-master/baselines/nl2code/astnode.py:118
Method__repr__
(self)
evaluation/ts_old/spider-master/baselines/nl2code/astnode.py:63
Method__repr__
(self)
evaluation/ts_old/spider-master/baselines/nl2code/components.py:78
Method__setitem__
(self, key, value)
evaluation/ts_old/spider-master/baselines/nl2code/dataset.py:73
Method__setitem__
(self, key, value)
evaluation/ts_old/spider-master/baselines/nl2code/nn/utils/config_factory.py:8
Method_assert_correct_outputs
Asserts bridge outputs are correct. Must be implemented by child classes
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/test/bridges_test.py:64
Method_attention_over_history
()
evaluation/ts_old/spider-master/baselines/nl2code/components.py:318
Method_build
Subclasses should implement their logic here.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/graph_module.py:50
Method_build
(self, inputs, *args, **kwargs)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/encoders/encoder.py:48
Method_build
(self, initial_state, helper)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/decoders/rnn_decoder.py:103
Method_build
Computes attention scores and outputs. Args: query: The query used to calculate attention scores. In seq2seq this is typically the
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/decoders/attention.py:71
Method_build
(self, features, labels, params)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/seq2seq_model.py:332
Method_clip_gradients
Clips gradients by global norm.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/model_base.py:67
Method_clip_gradients
In addition to standard gradient clipping, also clips embedding gradients to a specified value.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/seq2seq_model.py:83
Method_config_path
(self)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/test/example_config_test.py:77
Method_config_path
(self)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/test/example_config_test.py:84
Method_config_path
(self)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/test/example_config_test.py:91
Method_config_path
(self)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/test/example_config_test.py:97
Function_create
(s, d)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/contrib/seq2seq/decoder.py:135
Method_create
(self)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/bridges.py:89
Method_create
(self)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/bridges.py:106
Method_create
(self)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/bridges.py:147
Method_create_bridge
(self, **kwargs)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/test/bridges_test.py:87
Method_create_bridge
(self, **kwargs)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/test/bridges_test.py:106
Method_create_bridge
(self, **kwargs)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/test/bridges_test.py:133
Method_create_decoder
(self, encoder_output, features, _labels)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/schema_attention_copying_seq2seq.py:68
Method_create_decoder
(self, encoder_output, features, _labels)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/attention_copying_seq2seq.py:48
Method_create_decoder
(self, encoder_output, features, _labels)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/schema_attention_seq2seq.py:127
Method_create_decoder
(self, encoder_output, features, _labels)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/schema_attention_seq2seq.py:188
Method_create_decoder
(self, encoder_output, features, _labels)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/attention_seq2seq.py:76
Method_create_example
Creates example data for a test
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/test/models_test.py:82
Method_create_layer
(self)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/test/attention_test.py:86
Method_create_layer
(self)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/test/attention_test.py:98
Method_create_predictions
(self, decoder_output, features, labels, losses=None)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/schema_attention_copying_seq2seq.py:128
Method_create_predictions
(self, decoder_output, features, labels, losses=None)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/attention_copying_seq2seq.py:232
Method_create_predictions
(self, decoder_output, features, labels, losses=None)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/attention_copying_seq2seq.py:405
Function_create_ta
(s, d)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/contrib/seq2seq/decoder.py:212
Method_for_step
(self, xi_t, xf_t, xo_t, xc_t, mask_t, h_tm1, c_tm1, con
evaluation/ts_old/spider-master/baselines/nl2code/components.py:385
Function_maybe_copy_state
(new, cur)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/contrib/seq2seq/decoder.py:260
Method_preprocess
Model-specific preprocessing for features and labels: - Creates vocabulary lookup tables for source and target vocab - Converts tokens
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/schema_attention_copying_seq2seq.py:50
Method_preprocess
Model-specific preprocessing for features and labels: - Creates vocabulary lookup tables for source and target vocab - Converts tokens
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/attention_copying_seq2seq.py:216
Method_preprocess
Model-specific preprocessing for features and labels: - Creates vocabulary lookup tables for source and target vocab - Converts tokens
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/attention_copying_seq2seq.py:385
Method_preprocess
Model-specific preprocessing for features and labels: - Creates vocabulary lookup tables for target vocab - Converts tokens into vocabulary i
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/image2seq.py:73
Method_py_func
Wrapper function that converts tensors to unicode and slices them until the EOS token is found.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/metrics/metric_specs.py:131
Method_setup
(self, initial_state, helper)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/decoders/schema_attention_decoder.py:190
Method_setup
(self, initial_state, helper)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/decoders/schema_attention_decoder.py:313
Method_setup
(self, initial_state, helper)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/decoders/schema_attention_decoder.py:485
Method_setup
(self, initial_state, helper)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/decoders/attention_decoder.py:145
Method_step
(self, t, xi_t, xf_t, xo_t, xc_t, mask_t, parent_t, h_tm1, c_tm1, hist_h,
evaluation/ts_old/spider-master/baselines/nl2code/components.py:280
Method_step
(self, xz_t, xr_t, xh_t, mask_tm1, h_tm1, u_z, u_r, u_h)
evaluation/ts_old/spider-master/baselines/nl2code/nn/layers/recurrent.py:69
Method_step
(self, # xz_t, xr_t, xh_t, mask_tm1, mask, xz_t, xr_t, xh_t, mask, h
evaluation/ts_old/spider-master/baselines/nl2code/nn/layers/recurrent.py:180
Method_step
(self, xi_t, xf_t, xo_t, xc_t, mask_t, h_tm1, c_tm1, u_i, u_f, u_o,
evaluation/ts_old/spider-master/baselines/nl2code/nn/layers/recurrent.py:288
Method_step
(self, xi_t, xf_t, xo_t, xc_t, mask_t, h_tm1, c_tm1, ctx_vec_tm1, u_
evaluation/ts_old/spider-master/baselines/nl2code/nn/layers/recurrent.py:461
Method_step
(self, xz_t, xr_t, xh_t, mask_tm1, h_tm1, u_z, u_r, u_h)
evaluation/ts_old/spider-master/baselines/nl2code/nn/layers/recurrent.py:631
Function_unk_replace
Replaces UNK tokens with tokens from the source or a provided mapping based on the attention scores. Args: source_tokens: A numpy array of st
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/tasks/decode_text.py:60
Function_unstack_ta
(inp)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/contrib/seq2seq/helper.py:62
Functionaccuracy
(count, total)
hardness_eval.py:624
Functionaccuracy
(count, total)
single_eval.py:85
Functionaccuracy
(count, total)
evaluation/ts_old/spider-master/evaluation.py:85
Functionaccuracy
(p, y)
evaluation/ts_old/spider-master/baselines/nl2code/nn/utils/np_utils.py:43
Functionaccuracy
(count, total)
evaluation/test-suite-sql-eval/evaluation.py:84
Functionadd_dict_to_collection
Adds a dictionary to a graph collection. Args: dict_: A dictionary of string keys to tensor values collection_name: The name of the collect
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/graph_utils.py:45
Methodafter_create_session
(self, session, coord)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/training/hooks.py:196
Methodafter_create_session
(self, session, coord)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/training/hooks.py:295
Methodafter_create_session
Runs SyncReplicasOptimizer initialization ops.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/training/hooks.py:358
Methodafter_run
(self, _run_context, run_values)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/training/hooks.py:105
Methodafter_run
(self, _run_context, run_values)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/training/hooks.py:200
Methodafter_run
(self, _run_context, run_values)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/tasks/decode_text.py:153
Methodafter_run
(self, _run_context, run_values)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/tasks/dump_attention.py:114
Methodafter_run
(self, _run_context, run_values)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/tasks/dump_beams.py:68
Functionanalyze_ifttt_dataset
()
evaluation/ts_old/spider-master/baselines/nl2code/lang/ifttt/ifttt_dataset.py:35
Methodas_type_node
return an ASTNode with type information only
evaluation/ts_old/spider-master/baselines/nl2code/astnode.py:59
Functionask_llm
(model: str, batch: list, temperature: float, n:int)
llm/chatgpt.py:52
Methodatt_next_inputs
Wraps the original decoder helper function to append the attention context.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/decoders/schema_attention_decoder.py:193
Methodatt_next_inputs
Wraps the original decoder helper function to append the attention context.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/decoders/schema_attention_decoder.py:317
Methodatt_next_inputs
Wraps the original decoder helper function to append the attention context.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/decoders/schema_attention_decoder.py:488
Methodatt_next_inputs
Wraps the original decoder helper function to append the attention context.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/decoders/attention_decoder.py:148
Methodbatch_size
The batch size of the inputs returned by `sample`.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/contrib/seq2seq/decoder.py:85
Methodbatch_size
Returns a scalar int32 tensor.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/contrib/seq2seq/helper.py:73
Methodbatch_size
(self)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/contrib/seq2seq/helper.py:113
Methodbatch_size
(self)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/contrib/seq2seq/helper.py:175
Methodbatch_size
(self)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/contrib/seq2seq/helper.py:486
Methodbatch_size
(self)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/decoders/beam_search_decoder.py:112
← previousnext →901–1,000 of 1,466, ranked by callers