Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:

- name: Lint with flake8
run: |

flake8 day5/演習2 --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 day5/演習2 --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics

Expand All @@ -41,4 +42,4 @@ jobs:
# pytest day5/演習2/tests/test_model.py -v
- name: Run pytest on main.py
run: |
pytest day5/演習2/main.py -v
pytest day5/演習2/main.py -v
5 changes: 4 additions & 1 deletion day5/演習2/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class DataLoader:
"""データロードを行うクラス"""

@staticmethod
def load_titanic_data(path=None):
def load_titanic_data(path='/Users/yutsudoryo/Documents/AIE/lecture-ai-engineering/day5/演習2/data/Titanic.csv'):
"""Titanicデータセットを読み込む"""
if path:
return pd.read_csv(path)
Expand Down Expand Up @@ -285,3 +285,6 @@ def test_model_performance():
# ベースラインとの比較
baseline_ok = ModelTester.compare_with_baseline(metrics)
print(f"ベースライン比較: {'合格' if baseline_ok else '不合格'}")



Loading