mirror of
https://github.com/Rikj000/MoniGoMani.git
synced 2022-03-06 00:08:05 +03:00
🔀 Merge PR #232 from perfectra1n/feature/add-results-for-export
⚡️ Add `strategy` and `loss` files to results export & creation of `mgm_result_export`
This commit is contained in:
@@ -1134,14 +1134,17 @@ class MGMHurry:
|
||||
backtest_log_filepath = f'{self.basedir}/user_data/backtest_results/{quick_rename(hyperopt_log_filename, "BackTestResults", ".log")}'
|
||||
mgm_config_filepath = f'{self.basedir}/user_data/{self.monigomani_config.config["mgm_config_names"]["mgm-config"]}'
|
||||
ho_config_filepath = f'{self.basedir}/user_data/{self.monigomani_config.config["mgm_config_names"]["mgm-config-hyperopt"]}'
|
||||
strategy_filepath = f'{self.basedir}/user_data/strategies/{self.monigomani_config.config["hyperopt"]["strategy"]}.py'
|
||||
loss_strategy_filepath = f'{self.basedir}/user_data/hyperopts/{self.monigomani_config.config["hyperopt"]["loss"]}.py'
|
||||
hurry_config_filepath = f'{self.basedir}/.hurry'
|
||||
plotprofitresults_filepath = f'{self.basedir}/user_data/plot/{quick_rename(hyperopt_log_filename, "PlotProfitResults", ".html")}'
|
||||
plotstatsreports_filepath = f'{self.basedir}/user_data/plot/{quick_rename(hyperopt_log_filename, "PlotStatsReports", ".html")}'
|
||||
csv_results_filepath = f'{self.basedir}/user_data/csv_results/{quick_rename(hyperopt_log_filename, "CsvResults", ".csv")}'
|
||||
importance_results_filepath = f'{self.basedir}/user_data/importance_results/{quick_rename(hyperopt_log_filename, "SignalImportanceResults", ".log")}'
|
||||
|
||||
files = [hyperopt_log_filepath, backtest_log_filepath, mgm_config_filepath, ho_config_filepath, hurry_config_filepath,
|
||||
plotprofitresults_filepath, plotstatsreports_filepath, csv_results_filepath, importance_results_filepath]
|
||||
files = [hyperopt_log_filepath, backtest_log_filepath, mgm_config_filepath, ho_config_filepath, hurry_config_filepath,
|
||||
plotprofitresults_filepath, plotstatsreports_filepath, csv_results_filepath, importance_results_filepath,
|
||||
strategy_filepath, loss_strategy_filepath]
|
||||
|
||||
# Just going to borrow that naming structure...
|
||||
unique_dir_name = hyperopt_log_filename.replace(f'{hyperopt_log_filename.split("-")[0]}-', '')
|
||||
|
||||
@@ -160,7 +160,7 @@ class MoniGoManiCli(object):
|
||||
try:
|
||||
mgm_folder = '/monigomani'
|
||||
make_directories = [target_dir + mgm_folder, f'{target_dir}/user_data/importance_results',
|
||||
f'{target_dir}/user_data/csv_results']
|
||||
f'{target_dir}/user_data/csv_results', f'{target_dir}/user_data/mgm_result_export']
|
||||
|
||||
for make_dir in make_directories:
|
||||
if not os.path.exists(make_dir):
|
||||
|
||||
Reference in New Issue
Block a user