> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-serverless-sft-revamp.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Experiments 개요

> thoughtful west W&B를 사용하여 기계학습 실험을 추적하세요.

export const TryProductLink = ({url}) => <a href={url} target="_blank" rel="noopener noreferrer" className="github-source-link">
    <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" xmlns="http://www.w3.org/2000/svg">
      <line x1="4" y1="21" x2="4" y2="14"></line>
      <line x1="4" y1="10" x2="4" y2="3"></line>
      <line x1="12" y1="21" x2="12" y2="12"></line>
      <line x1="12" y1="8" x2="12" y2="3"></line>
      <line x1="20" y1="21" x2="20" y2="16"></line>
      <line x1="20" y1="12" x2="20" y2="3"></line>
      <circle cx="4" cy="12" r="2"></circle>
      <circle cx="12" cy="10" r="2"></circle>
      <circle cx="20" cy="14" r="2"></circle>
    </svg>
    Try in W&amp;B
  </a>;

export const ColabLink = ({url}) => <a href={url} target="_blank" rel="noopener noreferrer" className="colab-link">
    <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
      <path d="M14.25.18l.9.2.73.26.59.3.45.32.34.34.25.34.16.33.1.3.04.26.02.2-.01.13V8.5l-.05.63-.13.55-.21.46-.26.38-.3.31-.33.25-.35.19-.35.14-.33.1-.3.07-.26.04-.21.02H8.77l-.69.05-.59.14-.5.22-.41.27-.33.32-.27.35-.2.36-.15.37-.1.35-.07.32-.04.27-.02.21v3.06H3.17l-.21-.03-.28-.07-.32-.12-.35-.18-.36-.26-.36-.36-.35-.46-.32-.59-.28-.73-.21-.88-.14-1.05-.05-1.23.06-1.22.16-1.04.24-.87.32-.71.36-.57.4-.44.42-.33.42-.24.4-.16.36-.1.32-.05.24-.01h.16l.06.01h8.16v-.83H6.18l-.01-2.75-.02-.37.05-.34.11-.31.17-.28.25-.26.31-.23.38-.2.44-.18.51-.15.58-.12.64-.1.71-.06.77-.04.84-.02 1.27.05zm-6.3 1.98l-.23.33-.08.41.08.41.23.34.33.22.41.09.41-.09.33-.22.23-.34.08-.41-.08-.41-.23-.33-.33-.22-.41-.09-.41.09zm13.09 3.95l.28.06.32.12.35.18.36.27.36.35.35.47.32.59.28.73.21.88.14 1.04.05 1.23-.06 1.23-.16 1.04-.24.86-.32.71-.36.57-.4.45-.42.33-.42.24-.4.16-.36.09-.32.05-.24.02-.16-.01h-8.22v.82h5.84l.01 2.76.02.36-.05.34-.11.31-.17.29-.25.25-.31.24-.38.2-.44.17-.51.15-.58.13-.64.09-.71.07-.77.04-.84.01-1.27-.04-1.07-.14-.9-.2-.73-.25-.59-.3-.45-.33-.34-.34-.25-.34-.16-.33-.1-.3-.04-.25-.02-.2.01-.13v-5.34l.05-.64.13-.54.21-.46.26-.38.3-.32.33-.24.35-.2.35-.14.33-.1.3-.06.26-.04.21-.02.13-.01h5.84l.69-.05.59-.14.5-.21.41-.28.33-.32.27-.35.2-.36.15-.36.1-.35.07-.32.04-.28.02-.21V6.07h2.09l.14.01.21.03zm-6.47 14.25l-.23.33-.08.41.08.41.23.33.33.23.41.08.41-.08.33-.23.23-.33.08-.41-.08-.41-.23-.33-.33-.23-.41-.08-.41.08z" />
    </svg>
    Try in Colab
  </a>;

<CardGroup cols={4}>
  <ColabLink url="https://colab.research.google.com/github/wandb/examples/blob/master/colabs/intro/Intro_to_Weights_%26_Biases.ipynb" />

  <TryProductLink url="https://wandb.ai/stacey/deep-drive/workspace?workspace=user-lavanyashukla" />
