Você está na página 1de 1

Tens

orFl
owCheatSheet

About id(object)
Tens or Flow Returntheidenti
tyofanobjec
t.Thi
sis
Tens orFl ow i sanopens ources of t
war e guaranteedtobeuni queamong
l
ibr aryfornumer icalc omput ationus i
ng si
mul t
aneouslyexisti
ngobj
ect
s.
dat aow gr aphs .Tens or Flow was import __builtin__
originallydevel opedf ort hepur pos esof dir(__builtin__)
conduc tingmac hinel earni nganddeep Otherbuilt
-i
nfunc t
ions
neur alnet wor ksr esear ch,butt hes ystem
i
sgener alenought obeappl i
cablei na Tens
orFl
ow
widevar ietyofot herdomai nsaswel l
. Mai ncl as ses
Skow tf.Graph()
ScikitFlow pr ovidesas etofhi ghl evel tf.Operation()
modelc l
as sest hatyouc anus et oeas il
y tf.Tensor()
i
nt egratewi thyourexi stingSc ikit
-learn tf.Session()
pipelinec ode.Sc i
kitFlow i sas impl ied Someus efulfunct i
ons
i
nt erfacef orTens orFlow,t ogetpeopl e tf.get_default_session()
startedonpr edi ctiveanal yti
csanddat a tf.get_default_graph()
mi ning.Sc i
kitFlow hasbeenmer gedi nto tf.reset_default_graph()
Tens orFl ow s i
nc ever s
ion0. 8andnow ops.reset_default_graph()
calledTens or Flow Lear n. tf.device(/cpu:0)
Ker as tf.name_scope(value)
Ker asisami nimal ist,highl ymodul ar tf.convert_to_tensor(value)
neur alnet wor ksl i
br ary,wr itt
eni nPyt hon Tens or Flow Opt imi zers
andc apabl eofr unni ngont opofei ther GradientDescentOptimizer
Tens orFl ow orTheano AdadeltaOptimizer
AdagradOptimizer
I
nst
all
ati
on MomentumOptimizer
AdamOptimizer
How t oi nstallnew packageinPython:
FtrlOptimizer
pip install <package-name>
RMSPropOptimizer
Exampl e:pip install requests
Reduct ion
How t oi nstalltensorow?
reduce_sum
device=cpu/ gpu
reduce_prod
python_ verson=cp27/
i cp34
reduce_min
sudo pip install
reduce_max
https://storage.googleapis.com/
reduce_mean
tensorflow/linux/$device/tensorflow-
reduce_all
0.8.0-$python_version-none-linux_x86
reduce_any
_64.whl
accumulate_n
How t oi nstallSkow
Act ivat ionf unct i
ons
pip install sklearn
tf.nn?
How t oi nstallKeras
relu
pip install keras
relu6
update~/ .
keras/keras
.j
son-repl
ace
elu
t
heanoby tens or
ow
sof t
pl us
sof t
s i
gn
Hel
per
s dr opout
Pythonhel per bias _add
Importantf unct
ions sigmoi d
type(object) tanh
Getobjecttype sigmoi d_ cr
os s
_ent r
opy_ wit
h_logit
s
help(object) sof t
max
Gethelpf orobject(
li
stofavail
abl
e l
og_ s oftmax
methods ,att
ribut
es,si
gnaturesands
oon) sof t
max_ cross_entropy_wit
h_logit
s
dir(object) spar se_ softmax_ cross_entr
opy_ wit
h_l
ogi
ts
Getli
stofobjectatt
ribut
es wei ght ed_ cross_entropy_wit
h_ l
ogit
s
(el
ds,funct
ions) etc .
str(object)
Transf
orm anobj
ectt
ost
ring Skow
Mainclasses
object? Tens
orFlowCl
assi
er
Showsdocument
ati
onsaboutt
heobj
ect Tens
orFlowRegr
essor
globals() Tens
orFlowDNNClassier
Returnthedi
cti
onarycontai
ningt
he Tens
orFlowDNNRegr essor
currentsc
ope'
sglobalvar
iabl
es. Tens
orFlowLi
nearCl
as si
er
locals() Tens
orFlowLi
nearRegres s
or
Updateandr eturnadict
ionarycont
aini
ng Tens
orFlowRNNClassier
thecurrents
c ope'
sloc
alvariabl
es. Tens
orFlowRNNRegres sor

Ver
sion1.
09 Gett
hel
ates
tver
sionat
:

Você também pode gostar