Tutorial Notebook


Numpy, Pandas Python Package

import numpy as np
import pandas as pd

import os
for dirname, _, filenames in os.walk('/Kaggle/input'):
    for filename in filenames:
        print(os.path.join(dirname,filename))

WANDB (Weights & Biased)

초기 설정

  1. WANDB 홈페이지에 접속해 회원가입

  2. WANDB Library 설치

    pip install wandb
    
  3. WANDB 로그인

    wandb login
    
    # 결과:
    wandb: You can find your API key in your browser here: <https://app.wandb.ai/authorize>
    wandb: Paste an API key from your profile and hit enter:
    

    Untitled

os.environ[”WANDB_API_KEY”] 입력

os.environ["WANDB_API_KEY"] = "<WANDB API KEY 입력>" ## to silence warning

transformers, matplotlib, tensorflow

transformers 패키지 설치

pip install transformers

Import

from transformers import BertTokenizer, TFBertModel
import matplotlib.pyplot as plt
import tensorflow as tf