가장 쉬운 LightGBM 모델 [분류, 회귀]
By Imagination is more important than knowledge (지식보다 상상) | 2020년 1월 6일 |
가장 쉬운 LightGBM 모델 [분류, 회귀]https://lightgbm.readthedocs.io/en/latest/https://github.com/microsoft/LightGBMhttps://www.programcreek.com/python/example/88792/lightgbm.Dataset --------------------------------------------------------------------------------------------------------------------- import lightgbm as lgb from bayes_opt import BayesianOptimization from sklearn.model_selection import cr
scikit-learn, machine learning in python
By Imagination is more important than knowledge (지식보다 상상) | 2019년 5월 3일 |
scikit-learnhttps://en.wikipedia.org/wiki/Scikit-learnhttps://scikit-learn.org/stable/ scikit-learn은 파이썬 라이버러리 모듈이다. 특히, 기계학습에 관한 포괄적인 기능을 제공한다. 파이썬을 활용한 기계학습은 사실상 scikit-learn 라이버러리를 활용하는 것을 의미한다.현실적으로 그렇다. 현재 이보다 더 범용적인 것이 없다. 기계학습을 넘어 딮러닝으로 확장이 가능하다. 다른 라이버러리들도 scikit-learn 라이버러리를 이용하고 참고 하고 있다. scikit-learnMachine Learning in PythonSimple and efficient tools for data mining and data analysi
가장 쉬운 국소 최소화 [python]
By Imagination is more important than knowledge (지식보다 상상) | 2019년 11월 26일 |
가장 쉬운 국소 최소화 [python] 목적함수의 일차 도함수를 알수 있는 경우, 해석적으로 알 수 있는 경우, 국소 최소화는 아주 빨리 마무리 될 수 있다.일차 도함수가 알려지지 않은 경우, 별도의 알고리듬을 활용한다. import numpy as npfrom scipy.optimize import minimizedef rosen(x): """The Rosenbrock function""" return sum(100.0*(x[1:]-x[:-1]**2.0)**2.0 + (1-x[:-1])**2.0)def rosen_der(x): xm = x[1:-1] xm_m1 = x[:-2] xm_p1 = x[2:] der = np.zeros_like(x) der[1:-1
[Ubuntu] docker 이미지 build 시 DNS resolve 문제
By 지훈현서 | 2020년 11월 29일 |
Ubuntu 18.04 Desktop 버전에서 docker 를 설치하고,배치 작업으로 apt-get install 작업을 하려고 하는데, 위와 같이 "Temporary failure resolving 'deb.debian.org'" 와 같은 오류가 나옵니다.분명히 우분투 안에서는 아무런 이상이 없습니다. 구글링을 해 보니, $ docker run busybox nslookup google.comUnable to find image 'busybox:latest' locallylatest: Pulling from library/busybox5f5dd3e95e9f: Pull completeDigest: sha256:9f1c79411e054199210b4d489ae600a061595967adb643cd923f