</CardGroup>

몇 줄의 코드만으로 기계학습 실험을 트래킹하세요. 그런 다음 [대화형 대시보드](/models/track/workspaces/)에서 결과를 검토하거나, [Public API](/models/ref/python/public-api/)를 사용하여 프로그래밍 방식으로 데이터를 Python으로 내보낼 수 있습니다.

[Keras](/models/integrations/keras) 또는 [Scikit](/models/integrations/scikit)과 같은 인기 있는 프레임워크를 사용하는 경우 W\&B Integrations를 활용해 보세요. 전체 인테그레이션 목록과 코드에 W\&B를 추가하는 방법은 [인테그레이션 가이드](/models/integrations)를 참조하세요.

<Frame>
  <img src="https://mintcdn.com/wb-21fd5541-serverless-sft-revamp/TaOfeZ6YiMh7Ljor/images/experiments/experiments_landing_page.png?fit=max&auto=format&n=TaOfeZ6YiMh7Ljor&q=85&s=1b375c7aea57508d287c4f6f7ce23699" alt="Experiments dashboard" width="4354" height="2978" data-path="images/experiments/experiments_landing_page.png" />
</Frame>

위 이미지는 여러 [runs](/models/runs/)의 메트릭을 보고 비교할 수 있는 대시보드 예시를 보여줍니다.

## 작동 방식

몇 줄의 코드만으로 기계학습 실험을 트래킹할 수 있습니다:

1. [W\&B Run](/models/runs/)을 생성합니다.
2. 학습률이나 모델 유형과 같은 하이퍼파라미터 사전을 설정([`wandb.Run.config`](/models/track/config/))에 저장합니다.
3. 트레이닝 루프에서 정확도와 손실 같은 메트릭([`wandb.Run.log()`](/models/track/log/))을 시간에 따라 로그합니다.
4. 모델 가중치나 예측값 테이블과 같은 run의 결과물을 저장합니다.

다음 코드는 일반적인 W\&B 실험 트래킹 워크플로우를 보여줍니다:

```python theme={null}
# run을 시작합니다.
#
# 이 블록이 종료되면 로그된 데이터의 업로드가 완료될 때까지 기다립니다.
# 예외가 발생하면 run은 실패로 표시됩니다.
with wandb.init(entity="", project="my-project-name") as run:
  # 모델 입력값과 하이퍼파라미터를 저장합니다.
  run.config.learning_rate = 0.01

  # 실험 코드를 실행합니다.
  for epoch in range(num_epochs):
    # 트레이닝 수행...

    # 모델 성능을 시각화하기 위해 시간에 따른 메트릭을 로그합니다.
    run.log({"loss": loss})

  # 모델 결과물을 Artifacts로 업로드합니다.
  run.log_artifact(model)
```

## 시작하기

사용자의 유스 케이스에 따라 W\&B Experiments를 시작하기 위한 다음 리소스들을 살펴보세요:

* 데이터셋 아티팩트를 생성, 트래킹 및 사용하는 데 필요한 W\&B Python SDK 코맨드에 대한 단계별 개요는 [W\&B 퀵스타트](/models/quickstart/)를 읽어보세요.
* 이 챕터에서 다음 방법들을 알아보세요:
  * 실험 생성하기
  * 실험 설정하기
  * 실험 데이터 로그하기
  * 실험 결과 보기
* [W\&B API 레퍼런스 가이드](/models/ref/python/) 내의 [W\&B Python 라이브러리](/models/ref/python/)를 살펴보세요.

## 모범 사례 및 팁

실험 및 로그에 대한 모범 사례와 팁은 [모범 사례: 실험 및 로그](https://wandb.ai/wandb/pytorch-lightning-e2e/reports/W-B-Best-Practices-Guide--VmlldzozNTU1ODY1#w\&b-experiments-and-logging)를 참조하세요.
