Pruning1 210805_MachinLearning 2 (Decision Tree) 실습 03_ML_SVM_point 선형으로 분리되는 데이터 실습하기 import sys, os import matplotlib.pyplot as plt import pandas as pd import numpy as np from sklearn import svm from sklearn.model_selection import train_test_split, GridSearchCV Custom Funtion Definition red_RGB = (1, 0, 0) blue_RGB = (0, 0, 1) data_colors = [red_RGB, blue_RGB] def read_points_file(filename): points = [] with open(filename, "r") as f: for poi.. 2021. 8. 5. 이전 1 다음