• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

freqtrade / freqtrade / 9394559170

26 Apr 2024 06:36AM UTC coverage: 94.656% (-0.02%) from 94.674%
9394559170

push

github

xmatthias
Loader should be passed as kwarg for clarity

20280 of 21425 relevant lines covered (94.66%)

0.95 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

84.21
/freqtrade/freqai/tensorboard/base_tensorboard.py
1
import logging
1✔
2
from pathlib import Path
1✔
3
from typing import Any
1✔
4

5
from xgboost.callback import TrainingCallback
1✔
6

7

8
logger = logging.getLogger(__name__)
1✔
9

10

11
class BaseTensorboardLogger:
1✔
12
    def __init__(self, logdir: Path, activate: bool = True):
1✔
13
        pass
1✔
14

15
    def log_scalar(self, tag: str, scalar_value: Any, step: int):
1✔
16
        return
1✔
17

18
    def close(self):
1✔
19
        return
1✔
20

21

22
class BaseTensorBoardCallback(TrainingCallback):
1✔
23

24
    def __init__(self, logdir: Path, activate: bool = True):
1✔
25
        pass
×
26

27
    def after_iteration(
1✔
28
        self, model, epoch: int, evals_log: TrainingCallback.EvalsLog
29
    ) -> bool:
30
        return False
×
31

32
    def after_training(self, model):
1✔
33
        return model
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc