资源简介

这个一个Python代码,是台湾大学李宏毅老师教授机器学习课程上举例提出的一个宝可梦Pokemon的CP值预测的模型,采用了Regression的方法。

代码片段和文件信息

#!/usr/bin/env python
codingutf-8

# # Welcome to Jupyter!

This repo contains an introduction to [Jupyter]https://jupyter.org) and [IPython]https://ipython.org).

Outline of some basics:

# * [Notebook Basics](../examples/Notebook/Notebook%20Basics.ipynb
# * [IPython - beyond plain python](../examples/IPython%20Kernel/Beyond%20Plain%20Python.ipynb
# * [Markdown Cells](../examples/Notebook/Working%20With%20Markdown%20Cells.ipynb
# * [Rich Display System](../examples/IPython%20Kernel/Rich%20Output.ipynb
# * [Custom Display logic](../examples/IPython%20Kernel/Custom%20Display%20Logic.ipynb
# * [Running a Secure Public Notebook Server](../examples/Notebook/Running%20the%20Notebook%20Server.ipynb#Securing-the-notebook-server
# * [How Jupyter works](../examples/Notebook/Multiple%20Languages%2C%20Frontends.ipynb) to run code in different languages.

You can also get this tutorial and run it on your laptop:

#     git clone https://github.com/ipython/ipython-in-depth

Install IPython and Jupyter:

with [conda]https://www.anaconda.com/download):

#     conda install ipython jupyter

with pip:

#     # first always upgrade pip!
#     pip install --upgrade pip
#     pip install --upgrade ipython jupyter

Start the notebook in the tutorial directory:

#     cd ipython-in-depth
#     jupyter notebook

In[1]:


import numpy as np
import matplotlib.pyplot as plt


#

评论

共有 条评论