Cov txheej txheem:

Dab tsi yog cov kauj ruam hauv TensorFlow?
Dab tsi yog cov kauj ruam hauv TensorFlow?

Video: Dab tsi yog cov kauj ruam hauv TensorFlow?

Video: Dab tsi yog cov kauj ruam hauv TensorFlow?
Video: Lis Yaj Pov : kuv Yeej Tsis Ruam 2024, Hlis ntuj nqeg
Anonim

Cov kauj ruam: Hauv tensorflow ib cov kauj ruam yog suav tias yog tus naj npawb ntawm epochs multiplied los ntawm piv txwv muab faib los ntawm batch loj. cov kauj ruam = (epoch * piv txwv)/batch loj Piv txwv li epoch = 100, piv txwv = 1000 thiab batch_size = 1000 cov kauj ruam = 100.

Ib yam li ntawd, nws tau nug, qhov txawv ntawm cov kauj ruam thiab Max_steps yog dab tsi?

cov kauj ruam : Tus naj npawb ntawm cov kauj ruam rau qhov kev cob qhia tus qauv. Yog tsis muaj, cob qhia mus ib txhis lossis cob qhia kom txog thaum input_fn generates tf. max_steps : Tus naj npawb ntawm tag nrho cov kauj ruam rau qhov kev cob qhia qauv. Yog tsis muaj, cob qhia mus ib txhis lossis cob qhia kom txog thaum input_fn generates tf.

Koj yuav suav cov kauj ruam Epoch li cas? Kev lig kev cai, lub cov kauj ruam ib ntus yog xam raws li train_length // batch_size, vim qhov no yuav siv tag nrho cov ntaub ntawv cov ntsiab lus, ib batch loj tsim nyog ib zaug. Yog tias koj augmenting cov ntaub ntawv, ces koj tuaj yeem ncab qhov no tad (qee zaum kuv muab qhov ua haujlwm saum toj no los ntawm 2 lossis 3 thiab lwm yam.

Yog li ntawd, Num_epochs yog dab tsi?

num_epochs - Tus lej siab tshaj plaws ntawm lub sijhawm qhov kev zov me nyuam tuaj yeem rov ua dua tag nrho cov ntaub ntawv hauv ib lub tsheb ciav hlau (). Qhov kev sib cav no txhais tau hais tias qhov ntau tshaj ntawm cov kauj ruam (batch) tuaj yeem ua tiav hauv LinearRegressor() cov khoom siv lub neej. Wb qhov no txhais li cas.

Kuv yuav tsim ib tus qauv TensorFlow li cas?

Tsim koj tus qauv

  1. Import lub Fashion MNIST dataset.
  2. Qhia thiab ntsuas koj tus qauv.
  3. Ntxiv TensorFlow Muab faib URI raws li pob khoom:
  4. Nruab TensorFlow Kev Pabcuam.
  5. Pib khiav TensorFlow Serving.
  6. Ua REST thov.

Pom zoo: