1. Učit se
  2. /
  3. Kurzy
  4. /
  5. Reinforcement Learning from Human Feedback (RLHF)

Connected

cvičení

Implementace pipeline aktivního učení

V tomto cvičení nastavíš active learnera s využitím modelu logistické regrese a strategie uncertainty sampling.

Dataset je načtený: X_labeled obsahuje označená trénovací data, X_unlabeled neoznačená trénovací data a y_labeled štítky.

Potřebné knihovny jsou naimportované: ActiveLearner z modAL.models, uncertainty_sampling z modAL.uncertainty a LogisticRegression z sklearn.linear_model.

Pokyny

100 XP
  • Inicializuj objekt ActiveLearner.
  • Jako estimátor použij LogisticRegression.
  • Jako strategii dotazování použij uncertainty sampling.
  • Inicializuj learnera s označenými trénovacími daty.