@@ -215,6 +215,9 @@ def __init__(self, *args: Any, skill_context: SkillContext, **kwargs: Any) -> No
215
215
# the key is the market id/question_id
216
216
self .bet_id_row_manager : Dict [str , List [int ]] = {}
217
217
218
+ # mech call counter for benchmarking behaviour
219
+ self .benchmarking_mech_calls : int = 0
220
+
218
221
@property
219
222
def mock_question_id (self ) -> Any :
220
223
"""Get the mock question id."""
@@ -497,39 +500,6 @@ def get_store_path(self, kwargs: Dict) -> Path:
497
500
return Path (path )
498
501
499
502
500
- class BenchmarkingMode (Model , TypeCheckMixin ):
501
- """Configuration for the benchmarking mode."""
502
-
503
- def __init__ (self , * args : Any , ** kwargs : Any ) -> None :
504
- """Initialize the `BenchmarkingMode` object."""
505
- self .enabled : bool = self ._ensure ("enabled" , kwargs , bool )
506
- self .native_balance : int = self ._ensure ("native_balance" , kwargs , int )
507
- self .collateral_balance : int = self ._ensure ("collateral_balance" , kwargs , int )
508
- self .mech_cost : int = self ._ensure ("mech_cost" , kwargs , int )
509
- self .pool_fee : int = self ._ensure ("pool_fee" , kwargs , int )
510
- self .sep : str = self ._ensure ("sep" , kwargs , str )
511
- self .dataset_filename : Path = Path (
512
- self ._ensure ("dataset_filename" , kwargs , str )
513
- )
514
- self .question_field : str = self ._ensure ("question_field" , kwargs , str )
515
- self .question_id_field : str = self ._ensure ("question_id_field" , kwargs , str )
516
- self .answer_field : str = self ._ensure ("answer_field" , kwargs , str )
517
- self .p_yes_field_part : str = self ._ensure ("p_yes_field_part" , kwargs , str )
518
- self .p_no_field_part : str = self ._ensure ("p_no_field_part" , kwargs , str )
519
- self .confidence_field_part : str = self ._ensure (
520
- "confidence_field_part" , kwargs , str
521
- )
522
- # this is the mode for the p and confidence parts
523
- # if the flag is `True`, then the field parts are used as prefixes, otherwise as suffixes
524
- self .part_prefix_mode : bool = self ._ensure ("part_prefix_mode" , kwargs , bool )
525
- self .bet_amount_field : str = self ._ensure ("bet_amount_field" , kwargs , str )
526
- self .results_filename : Path = Path (
527
- self ._ensure ("results_filename" , kwargs , str )
528
- )
529
- self .randomness : str = self ._ensure ("randomness" , kwargs , str )
530
- super ().__init__ (* args , ** kwargs )
531
-
532
-
533
503
class AccuracyInfoFields (Model , TypeCheckMixin ):
534
504
"""Configuration which holds the accuracy information file's fieldnames."""
535
505
0 commit comments