标签:archive bsp col ssi one csv python import 数据
会使用的包
import matplotlib.pyplot as plt import pandas as pd import numpy as np
获取数据
方式一:
df = pd.read_csv(‘http://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data‘, header=None)
df.columns = [‘d1‘, ‘d2‘, ‘d3‘, ‘d4‘, ‘d5‘] X = df.iloc[:, [0, 3]].values
python 10大算法之二 LogisticRegression 笔记
标签:archive bsp col ssi one csv python import 数据
原文地址:http://www.cnblogs.com/haoxr/p/7722809.html