As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
| # replace matplotlib.pyplot.imshow(img) | |
| import numpy as np | |
| from bokeh.plotting import figure, show, output_notebook | |
| output_notebook() | |
| N = 500 | |
| x = np.linspace(0, 10, N) |
ํ์ฌ ๋ฒ์ (0.0.491) ์์๋ ์ฝ๋๊ฐ ์ ๋ฆฌ๋์ง ์์์ init ํจ์์ argument ์ด๋ฆ์ด ๋ฐ๋ ์ ์์ต๋๋ค.
์ด ํํ ๋ฆฌ์ผ์ github.com/lovit/textmining-dataset ์ ๋ฐ์ดํฐ์ ์ ์ด์ฉํ ์์์ ๋๋ค.
import soynlp
from soynlp.utils import DoublespaceLineCorpus
from soynlp.noun import LRNounExtractor_v2
from lovit_textmining_dataset.navernews_10days import get_news_pathsfrom sklearn.datasets import make_classification
X, y = make_classification(
n_samples=50000, n_features=200, n_informative=5,
n_redundant=0, n_clusters_per_class=10, weights=[0.80],
flip_y=0.05, class_sep=3.5, random_state=42
)
# standard normalization: (x - mean) / std| package | note |
|---|---|
| transformers | Transformer ๊ธฐ๋ฐ (masked) language models ์๊ณ ๋ฆฌ์ฆ, ๊ธฐํ์ต๋ ๋ชจ๋ธ์ ์ ๊ณต |
| tokenizers | transformers ์์ ์ฌ์ฉํ ์ ์๋ ํ ํฌ๋์ด์ ๋ค์ ํ์ต/์ฌ์ฉํ ์ ์๋ ๊ธฐ๋ฅ ์ ๊ณต. transformers ์ ๋ถ๋ฆฌ๋ ํจํค์ง๋ก ์ ๊ณต |
| nlp | ๋ฐ์ดํฐ์ ๋ฐ ํ๊ฐ ์ฒ๋ (evaluation metrics) ์ ์ ๊ณต |
import tokenizers
tokenizers.__version__| <!doctype html> | |
| <html lang="ko"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>๋ฒํ ์ง์ ๋์๋ณด๋ (์คํ๋ผ์ธ ์์นด์ด๋ธ)</title> | |
| <script type="module" crossorigin>(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))n(u);new MutationObserver(u=>{for(const l of u)if(l.type==="childList")for(const f of l.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&n(f)}).observe(document,{childList:!0,subtree:!0});function r(u){const l={};return u.integrity&&(l.integrity=u.integrity),u.referrerPolicy&&(l.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?l.credentials="include":u.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function n(u){if(u.ep)return;u.ep=!0;const l=r(u);fetch(u.href,l)}})();var Zc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?glo |