본문 바로가기

전체 글

(18)
5. 딥러닝(Keras) Keras는 머신러닝 라이브러리 Theano와 TensorFlow를 래핑한 라이브러리이다. 1. 데이터셋 만들기 import tensorflow as tf import pandas as pd, numpy as np from tensorflow import keras #BMI 데이터를 읽기 df = pd.read_csv("colors.csv", names = ["llc","lleb","lle"....,"colors"]) #정규화 #레이블 dataset = df.values X = dataset[:,0:18].astype(float) Y_obj = dataset[:,18] #마지막 19번째 칼럼 "colors" #레이블 변환 e = LabelEncoder() e.fit(Y_obj) Y = e.transfor..
너비우선탐색문제 www.codingame.com/ide/puzzle/skynet-revolution-episode-1 Coding Games and Programming Challenges to Code Better CodinGame is a challenge-based training platform for programmers where you can play with the hottest programming topics. Solve games, code AI bots, learn from your peers, have fun. www.codingame.com 주어진 그래프에서 Agent가 출구로 나가지 못하도록 노드 사이의 간선을 끊는 것이 이 게임의 목적이다. 즉, Agent에서 출구까지의 경로를 찾고 마지막 ..
4-2. 머신러닝(SVM, Cross Validation, GridSearch) SVM은 머신러닝 방법 중 하나이다. 아래 사이트의 학습 알고리즘들을 제공한다. scikit-learn.org/stable/auto_examples/classification/plot_classifier_comparison.html Classifier comparison — scikit-learn 0.23.2 documentation Note Click here to download the full example code or to run this example in your browser via Binder Classifier comparison A comparison of a several classifiers in scikit-learn on synthetic datasets. The point o..