MCPcopy Create free account

hub / github.com/Cryolite/kanachan / functions

Functions465 in github.com/Cryolite/kanachan

↓ 41 callersFunctionpai2Num
src/annotation/utility.cpp:20
↓ 40 callersFunctionencodePeng_
src/annotation/utility.hpp:156
↓ 33 callersMethodaddPlayerScore
src/simulation/game_state.cpp:117
↓ 30 callersFunctionencodeChi_
src/annotation/utility.hpp:23
↓ 22 callersMethodonLianzhuang
src/simulation/game_state.cpp:122
↓ 15 callersMethodgetCurrentScore
src/annotation/player_state.cpp:745
↓ 14 callersMethodsetType
src/simulation/round_result.cpp:25
↓ 12 callersFunctiondump_model
(model: nn.Module, args: Iterable[Any], kwargs: Dict[str, Any])
kanachan/model_loader.py:25
↓ 12 callersMethodgetInitialScore
src/annotation/player_state.cpp:740
↓ 12 callersFunctiongetRoundRank_
src/annotation/main.cpp:69
↓ 11 callersMethodget_seat
(self)
mjai.app/_kanachan.py:736
↓ 10 callersFunctiondump_object
(obj: Any, args: Iterable[Any], kwargs: Dict[str, Any])
kanachan/model_loader.py:8
↓ 10 callersMethodonLunzhuang
src/simulation/game_state.cpp:130
↓ 9 callersMethodgetSeat
src/annotation/player_state.cpp:708
↓ 9 callersMethodsetHasFulu
src/simulation/round_result.cpp:38
↓ 9 callersMethodsetInLizhi
src/simulation/round_result.cpp:33
↓ 9 callersMethodswap
src/simulation/shoupai.cpp:257
↓ 8 callersMethod__assert_initialized
(self)
mjai.app/_kanachan.py:715
↓ 8 callersMethodget_num_left_tiles
(self)
mjai.app/_kanachan.py:825
↓ 7 callersFunctioncalculateXiangting
src/simulation/xiangting_calculator.cpp:372
↓ 7 callersMethodgetLeftTileCount
src/annotation/player_state.cpp:713
↓ 7 callersFunctionis_gradient_nan
(model: nn.Module)
kanachan/training/common.py:58
↓ 7 callersFunctiontranslatePythonException
src/simulation/utility.cpp:43
↓ 6 callersMethod__respond
(self, dapai: Optional[int], candidates: List[int])
mjai.app/_kanachan.py:1575
↓ 6 callersMethodgetPlayerScore
src/simulation/round_state.cpp:77
↓ 6 callersMethodgetZimopai
src/annotation/player_state.cpp:762
↓ 6 callersFunctionload_model
(model_path: Union[str, Path], map_location: torch.device=None)
kanachan/model_loader.py:72
↓ 5 callersFunction_GET_HUPAI_CANDIDATES
( xiangting_calculator: XiangtingCalculator, hand: List[int], n: int)
mjai.app/_kanachan.py:661
↓ 5 callersMethod__get_my_hand_counts
(self)
mjai.app/_kanachan.py:848
↓ 5 callersMethodcalculate
(self, hand: List[int], n: int)
mjai.app/xiangting_calculator/__init__.py:22
↓ 5 callersFunctiongetRandomSeed
src/simulation/utility.cpp:29
↓ 5 callersFunctionget_gradient
(model: nn.Module)
kanachan/training/common.py:53
↓ 5 callersMethodget_player_score
(self, seat: int)
mjai.app/_kanachan.py:758
↓ 5 callersMethodisDongfengZhan
src/simulation/game_state.cpp:40
↓ 4 callersMethod__set_my_hand_counts
(self, hand_counts: Counter)
mjai.app/_kanachan.py:854
↓ 4 callersMethodgetJu
src/simulation/round_state.cpp:62
↓ 4 callersMethodgetPlayerScore
src/simulation/game_state.cpp:73
↓ 4 callersFunctiongetTypeName
src/common/type_name.cpp:12
↓ 4 callersMethodget_player_grade
(self, seat: int)
mjai.app/_kanachan.py:740
↓ 4 callersMethodget_player_rank
(self, seat: int)
mjai.app/_kanachan.py:744
↓ 4 callersMethodjoin
src/simulation/decision_maker.cpp:150
↓ 4 callersMethodonLiuju
src/simulation/round_state.cpp:2841
↓ 3 callersMethod__get_my_zhenting_tiles_34
(self, seat: int)
mjai.app/_kanachan.py:1020
↓ 3 callersMethod_convert_to_win_tile
(self, hupai: int)
kanachan/simulation/tool.py:18
↓ 3 callersMethod_decode_tool_config
(self, tool_config: int)
kanachan/simulation/tool.py:45
↓ 3 callersFunction_step
( model: nn.Module, max_gradient_norm: float, optimizer: Optimizer, sc
kanachan/training/iql/train.py:214
↓ 3 callersFunctionconstruct_optimizer
(model: nn.Module)
kanachan/training/iql/train.py:827
↓ 3 callersFunctionencodeChi
src/annotation/utility.hpp:32
↓ 3 callersFunctionencodePeng
src/annotation/utility.hpp:165
↓ 3 callersMethodgetDiscardableTiles
src/annotation/player_state.cpp:750
↓ 3 callersMethodgetType
src/simulation/round_result.cpp:53
↓ 3 callersFunctionget_statistic
( game_results: List[object], proposed: int, callback: Callable[[int, int], float])
kanachan/simulation/run.py:170
↓ 3 callersFunctionloss_function
( prediction: torch.Tensor, index: torch.Tensor, target: torch.Tensor)
kanachan/training/bert/phase3/train.py:20
↓ 3 callersMethodonEndOfRound
src/simulation/game_log.cpp:90
↓ 3 callersMethodonPostGang
src/simulation/shoupai.cpp:2007
↓ 3 callersFunctionprintVector
test/annotation_vs_simulation/generate.cpp:625
↓ 3 callersMethodprintWithRoundResult
src/annotation/annotation.cpp:723
↓ 3 callersMethodsetRoundDeltaScore
src/simulation/round_result.cpp:43
↓ 3 callersMethodsetRoundScore
src/simulation/round_result.cpp:48
↓ 3 callersMethodswap
src/simulation/paishan.cpp:77
↓ 2 callersMethod__init__
(self, theta_model: ThetaModel)
kanachan/training/cql/q_model.py:103
↓ 2 callersMethod__parse_line
(self, line: str)
kanachan/training/iterator_adaptor_base.py:33
↓ 2 callersMethod__parse_line
(self, line: str)
kanachan/training/aiayn/iterator_adaptor.py:32
↓ 2 callersMethod__parse_line
(self, line: str)
kanachan/training/iql/iterator_adaptor.py:38
↓ 2 callersFunction_backprop
(q_source_model: nn.Module)
kanachan/training/iql/train.py:175
↓ 2 callersFunction_backward
( *, is_multiprocess: bool, world_size: Optional[int], is_amp_enabled: bool, annotation: Annot
kanachan/training/ilql/train.py:65
↓ 2 callersFunction_compute_q_target
(q_target_model: nn.Module)
kanachan/training/iql/train.py:104
↓ 2 callersFunction_get_annotation_key
(uuid: str, sparse: str, numeric: str, progression: str)
bin/annotate4rl/annotate4rl.py:13
↓ 2 callersFunction_get_q_target
( *, is_multiprocess: bool, world_size: Optional[int], annotation: Annotation, qv_target_model
kanachan/training/ilql/train.py:41
↓ 2 callersFunction_on_leaf
(test_file_path: Path)
test/annotation_vs_simulation/run.py:10
↓ 2 callersFunction_step
( *, qv_source_model: QVModel, q_loss: torch.Tensor, v_loss: torch.Tensor, grad_scaler: Option
kanachan/training/ilql/train.py:122
↓ 2 callersFunction_take_snapshot
( *, snapshots_path: Path, policy_model: nn.Module, optimizer: Optimizer, num_samples: int, in
kanachan/training/ilql/extract_policy.py:30
↓ 2 callersFunctionconstruct_optimizer
(model: nn.Module)
kanachan/training/ilql/train.py:842
↓ 2 callersFunctionconvert
src/annotation/main.cpp:84
↓ 2 callersFunctiondecodeTile
src/paishan/main.cpp:25
↓ 2 callersMethodgetCandidatesOnChiPeng
src/simulation/shoupai.cpp:1342
↓ 2 callersMethodgetChang
src/simulation/round_state.cpp:57
↓ 2 callersMethodgetNumLeftTiles
src/simulation/round_state.cpp:100
↓ 2 callersFunctionget_statistics
(game_results: List[object], proposed: int)
kanachan/simulation/run.py:205
↓ 2 callersMethodget_zimo_tile
(self)
mjai.app/_kanachan.py:837
↓ 2 callersMethodhas_yihan
( self, chang: int, player_wind: int, hand: List[int], fulu_list: List[int], hupai: int, rong:
mjai.app/hand_calculator.py:302
↓ 2 callersFunctioninitialize_logging
( experiment_path: Path, local_rank: Optional[int])
kanachan/training/common.py:10
↓ 2 callersMethodis_in_liqi
(self)
mjai.app/_kanachan.py:840
↓ 2 callersFunctionmakeHand_
src/annotation/player_state.cpp:67
↓ 2 callersMethodonChiPengGang
src/annotation/player_state.cpp:428
↓ 2 callersMethodonDapai
src/annotation/player_state.cpp:373
↓ 2 callersMethodonGang
src/annotation/player_state.cpp:632
↓ 2 callersMethodonNewRound
src/annotation/player_state.cpp:259
↓ 2 callersMethodonPostChiPeng
src/simulation/shoupai.cpp:1726
↓ 2 callersMethodonSuccessfulLizhi
src/simulation/game_state.cpp:109
↓ 2 callersMethodonZimo
src/annotation/player_state.cpp:325
↓ 2 callersMethodon_liqi
(self, seat: int)
mjai.app/_kanachan.py:1386
↓ 2 callersMethodon_liqi_acceptance
(self, seat: int)
mjai.app/_kanachan.py:720
↓ 2 callersMethodon_new_round
(self, scores: List[int])
mjai.app/_kanachan.py:712
↓ 2 callersMethodon_zimo
( self, seat: int, mine: bool, tile: Optional[int], my_score: int)
mjai.app/_kanachan.py:897
↓ 2 callersMethodprint
src/annotation/player_state.cpp:782
↓ 2 callersFunctionprintErrorMessage
src/common/throw.cpp:22
↓ 2 callersMethodshrinkBatchSizeToFitNumThreads
src/simulation/decision_maker.cpp:127
↓ 2 callersFunctionsimulateGame
src/simulation/game.cpp:30
↓ 2 callersFunctionsimulateRound
src/simulation/round.cpp:18
next →1–100 of 465, ranked by callers