本文是Google机器学习教程(ML Crash Course with TensorFlow APIs)的学习笔记。教程地址:
https://developers.google.com/machine-learning/crash-course/ml-intro
4. TensorFlow 介绍
TensorFlow是用来建立机器学习模型的计算框架;
可以通过TF提供的高层API快速完成模型开发,或者用相对底层的库来定制自己的特殊需求。
实现算法的基本步骤:
- 初始化模型
- 训练
- 预测
import tensorflow as tf
# Set up a linear classifier.
classifier = tf.estimator.LinearClassifier()
# Train the model on some example data.
classifier.train(input_fn=train_input_fn, steps=2000)
# Use it to predict.
predictions = classifier.predict(input_fn=predict_input_fn)
5.Pandas简介
Pandas是面向列的数据分析API,他能将输入数据组织成列表形式,就像一张数据库的表(DataFrame),有字段(Serie's Name)有一行行数据(Pandas是一列列处理数据)
这里补充一些其他的科学计算有用的库: