Skip to content
Merged
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
18 changes: 0 additions & 18 deletions day5/演習2/black_check.py

This file was deleted.

6 changes: 3 additions & 3 deletions day5/演習2/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def load_titanic_data(path=None):
return pd.read_csv(path)
else:
# ローカルのファイル
local_path = "data/Titanic.csv"
local_path = "/Users/yutsudoryo/Documents/AIE/lecture-ai-engineering/day5/演習2/data/Titanic.csv"
if os.path.exists(local_path):
return pd.read_csv(local_path)

Expand Down Expand Up @@ -256,7 +256,7 @@ def test_model_performance():

# データバリデーション
success, results = DataValidator.validate_titanic_data(X)
print(f"データ検証結果: {'成功' if success else '失敗'}")
print(f"データ検証結果: {'成功' if success else '失敗'}")
for result in results:
# "success": falseの場合はエラーメッセージを表示
if not result["success"]:
Expand Down Expand Up @@ -285,4 +285,4 @@ def test_model_performance():

# ベースラインとの比較
baseline_ok = ModelTester.compare_with_baseline(metrics)
print(f"ベースライン比較: {'合格' if baseline_ok else '不合格'}")
print(f"ベースライン比較: {'合格' if baseline_ok else '不合格'}")
Loading