Skip to content

Commit d1ae9e1

Browse files
authored
fix: fix a bug and update the docs (#978)
1 parent 05cf094 commit d1ae9e1

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

docs/scens/data_science.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,32 @@ The Data Science Agent is an agent that can automatically perform feature engine
6969
dotenv set DS_CODER_ON_WHOLE_PIPELINE True
7070
dotenv set DS_CODER_COSTEER_ENV_TYPE docker
7171
72+
- 🚀 **Run the Application**
73+
74+
- You can directly run the application by using the following command:
75+
76+
.. code-block:: sh
77+
78+
rdagent data_science --competition <Competition ID>
79+
80+
- Then, you can run the test set score corresponding to each round of the loop.
81+
82+
.. code-block:: sh
83+
84+
dotenv run -- python rdagent/log/mle_summary.py grade <url_to_log>
85+
86+
Here, <url_to_log> refers to the parent directory of the log folder generated during the run.
87+
88+
- 📥 **Visualize the R&D Process**
89+
90+
- We provide a web UI to visualize the log. You just need to run:
91+
92+
.. code-block:: sh
93+
94+
streamlit run rdagent/log/ui/dsapp.py
95+
96+
- Then you can input the log path and visualize the R&D process.
97+
7298
🔍 MLE-bench Guide: Running ML Engineering via MLE-bench
7399
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
74100

rdagent/log/mle_summary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def save_grade_info(log_trace_path: Path):
4444

4545

4646
def save_all_grade_info(log_folder):
47-
for log_trace_path in log_folder.iterdir():
47+
for log_trace_path in Path(log_folder).iterdir():
4848
if is_valid_session(log_trace_path):
4949
try:
5050
save_grade_info(log_trace_path)

0 commit comments

Comments
 (0)