  
  from .display_graph import TrainingGraph
  from .display_page import DisplayOptionalPage
  from .custom_widgets import Tooltip
  from .stats import Calculations
  from .control_helper import set_slider_rounding
  from .utils import FileHandler, get_config, get_images, preview_trigger
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  
 
</s> remove from .control_helper import ControlBuilder, ControlPanelOption
from .display_graph import SessionGraph
from .display_page import DisplayPage
from .stats import Calculations, Session
 </s> add  </s> remove from lib.gui import (TaskBar, CliOptions, CommandNotebook, ConsoleOut, Session, DisplayNotebook,
 </s> add from lib.gui import (TaskBar, CliOptions, CommandNotebook, ConsoleOut, DisplayNotebook, </s> remove from lib.gui.stats import Session
 </s> add 
from .stats import Calculations, Session
  
  from .display_graph import TrainingGraph
  from .display_page import DisplayOptionalPage
  from .custom_widgets import Tooltip
from .stats import Calculations, Session
  from .control_helper import set_slider_rounding
  from .utils import FileHandler, get_config, get_images, preview_trigger
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  
keep keep keep keep replace keep keep keep keep keep
 GUI - Stats optimization (#1067)

* Faster stat loading + caching

* Compress data in cache

* Optimize some calculations

* Vectorize smoothing

* stats.Calculations optimized

* Load latest training data from live iterator

* Add options to training graph 
lib/gui/display_command.py