ae2399ecbd441eb924764d22444d3fb10cf562f4,slm_lab/experiment/analysis.py,,save_session_data,#Any#Any#Any#Any#Any#Any#,106
Before Change
"""
spec_name = session_spec["name"]
trial_index = info_space.coor["trial"]
session_index = info_space.coor["session"]
predir = f"data/{spec_name}_{info_space.experiment_ts}"
prename = f"{spec_name}_t{trial_index}_s{session_index}"
logger.info(
f"Saving trial {trial_index} session {session_index} data to {predir}")
After Change
"""
session_mdp_df = pd.concat(session_mdp_data, axis=1)
session_df = pd.concat(session_data, axis=1)
prepath = get_prepath(info_space, spec, unit="session")
logger.info(f"Saving session data to {prepath}")
util.write(session_mdp_df, f"{prepath}_session_mdp_df.csv")
util.write(session_df, f"{prepath}_session_df.csv")
util.write(session_fitness_df, f"{prepath}_session_fitness_df.csv")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: kengz/SLM-Lab
Commit Name: ae2399ecbd441eb924764d22444d3fb10cf562f4
Time: 2018-01-28
Author: kengzwl@gmail.com
File Name: slm_lab/experiment/analysis.py
Class Name:
Method Name: save_session_data
Project Name: kengz/SLM-Lab
Commit Name: ae2399ecbd441eb924764d22444d3fb10cf562f4
Time: 2018-01-28
Author: kengzwl@gmail.com
File Name: slm_lab/experiment/analysis.py
Class Name:
Method Name: save_trial_data
Project Name: kengz/SLM-Lab
Commit Name: ae2399ecbd441eb924764d22444d3fb10cf562f4
Time: 2018-01-28
Author: kengzwl@gmail.com
File Name: slm_lab/experiment/analysis.py
Class Name:
Method Name: save_experiment_data