我爱编程

第1天:Python安装使用及机器学习概览

2017-02-21  本文已影响0人  離枝

任务

实践

# 官方demo
from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
from matplotlib import cm

fig = plt.figure()
ax = fig.gca(projection='3d')
X, Y, Z = axes3d.get_test_data(0.05)
ax.plot_surface(X, Y, Z, rstride=8, cstride=8, alpha=0.3)
cset = ax.contourf(X, Y, Z, zdir='z', offset=-100, cmap=cm.coolwarm)
cset = ax.contourf(X, Y, Z, zdir='x', offset=-40, cmap=cm.coolwarm)
cset = ax.contourf(X, Y, Z, zdir='y', offset=40, cmap=cm.coolwarm)

ax.set_xlabel('X')
ax.set_xlim(-40, 40)
ax.set_ylabel('Y')
ax.set_ylim(-40, 40)
ax.set_zlabel('Z')
ax.set_zlim(-100, 100)
plt.show()

阅读

Machine Learning in Action第一章:机器学习基础

Machine learning uses statistics.There are many problems where the solution isn’t deterministic. That is, we don’t know enough about the problem or don’t have enough computing power to properly model the problem. For these problems we need statistics.

By creating a computer program to recognize birds, we’ve replaced an ornithologist with a computer. The ornithologist is a bird expert, so we’ve created an expert system.

features可以有以下几种取值:

For the moment, assume we have all that information. How do we then decide if a bird at our feeder is an Ivory-billed Woodpecker or somethingelse? This task is called classification.

Regression is the prediction of a numeric value.

A training set is the set of training examples we’ll use to train our machine learning algorithms.

The target variable is what we’ll be trying to predict with our machine learning algorithms. In classification the target variable takes on a nominal value, and in the task of regression its value could be continuous.

To test machine learning algorithms what’s usually done is to have a training set of data and a separate dataset, called a test set.

This set of problems is known as supervised because we’re
telling the algorithm what to predict.

In unsupervised learning, there’s no label or target value given for the data. A task where we group similar items together is known as clustering.

资源汇总

python官网
python官网windows版本下载
python环境准备网络博客
codecademy上的Python学习
windows下面安装Python和pip终极教程
Python中的Numpy、SciPy、MatPlotLib安装与配置

上一篇下一篇

猜你喜欢

热点阅读