MCPcopy Create free account
hub / github.com/DVampire/FinAgent / __init__

Method __init__

finagent/plots/interface.py:13–29  ·  view source on GitHub ↗
(self,
                 root = None,
                 workdir = None,
                 tag = None,
                 suffix = 'jpeg')

Source from the content-addressed store, hash-verified

11@PLOTS.register_module(force=True)
12class PlotsInterface():
13 def __init__(self,
14 root = None,
15 workdir = None,
16 tag = None,
17 suffix = 'jpeg') -> None:
18 super(PlotsInterface, self).__init__()
19 self.root = root
20 self.workdir = workdir
21 self.tag = tag
22 self.suffix = suffix
23
24 self.exp_path = init_path(os.path.join(self.root, self.workdir, self.tag))
25 self.plot_path = init_path(os.path.join(self.exp_path, "plots"))
26 self.kline_plot_path = init_path(os.path.join(self.plot_path, "kline"))
27 self.trading_plot_path = init_path(os.path.join(self.plot_path, "trading"))
28
29 self.echarts_js_path = os.path.join(self.root, "tools", "echarts-5.4.3" , "dist", "echarts.min.js")
30
31 def plot_kline(self, state, info, save_dir, mode = "train"):
32

Callers

nothing calls this directly

Calls 1

init_pathFunction · 0.90

Tested by

no test coverage detected