Skip to content

Instantly share code, notes, and snippets.

@blackstuend
Last active January 24, 2019 08:08
Show Gist options
  • Save blackstuend/e8968529c15d9cfec303ec6febbca21e to your computer and use it in GitHub Desktop.
Save blackstuend/e8968529c15d9cfec303ec6febbca21e to your computer and use it in GitHub Desktop.

Python problem

numpy

  • numpy.linspace
  • 參考網站
  • 問題:endpoint = False 是怎麼算出差距是0.9的?
>>> import numpy as np
>>> np.linspace(1, 10, 10)
array([  1.,   2.,   3.,   4.,   5.,   6.,   7.,   8.,   9.,  10.])
>>> np.linspace(1, 10, 10, endpoint = False)
array([ 1. ,  1.9,  2.8,  3.7,  4.6,  5.5,  6.4,  7.3,  8.2,  9.1])

機器是怎麼進行學習的

  • Variable變量一開始都先宣告好了,是不是在train時variable會自己變化,只有第一次需要宣告而已?
  • 參考網站
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment