Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bigdata-ustc/Agent4Edu
/ functions
Functions
138 in github.com/bigdata-ustc/Agent4Edu
⨍
Functions
138
◇
Types & classes
19
↓ 25 callers
Function
normalize_concept
(value: Any)
Code/utils.py:57
↓ 12 callers
Function
load_json
(path: os.PathLike | str)
Code/utils.py:15
↓ 12 callers
Function
save_json
(path: os.PathLike | str, data: Any, *, indent: int = 4)
Code/utils.py:29
↓ 3 callers
Function
_avg
(xs: list[int])
Code/main.py:64
↓ 3 callers
Function
_save_json
(path: str | Path, data: Any, *, indent: int = 4)
Code/tools/rcd_graph/build_kcg.py:44
↓ 3 callers
Function
_write_edge_txt
(path: str | Path, edges: Iterable[tuple[int, int]])
Code/tools/rcd_graph/build_kcg.py:51
↓ 3 callers
Method
course
(self, concept: str)
Code/tools/relation_graph.py:26
↓ 3 callers
Function
infer_dataset_shape
(students: Sequence[Mapping[str, Any]])
Code/utils.py:66
↓ 3 callers
Function
make_loader
(data, batch_size: int, shuffle: bool = True)
Code/tools/dneuralcdm/data.py:63
↓ 3 callers
Function
prepare_dataloader
(data, batch_size)
Code/tools/dneuralcdm/original/NCD+DKT.py:151
↓ 3 callers
Function
prepare_dataloader
(data, batch_size)
Code/tools/dneuralcdm/original/DNeuralCDM.py:207
↓ 2 callers
Function
_as_knowledge_list
Normalize one log's knowledge_code field to a list of int ids.
Code/tools/rcd_graph/build_kcg.py:59
↓ 2 callers
Method
_promote_to_long_term
(self)
Code/memory.py:91
↓ 2 callers
Function
_score_is_correct
(log: Mapping[str, Any])
Code/tools/rcd_graph/build_kcg.py:87
↓ 2 callers
Method
apply_clipper
Apply non-negative clipping if needed. In this implementation, discrimination is already positive because of sigmoid, so this
Code/tools/irt/model.py:75
↓ 2 callers
Method
call
(self, messages: list[dict[str, str]])
Code/llm_client.py:36
↓ 2 callers
Method
concept_id
(self, concept: str)
Code/tools/relation_graph.py:23
↓ 2 callers
Method
forward
:param stu_id: LongTensor, student ids :param exer_id: LongTensor, exercise ids :return: FloatTensor, probability of answerin
Code/tools/irt/model.py:41
↓ 2 callers
Method
get_knowledge_status
Return student ability theta_u.
Code/tools/irt/model.py:83
↓ 2 callers
Method
is_end
(self)
Code/tools/irt/original/data_loader.py:41
↓ 2 callers
Method
is_end
(self)
Code/tools/irt/original/data_loader.py:87
↓ 2 callers
Function
make_loader
(path: Path, batch_size: int, shuffle: bool)
Code/tools/irt/train.py:26
↓ 2 callers
Function
read_config_numbers
Read a two-line config file: header, then student_n,exercise_n,knowledge_n.
Code/utils.py:36
↓ 2 callers
Method
split_by_student
(self, train_ratio: float = 0.8, val_ratio: float = 0.2)
Code/tools/dneuralcdm/data.py:51
↓ 2 callers
Function
step_loss
(model, batch, criterion, device)
Code/tools/dneuralcdm/train.py:25
↓ 1 callers
Method
__init__
(self, num_exercises, num_know, embedding_dim, hidden_dim)
Code/tools/dneuralcdm/model.py:6
↓ 1 callers
Method
__init__
(self, num_exercises, num_know, embedding_dim, hidden_dim)
Code/tools/dneuralcdm/original/DNeuralCDM.py:118
↓ 1 callers
Method
__init__
(self, student_n, exer_n, knowledge_n=None, use_guess=False)
Code/tools/irt/model.py:16
↓ 1 callers
Method
_build_action_prompt
( self, practice: dict[str, Any], short_memory: list[list[Any]], long_memory:
Code/action.py:60
↓ 1 callers
Method
_concept_options
(self, memory: Memory, true_concept: str, seed: int)
Code/action.py:56
↓ 1 callers
Method
_default_model
(self)
Code/llm_client.py:28
↓ 1 callers
Method
_extract_first_option
(text: str)
Code/llm_client.py:70
↓ 1 callers
Function
_load_json
(path: str | Path)
Code/tools/rcd_graph/build_kcg.py:32
↓ 1 callers
Method
_mock_call
(self, messages: list[dict[str, str]])
Code/llm_client.py:53
↓ 1 callers
Method
_parse_tasks
(text: str)
Code/action.py:141
↓ 1 callers
Method
_proficiency_context
(self, concepts: list[str], time_step: int)
Code/memory.py:52
↓ 1 callers
Function
_rcd_threshold
RCD threshold: min-max normalize, average, then power four.
Code/tools/rcd_graph/build_kcg.py:149
↓ 1 callers
Method
_score_tasks
(practice: dict[str, Any], ans: dict[str, str])
Code/action.py:161
↓ 1 callers
Method
_sequence
(self, student_id: int)
Code/tools/knowledge_proficiency.py:27
↓ 1 callers
Method
ability
(self)
Code/profile.py:65
↓ 1 callers
Method
activity
(self)
Code/profile.py:48
↓ 1 callers
Method
apply_clipper
(self)
Code/tools/dneuralcdm/model.py:23
↓ 1 callers
Method
apply_clipper
(self)
Code/tools/dneuralcdm/original/DNeuralCDM.py:136
↓ 1 callers
Method
available
(self)
Code/tools/knowledge_proficiency.py:24
↓ 1 callers
Function
build_concept_graph
Build raw RCD concept-map edges from logs. Returns ``knowledgeGraph``-style edges before reciprocal-edge splitting.
Code/tools/rcd_graph/build_kcg.py:162
↓ 1 callers
Function
build_profiles
(logs_path: Path, config_path: Path | None, ability_path: Path | None, ability_index_offset: int, default_abil
Code/prepare/build_profile.py:23
↓ 1 callers
Method
build_prompt
(self)
Code/profile.py:73
↓ 1 callers
Function
count_correct_transitions
Count RCD-style concept transitions. For two consecutive logs, a transition from concept i to concept j is counted only when both exercises a
Code/tools/rcd_graph/build_kcg.py:117
↓ 1 callers
Method
diversity
(self)
Code/profile.py:51
↓ 1 callers
Function
divide_data
1. delete students who have fewer than min_log response logs 2. divide dataset into train_set, val_set and test_set (0.7:0.1:0.2) :return
Code/tools/irt/original/divide_data.py:4
↓ 1 callers
Function
evaluate
(net, loader, device)
Code/tools/irt/train.py:34
↓ 1 callers
Function
export_graph_artifacts
( rows: Sequence[Mapping[str, Any]], *, output_dir: str | Path, agent_kcg_path: str | Path | N
Code/tools/rcd_graph/build_kcg.py:258
↓ 1 callers
Function
flatten
(students)
Code/tools/irt/split_data.py:21
↓ 1 callers
Method
forget
(self, time_step: int)
Code/memory.py:100
↓ 1 callers
Method
is_related
(self, left: str, right: str)
Code/tools/relation_graph.py:29
↓ 1 callers
Function
iter_log_sequences
Yield each student's ordered practice sequence. Supported inputs: - Agent4Edu: [{"user_id": ..., "logs": [...]}, ...] - RCD ASSIST: [{"lo
Code/tools/rcd_graph/build_kcg.py:97
↓ 1 callers
Function
iter_student_logs
(students: Sequence[Mapping[str, Any]])
Code/utils.py:61
↓ 1 callers
Function
load_edge_pairs
Load edge pairs from JSON or RCD-style TSV/TXT files.
Code/prepare/normalize_kcg.py:12
↓ 1 callers
Function
main
()
Code/main.py:68
↓ 1 callers
Function
main
()
Code/tools/rcd_graph/build_kcg.py:295
↓ 1 callers
Function
main
()
Code/tools/dneuralcdm/train.py:36
↓ 1 callers
Function
main
()
Code/tools/dneuralcdm/export_proficiency.py:21
↓ 1 callers
Function
main
()
Code/tools/irt/split_data.py:35
↓ 1 callers
Function
main
()
Code/tools/irt/train.py:51
↓ 1 callers
Function
main
()
Code/prepare/normalize_kcg.py:36
↓ 1 callers
Function
main
()
Code/prepare/build_profile.py:52
↓ 1 callers
Method
next_batch
(self)
Code/tools/irt/original/data_loader.py:23
↓ 1 callers
Method
next_batch
(self)
Code/tools/irt/original/data_loader.py:69
↓ 1 callers
Function
normalize_kcg_pairs
(raw_pairs: Iterable[Sequence[Any]])
Code/tools/relation_graph.py:43
↓ 1 callers
Function
parse_args
()
Code/main.py:12
↓ 1 callers
Function
parse_args
()
Code/tools/dneuralcdm/train.py:11
↓ 1 callers
Function
parse_args
()
Code/tools/dneuralcdm/export_proficiency.py:13
↓ 1 callers
Function
parse_args
()
Code/tools/irt/split_data.py:10
↓ 1 callers
Function
parse_args
()
Code/tools/irt/train.py:15
↓ 1 callers
Function
parse_args
()
Code/prepare/build_profile.py:12
↓ 1 callers
Function
pick_distractors
(true_concept: str, candidates: Sequence[str], k: int = 2, seed: int | None = None)
Code/utils.py:78
↓ 1 callers
Method
preference
(self)
Code/profile.py:54
↓ 1 callers
Method
reflect_corrective
(self, practice: dict[str, Any], ans: dict[str, str])
Code/memory.py:121
↓ 1 callers
Method
reflection_instruction
(corrective: str)
Code/memory.py:140
↓ 1 callers
Method
reinforce
(self, record: list[Any])
Code/memory.py:77
↓ 1 callers
Method
reset
(self)
Code/tools/irt/original/data_loader.py:47
↓ 1 callers
Method
reset
(self)
Code/tools/irt/original/data_loader.py:93
↓ 1 callers
Method
retrieve_long
(self, current_concept: str | None = None, time_step: int = 1)
Code/memory.py:39
↓ 1 callers
Method
retrieve_short
(self)
Code/memory.py:35
↓ 1 callers
Function
run_student
(row: dict, data_dir: Path, result_dir: Path, action: Action, max_steps: int = 0)
Code/main.py:34
↓ 1 callers
Method
same_course
(self, left: str, right: str)
Code/tools/relation_graph.py:36
↓ 1 callers
Method
sample_distractors
(self, true_concept: str, k: int = 2, seed: int | None = None)
Code/tools/relation_graph.py:39
↓ 1 callers
Function
save_snapshot
(model, filename)
Code/tools/irt/original/train.py:108
↓ 1 callers
Function
select_agent_edges
( raw_edges: Sequence[tuple[int, int]], directed_edges: Sequence[tuple[int, int]], undirected_edge
Code/tools/rcd_graph/build_kcg.py:242
↓ 1 callers
Function
select_students
(all_students: list[dict], selector: str, by_id: bool)
Code/main.py:23
↓ 1 callers
Method
similarity_by_kcg
(self, record: list[Any])
Code/memory.py:64
↓ 1 callers
Method
simulate_practice
(self, profile: Profile, memory: Memory, practice: dict[str, Any], step: int)
Code/action.py:16
↓ 1 callers
Function
split_directed_undirected
Split RCD raw graph into prerequisite and similarity edges. Reciprocal pairs are written once as undirected/similarity edges. One-way pairs
Code/tools/rcd_graph/build_kcg.py:217
↓ 1 callers
Method
success_rate
(self)
Code/profile.py:57
↓ 1 callers
Function
test_model
测试模型性能,计算准确率、F1、AUC和ROUGE-2。
Code/tools/dneuralcdm/original/NCD+DKT.py:249
↓ 1 callers
Method
tier
(value: float | None)
Code/tools/knowledge_proficiency.py:48
↓ 1 callers
Function
train
()
Code/tools/irt/original/train.py:21
↓ 1 callers
Function
train_model
(model, train_loader, val_loader, criterion, optimizer, num_epochs=10)
Code/tools/dneuralcdm/original/NCD+DKT.py:183
↓ 1 callers
Method
train_val_test_split
Split each student's sequence into training, validation, and test sets. - Train: first 80% of data (last 10% of this for validation).
Code/tools/dneuralcdm/original/NCD+DKT.py:71
↓ 1 callers
Method
train_val_test_split
Split each student's sequence into training, validation, and test sets. - Train: first 80% of data (last 10% of this for validation).
Code/tools/dneuralcdm/original/DNeuralCDM.py:94
next →
1–100 of 138, ranked by callers