Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[FAQ] HW5 (2026): Why does uv.lock show scikit-learn 1.9.1 instead of 1.7.2?

オープン 初心者向け
#518 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
85/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python, scikit-learn
領域
documentation

調査の方向性

FAQの回答では cohorts/2026/homework/05-deployment/pyproject.toml と uv.lock が挙げられているので、まずこれらのファイルで固定されている scikit-learn のバージョンを確認してください。FAQでルートのロックファイルが異なる場合がある理由と、Homework 5 の環境を同期して確認する方法が明確に説明されていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Course

machine-learning-zoomcamp

Question

When answering Question 2 of Homework 5 (2026), why does my uv.lock show scikit-learn == 1.9.1 (or unconstrained dependencies) instead of matching 1.7.2 from the homework options?

Answer

This issue occurs when maintaining a single repository for all ML Zoomcamp assignments and inadvertently inspecting the root pyproject.toml or uv.lock created during Homeworks 1–4, rather than the isolated environment for Module 5.

Homework 5 is designed to be completely self-contained with its own locked dependencies and pinned environment located in cohorts/2026/homework/05-deployment/ (or your local 05-deployment/ directory).

Solution
  1. Navigate directly into the Homework 5 deployment directory:
cd cohorts/2026/homework/05-deployment
  1. Sync the locked environment:
uv sync --locked
  1. Inspect the configuration files inside that directory:
  • In 05-deployment/pyproject.toml:
dependencies = [
    "fastapi==0.119.1",
    "numpy==2.3.3",
    "scikit-learn==1.7.2",
    "uvicorn==0.38.0",
]
  • In 05-deployment/uv.lock:
name = "scikit-learn"
version = "1.7.2"

Ensure your terminal working directory and text editor are scoped to 05-deployment/ when running commands or verifying locked packages for this homework.

Checklist
  • I have searched existing FAQs and this question is not already answered
  • The answer provides accurate, helpful information
  • I have included any relevant code examples or links
主要言語
Python
スター
7
フォーク
20
平均マージ
7日 9時間
マージ済み PR(30日)
8

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DataTalksClub/faq のほかの issue

DataTalksClub/faq の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。