546385cace90acd7e5c6c262118877b7d56db9ed,slm_lab/experiment/analysis.py,,save_session_data,#Any#Any#Any#Any#Any#,419
Before Change
def save_session_data(spec, session_df, session_metrics, session_fig, df_mode="eval"):
"""Save the session data: session_df, session_metrics, session_graph."""
prepath = util.get_prepath(spec, unit="session")
prefix = "train" if df_mode == "train" else ""
if "retro_analyze" not in os.environ["PREPATH"]:
util.write(session_df, f"{prepath}_{prefix}session_df.csv")
if df_mode == "eval":
After Change
def save_session_data(spec, session_df, session_metrics, session_fig, df_mode="eval"):
"""Save the session data: session_df, session_metrics, session_graph."""
prepath = spec["meta"]["prepath"]
prefix = "train" if df_mode == "train" else ""
if "retro_analyze" not in os.environ["PREPATH"]:
util.write(session_df, f"{prepath}_{prefix}session_df.csv")
if df_mode == "eval":
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: kengz/SLM-Lab
Commit Name: 546385cace90acd7e5c6c262118877b7d56db9ed
Time: 2019-05-23
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: 546385cace90acd7e5c6c262118877b7d56db9ed
Time: 2019-05-23
Author: kengzwl@gmail.com
File Name: slm_lab/experiment/analysis.py
Class Name:
Method Name: save_experiment_data
Project Name: kengz/SLM-Lab
Commit Name: 546385cace90acd7e5c6c262118877b7d56db9ed
Time: 2019-05-23
Author: kengzwl@gmail.com
File Name: slm_lab/experiment/analysis.py
Class Name:
Method Name: save_trial_data