python:random
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
다음 판 | 이전 판 | ||
python:random [2018/11/20 13:14] – 만듦 rex8312 | python:random [2024/03/23 02:42] (현재) – 바깥 편집 127.0.0.1 | ||
---|---|---|---|
줄 7: | 줄 7: | ||
def log_uniform(low=0, | def log_uniform(low=0, | ||
return np.exp(np.random.uniform(np.log(low), | return np.exp(np.random.uniform(np.log(low), | ||
- | + | ||
- | | + | |
xs = np.log(log_uniform(0.04, | xs = np.log(log_uniform(0.04, | ||
import matplotlib.pyplot as plt | import matplotlib.pyplot as plt | ||
plt.hist(xs, | plt.hist(xs, | ||
</ | </ |
python/random.1542719685.txt.gz · 마지막으로 수정됨: (바깥 편집)