13涓猅ensorflow瀹炶返妗堜緥锛屾暀浣犲叆闂ㄥ埌杩涢樁

Posted 澶ф暟鎹寲鎺楧T鏁版嵁鍒嗘瀽

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了13涓猅ensorflow瀹炶返妗堜緥锛屾暀浣犲叆闂ㄥ埌杩涢樁相关的知识,希望对你有一定的参考价值。

 鍚慉I杞瀷鐨勭▼搴忓憳閮藉叧娉ㄤ簡杩欎釜鍙?/span>馃憞馃憞馃憞



鍏充簬娣卞害瀛︿範锛屾瘡涓汉閮芥湁鑷繁鐨勭湅娉曘€傛湁浜鸿灏辨槸鐐间腹锛屽緱涓噯纭巼鍙洖鐜囦粈涔堢殑锛屾嬁鍒板疄闄呬腑锛岄棶闂负浠€涔堬紝閮界瓟涓嶄笂鏉ャ€傚悇绉嶈繛浠g爜閮芥病鍐欒繃鐨勪汉锛屼篃绾风悍琛ㄧず杩欎笢瑗垮氨鏄皬瀛╁爢绉湪锛岀劧鍚庢暣涓ぇ鍔熻€楃殑鏈嶅姟鍣ㄨ窇涓婂嚑澶╋紝璋冭皟鍙傛暟銆傜劧鍚庢瘡涓疄楠屽鎷涚敓锛岄兘璇磋嚜宸辨槸鍋氫粈涔堟繁搴﹀涔狅紝鏈哄櫒 瀛︿範锛屽ぇ鏁版嵁鍒嗘瀽鐨勶紝浠ユ鏉ュ惛寮曞鐢熴€傚彲鏄彲鏄紝浠栦滑瀹為獙瀹ゅ緢鍙兘杩炰竴鍧?GPU 閮芥病鏈夈€?/p>

灏忔椂鍊欙紝鎴戞妸涓や釜5鍙风數姹犺繛鍦ㄤ竴鍧楋紝鐒跺悗鐢ㄥ绾挎妸姝h礋鏋佽繛璧锋潵锛屽湪姝f瀬鐨勫湴鏂规帴涓皬鐏场锛岀劧鍚庣伅娉″氨浜簡锛岃繖鏃跺€欐垜灏变細楂樺叴鐨勪笉琛屻€傚閲岀殑鐢甸鎵囧潖浜嗭紝鎶婇鎵囨媶寮€鍚庡彂鐜伴噷杈圭殑绾挎柇浜嗭紝鎺ヨ捣鏉ュ悗鍙堝彲浠ュ伐浣滀簡锛屽濡堣寰楁垜寰堜簡涓嶈捣銆傚叾瀹炴垜灏辨槸鎵惧埌绾挎柇浜嗘帴璧锋潵鑰屽凡銆傛湁鏃跺€欙紝鍔ㄦ墜瀹炵幇鏄竴浠跺緢鏈夎叮鐨勶紝涔熷緢鏈夋垚灏辨劅鐨勪簨銆?/span>娣卞害瀛︿範锛屾垜鎯冲氨鏄繖鏍枫€傛垜閯欒閭d簺杩炰唬鐮侀兘娌″啓杩囷紝涓€鐐圭粏鑺傞兘涓嶆噦鐨勪汉鍦ㄩ偅閲岀瀻鍚广€傚湪浼犵粺鐨勫绉戜腑锛屾瘮濡傛暟瀛︼紝鐗╃悊杩欎簺鍩虹瀛︾鎴栬€呭缓绛戯紝鍦熸湪杩欐牱鐨勫熀纭€搴旂敤涓紝涔熻涓€涓澹敓锛屽崥澹敓鑻﹁嫤鐮旂┒寰堜箙閮芥瘮涓嶄笂浠栦滑鐨勫甯堛€備絾鏄湪娣卞害瀛︿範涓紝寰堝鎯呭喌涓嬶紝瀛︾敓瑕佹瘮瀵煎笀浼氬緱鏇村锛岀壒鍒槸鏁村ぉ灏辨兂鐫€鎷夐」鐩禋閽憋紝璁烘枃閮芥病鐪嬭繃锛屾瘡澶╁氨鐪嬮偅涔堝嚑 kb 鎺ㄩ€佺殑涓€浜涜€佸笀銆?/p>

瀵逛簬鍍忔垜杩欐牱鐨勬福娓f潵璇达紝娣卞害瀛︿範鐨勪箰瓒d笉鍦ㄤ簬鎺ㄥ閭d箞鍑犱釜鍏紡锛岃€屽湪浜庝綘鍦ㄥ仛鎯呮劅鍒嗘瀽鐨勬椂鍊欙紝RMSE灏忎簡锛屽噯纭巼楂樹簡锛涗綘鍦ㄥ仛鏈哄櫒缈昏瘧鐨勬椂鍊欙紝鑻辨枃鍙ュ瓙鍑嗙‘鍦板彉鎴愪簡鍦板湴閬撻亾鐨勪腑鏂囷紱鍦ㄤ綘鍋氳浜烘娴嬬殑鏃跺€欙紝閭d釜鏂规鍑嗙‘鏃犺鐨勮窡鐫€浜虹Щ鍔ㄣ€傘€傘€傛墍浠?talk is cheap, show me your code.


Tensorflow-Tutorial

椤圭洰浠g爜锛?nbsp;https://github.com/yongyehuang/Tensorflow-Tutorial

鎴戞槸浠?鏈堜唤鎵嶅紑濮嬪涔?Tensorflow 鐨勶紝鍥犱负鍘诲勾骞村簳鑰佸笀鎵嶇粓浜庤偗涔颁竴鍙版湇鍔″櫒銆傛€讳綋鏉ヨ锛孴ensorFlow鏇存柊鐨勯€熷害杩樻槸姣旇緝蹇殑锛屼絾鏄敤鐨勬槸 1.0 鐗堟湰锛?涓湀杩囧幓锛屽嚭浜?.1, 1.2, 鐜板湪鏄?1.3 銆?鑰屼笖姣忎釜鐗堟湰閮芥湁涓嶅皯鏇存柊銆傛瘮杈冨潙鐨勪竴鐐规槸瀹樻柟鏂囨。寰堜笉榻愬叏锛屾湁浜涗笢瑗胯櫧鐒惰兘澶熷疄鐜板緱姣旇緝濂斤紝浣嗘槸鏂囨。閲岃竟涓€涓瓧閮戒笉鎻愶紝鍙兘鑷繁鍝瀻鐒跺悗缁х画瀵绘壘銆備笅闈㈡槸鎴戝涔犺繃绋嬩腑鍋氱殑涓€浜涚瑪璁般€傚墠闈㈤儴鍒嗕富瑕佸弬鑰冨畼鏂规暀绋嬶紝鍚庨潰鍒欐槸鑷繁鍦ㄩ」鐩腑鐨勪竴浜涙€荤粨銆傚洜涓烘椂闂磋法搴﹁緝澶э紝浠g爜涓瓨鍦ㄤ笉灏戠増鏈吋瀹圭殑闂锛屽彲鑳戒細鍑洪敊锛屼絾鏄€濊矾杩樻槸娌¢棶棰樼殑~

  • TensorFlow鍏ラ棬锛堜竴锛夊熀鏈敤娉?nbsp;
    浠嬬粛 TensorFlow 鍙橀噺瀹氫箟锛屽姞鍑忔搷浣滅瓑鍩烘湰鐭ヨ瘑銆傜悊瑙ensorflow鐨勫伐浣滄満鍒讹細棣栧厛鍒涘缓涓€涓釜鑺傜偣锛岃繖浜涜妭鐐规瀯鎴愪互鍥剧殑缁撴瀯鐩镐簰浣滅敤锛涘缓绔嬪ソ鐨勨€滃浘鈥濆氨鍍忎竴涓┖澹筹紝浣犻渶瑕佸惎鍔ㄤ細璇濓紙Session锛夋墠鑳借繍琛岃繖浜涜妭鐐癸紝杩欏氨鍍忓線杩欎釜绌哄3閲岃竟娉ㄥ叆琛€娑诧紝璁╁畠浠惊鐜椿鍔ㄨ捣鏉ャ€傚彲鐩存帴鍙傝€冨畼鏂规暀绋嬨€?/p>

  • TensorFlow鍏ラ棬锛堜簩锛夌畝鍗曞墠棣堢綉缁滃疄鐜?mnist 鍒嗙被 
    浠庣涓€娆℃帴瑙︽繁搴﹀涔犲紑濮嬶紝浣犲氨搴旇鐭ラ亾鎰熺煡鍣ㄨ繖涓笢瑗匡紝璇寸櫧浜嗗氨鏄釜绾挎€у姞鏉冿紝涔熷氨鏄眰鐗瑰緛鍚戦噺鍜屾潈閲嶅悜閲忕殑鐐圭Н銆備粠缂栫▼鐨勮搴︽潵璇村氨鏄袱涓悜閲忓搴斾綅鐩镐箻锛屾渶鍚庢眰鍜屻€傚叏杩炴帴缃戠粶灏辨槸鏈変竴涓釜杩欐牱鐨勬劅鐭ュ櫒鎷兼垚鐨勩€?nbsp;
    鍦ㄨ繖涓緥瀛愪腑璁茬殑鏄畝鍗曠殑鍏ㄨ繛鎺ョ綉缁滃疄鐜版墜鍐欏瓧绗﹀垎绫伙紝杩欎釜渚嬪瓙铏界劧绠€鍗曪紝浣嗘槸瀹為檯涓婂悇绉嶅垎绫讳换鍔′篃灏辫繖鏍枫€備竴鑸潵璇达紝閮芥槸鍖呮嫭涓変釜閮ㄥ垎锛?span class="mq-22">1.鎼缓缃戠粶锛?2. 璁$畻鎹熷け鍜屾搴︼紝 3. 璁剧疆浼樺寲鍣ㄩ€夋嫨鍚堥€傜殑瀛︿範鐜囨洿鏂版潈鍊笺€?/span> 鍙洿鎺ュ弬鑰冨畼鏂规暀绋嬨€?/p>

  • TensorFlow鍏ラ棬锛堜笁锛夊灞?CNNs 瀹炵幇 mnist鍒嗙被 
    鍦ㄥ墠闈㈢畝鍗曞叏杩炴帴缃戠粶鐨勫熀纭€涓婏紝鏈緥瀛愪富瑕佷粙缁嶆€庝箞鐢═ensorFlow鏉ュ啓涓€涓嵎绉眰銆傜劧鍚庤绠楁崯澶憋紝姊害锛屼紭鍖栧櫒鍜屽墠闈㈢畝鍗曞叏杩炴帴缃戠粶娌℃湁浠€涔堝尯鍒€傚彲鐩存帴鍙傝€冨畼鏂规暀绋嬨€傛澶栵紝鎴戞坊鍔犱簡鏌ョ湅缃戠粶涓棿灞傛潈鍊肩殑浠g爜銆?/p>

  • TensorFlow鍏ラ棬锛堝洓锛?name / variable_scope 鐨勪娇鐢?nbsp;
    涓€鑸潵璇达紝绁炵粡缃戠粶鐨勫弬鏁伴兘鏄潪甯稿鐨勶紝杩欎箞绻佸鐨勭粨鏋勶紝鍙傛暟锛屼唬鐮佸啓璧锋潵涔卞緱璺熼夯鍥竴鏍枫€?tf.name_scope 鍜?tf.variable_scope 杩欎袱涓笢瑗夸富瑕佷綔鐢ㄥ氨鏄敤浜庡懡鍚嶇鐞嗭紝鎶婁贡绯熺碂鐨勪唬鐮佺鐞嗙殑浜曠劧鏈夊簭銆傚浜?tf.variable_scope 鏇存湁涓€涓綔鐢ㄥ氨鏄疄鐜版潈閲嶅叡浜殑鍔熻兘銆?/p>

  • TensorFlow鍏ラ棬锛堜簲锛夊灞?LSTM 閫氫織鏄撴噦鐗?nbsp;
    鍦ㄧ涓€娆″惉璇?LSTM 杩欎釜鍚嶅瓧鐨勬椂鍊欏氨鏄竴绉嶉珮澶т笂鐨勬劅瑙夛紝鍚庢潵纭疄涔熸槸闈炲父濂界敤锛岃皝鐢ㄨ皝鐭ラ亾銆備笉浼歀STM閮戒笉濂芥剰鎬濊鑷繁鍋氭枃鏈殑锛屽仛搴忓垪鍒嗘瀽鐨勩€傚拰鍓嶉潰鐨?CNN 姣旇緝璧锋潵锛屾劅瑙?LSTM 纭疄鏄澶嶆潅涓€浜涳紝褰撴椂涔熸槸鏁翠簡濂戒箙鎵嶅紕鏄庣櫧鍏朵腑鐨勫悇涓粏鑺傘€備笉寰椾笉璇达紝Understanding LSTM Networks杩欑瘒鏂囩珷璁插緱鐪熸槸妫掑緱涓嶈銆傚叧浜?TensorFlow 瀹炵幇 LSTM锛屽湪姣忔鐗堟湰鏇存柊鐨勬椂鍊欓兘鍋氫簡涓€浜涜皟鏁达紝鎵€浠ヨ€佹槸鍑洪敊锛屼笉鎯?CNN 閭f牱涓€鐩撮兘娌″彉銆備笉杩囧ソ鍦ㄧ幇鍦═ensorFlow璁ㄨ鐨勪汉瓒婃潵瓒婂浜嗭紝鎵€浠ュ緢澶氶棶棰樿胺姝屼竴涓嬫垨鑰呭埌 stack overflow 涓婇潰閮借兘鎵惧埌銆?/p>

  • TensorFlow鍏ラ棬锛堝叚锛夊弻绔?LSTM 瀹炵幇搴忓垪鏍囨敞锛堝垎璇嶏級 
    杩欎釜渚嬪瓙鏄牴鎹埆浜哄啓鐨勪竴涓垎璇嶄緥瀛愭敼杩囨潵鐨勶紝鍘熺増浣跨敤 keras 鍐欑殑锛岀劧鍚庢垜鏀规垚浜?TensorFlow 鐗堟湰銆傛渶澶х殑鍙樺寲灏辨槸锛學TF锛宬eras涓竴灏忔浠g爜锛屾垜绔熺劧鍐欎簡杩欎箞澶氥€備絾鏄嚜宸卞疄鐜板嚑涓緥瀛愶紝纭疄鑳藉寰堝ソ鍦板府鍔╄嚜宸辩悊瑙g綉缁滃師鐞嗗拰浠g爜缁嗚妭銆?/p>

  • TensorFlow鍏ラ棬锛堜竷锛夊厖鍒嗙悊瑙?name / variable_scope 
    涔嬪墠宸茬粡璇磋繃浜?name/variable_scope锛屼絾鏄浜庝竴涓垵瀛﹁€呮潵璇达紝瑕佹兂濂藉ソ鍦扮悊瑙h繖涓や釜涓滆タ杩樼湡鏄笉澶鏄擄紝涔熻鏄垜鑷繁澶彍浜嗭紝浣嗘垜纭疄鏄病鏈夊ソ濂藉湴鎺屾彙瀹冧滑鐨勭簿楂撱€傜劧鍚庝唬鐮佸啓澶氫簡锛屾墠娓愭笎鍦扮悊瑙c€傛垜涓€鑸殑涔犳儻鏄浜庡彉閲忛儴鍒嗭紝鎴戦兘鍠滄浣跨敤 tf.variable_scope 鍖呰捣鏉ワ紝缁撳悎 tf.get_variable() 浣跨敤锛屼竴鏂归潰鏄柟渚垮疄鐜板彉閲忓叡浜紝鍙﹀涓€鏂归潰鏄湁鏃跺€欓渶瑕佸崟鐙垵濮嬪寲锛屾垨鑰呬娇鐢ㄤ笉鍚岀殑浼樺寲鍣紝鎴栬€呮槸妯″瀷铻嶅悎锛屽埄鐢?variable_scope 甯姪寰堝ぇ銆傝€屽浜?tf.name_scope, 鐢ㄦ潵绠$悊鍛藉悕灏卞ソ銆?/p>



  • TensorFlow鍏ラ棬锛堝叓锛塼ensorboard 鐨勪竴涓畝鍗曠ず渚?nbsp;
    tensorboard 鐪熺殑寰堝ソ鐢紝鐗瑰埆鏄湪鍋氭瘮杈冨鏉備换鍔$殑鏃跺€欙紝涓€鏂归潰浣犲彲浠ラ€氳繃閲岃竟鐨刧raph妫€鏌ヨ嚜宸辩殑缃戠粶缁撴瀯鍐欏浜嗘病鏈夛紱鍙﹀涓€鏂归潰锛岄€氳繃瑙傚療 loss 鍜?accuracy 鐨勫彉鍖栨儏鍐碉紝杈呭姪鑷繁杩涜鍙傛暟璋冧紭銆?/p>

  • TensorFlow鍏ラ棬锛堜節锛変娇鐢?tf.train.Saver()淇濆瓨妯″瀷 
    杩欎釜渚嬪瓙浠嬬粛浜嗘€庝箞淇濆瓨妯″瀷鍜岄噸鏂板鍏ユā鍨嬶紝鍍忚繖鏍风殑渚嬪瓙鍒板閮芥湁锛屼絾鏄湁涓€鐐归渶瑕佹槑鐧斤紝灏辨槸锛氫綘瑕佸鍏ユ煇涓彉閲忕殑鍊硷紝杩欎釜鍙橀噺鍚嶇О锛屽氨鏄?tf.get_variable(鈥榥var_ame鈥? 鎴栬€呮槸 tf.Variable(name=鈥檝ar_name鈥? 瀹氫箟鍙橀噺鏃剁殑杩欎釜 scope name 鍜?name 涓€瀹氳瀹屽叏涓€鑷达紝鍚﹀垯浼氭姤閿欍€?/p>

  • TensorFlow鍏ラ棬锛堝崄锛夈€愯縼绉诲涔犮€戝線涓€涓凡缁忎繚瀛樺ソ鐨勬ā鍨嬫坊鍔犳柊鐨勫彉閲忓苟杩涜寰皟 
    鍦ㄨ縼绉诲涔犱腑锛岄€氬父鎴戜滑宸茬粡璁粌濂戒竴涓ā鍨嬶紝鐜板湪闇€瑕佷慨鏀规ā鍨嬬殑閮ㄥ垎缁撴瀯锛岀敤浜庢垜浠殑鏂颁换鍔°€傛瘮濡傦細 
    鍦ㄤ竴涓浘鐗囧垎绫讳换鍔′腑锛屾垜浠娇鐢ㄥ埆浜鸿缁冨ソ鐨勭綉缁滄潵鎻愬彇鐗瑰緛锛屼絾鏄垜浠殑鍒嗙被鏁扮洰鍜屽師妯″瀷涓嶅悓锛岃繖鏍锋垜浠彧鑳藉彇鍒?fc 灞傦紝鍚庨潰鐨勫垎绫诲眰闇€瑕侀噸鏂板啓銆傝繖鏍锋垜浠氨闇€瑕佹坊鍔犳柊鐨勫彉閲忋€傞偅涔堣繖浜涙柊鍔犲叆鐨勫彉閲忓繀椤诲緱鍒濆鍖栨墠鑳戒娇鐢ㄣ€傚彲鏄垜浠張涓嶈兘浣跨敤 鈥榯f.global_variables_initializer()鈥?鏉ュ垵濮嬪寲锛屽惁鍒欏師鏈缁冨ソ鐨勬ā鍨嬪氨娌$敤浜嗐€?/p>

  • Tensorflow鍏ラ棬锛堝崄涓€锛?銆愭ā鍨嬭仈鍚堛€戝浣曞埄鐢╰f.train.saver()鎶婂涓璁粌濂界殑妯″瀷鑱斿悎璧锋潵fine-tune 
    瀹為檯涓婃妸澶氫釜妯″瀷鑱斿悎璧锋潵璁粌杩欑鏂瑰紡鐢ㄥ緱骞朵笉澶氾紝灏变釜浜虹粡楠屾潵璇达紝澶氫釜妯″瀷铻嶅悎璁粌骞舵病鏈夊崟妯″瀷璁ソ浠ュ悗鍐嶅仛铻嶅悎鏁堟灉濂姐€備絾鏄絾鏄紝鑱斿悎鐨勬ā鍨嬪啀鍔犲埌妯″瀷铻嶅悎涓紝杩樻槸浼氭湁鎻愬崌鐨勫搱銆傞偅涔堝湪杩涜妯″瀷鑱斿悎璁粌鐨勬椂鍊欙紝鏈変簺缁嗚妭灏遍渶瑕佹敞鎰忎簡銆?/p>

  • Tensorflow鍏ラ棬锛堝崄浜岋級浣跨敤 tfrecord 璇诲彇鏁版嵁 
    鍦?tf1.3 涓紝鎺ㄥ嚭浜?Dataset API锛屽ソ鍍忚繕鎸哄ソ鐢ㄧ殑銆備絾鏄洜涓篢ensorFlow涓€鐩存病鏇存柊锛屾墍浠ヨ繕娌″皾璇曘€傚鏋滄暟鎹噺姣旇緝澶х殑璇濓紝鎴戜滑灏遍渶瑕佽€冭檻涓€涓嬫暟鎹鍙栫殑闂浜嗭紝鑰屼笉鏄畝鍗曠矖鏆寸殑姣忔閮芥妸鏁翠釜鏁版嵁闆嗗鍏ュ埌鍐呭瓨涓€備粠鎴戠殑涓汉缁忛獙鏉ヨ锛屽浜庤缁冩暟鎹紝鎴戜細鐢熸垚 tfrecord 鏂囦欢淇濆瓨锛屽浜庨獙璇侀泦鍜屾祴璇曢泦锛屾垜浼氫娇鐢?npz 鏂囦欢杩涜淇濆瓨銆?nbsp;


  • 瀵逛簬璁粌鏁版嵁锛屼娇鐢?tfrecord 淇濆瓨鐨勫ソ澶勫氨鏄垜浠彲浠ヨ皟鏁碽atch鐨勫ぇ灏忥紝鑰屼笖鎻愪緵浜嗛潪甯镐究鎹风殑shuffle鍔熻兘銆傚浜庨獙璇侀泦鍜屾祴璇曢泦锛屼竴鏄笉闇€瑕乻huffle锛岃€屾槸鎴戜滑瀹屽叏鍙互鏍规嵁缃戠粶澶у皬鍥哄畾batchsize銆?nbsp;
    鍦ㄨ繖涓緥瀛愪腑锛岃浜嗕袱绉嶆暟鎹敓鎴?tfrecord 鐨勬柟寮忥細鏁版嵁缁村害鐩稿悓鍜屾暟鎹淮搴︿笉鍚屼袱绉嶆暟鎹€傚墠鑰呮瘮濡?span class="mq-47">鍥哄畾澶у皬鐨勭壒寰佺煩闃碉紝鏁扮粍锛屽浘鐗囩瓑锛屾瘮杈冪畝鍗曪紝鍙互浣跨敤 tf.train.Example() 杩涜鎵撳寘锛涘悗鑰呮瘮濡傛枃鏈暟鎹紝姣忎釜搴忓垪鐨勯暱搴﹂兘鏄笉鍥哄畾鐨勩€傚彲浠ヤ娇鐢?tf.train.SequenceExample() 杩涜鎵撳寘銆?/span> 
    鍚庢潵鎴戣繕鏄仛浜嗗浘鐗囩殑椤圭洰锛屼笉璇曚笉鐭ラ亾锛屽浘鐗囨墦鍖?tfrecord 涔熶笉鏄殢闅忎究渚垮湪缃戜笂鎵句釜渚嬪瓙灏卞彲浠ヤ簡銆傚鏋滄柟娉曚笉姝g‘鐨勮瘽锛岀敓鎴愮殑 tfrecord 鍙兘瑕佸ぇ鍑犵櫨鍊?/span>锛屾墦鍖呴€熷害瑕?span class="mq-51">鎱笂鍗冨€?/span>锛屾墍浠ヤ竴瀹氳閫夋嫨鍚堥€傜殑鏂瑰紡銆?/p>

  • Tensorflow鍏ラ棬锛堝崄涓夛級鏈€鍩虹鐨?seq2seq 鏈哄櫒缈昏瘧妯″瀷 
    杩欎釜渚嬪瓙涔熸槸鏍规嵁缃戝弸鐨勪緥瀛愭敼鍔ㄤ簡涓€涓嬶紝鍘熶緥瀛愬湪 https://github.com/NELSONZHAO/zhihu/tree/master/basic_seq2seq 銆?nbsp;
    瀵逛簬 seq2seq锛屽緢鏃╀箣鍓嶅氨瑙夊緱闈炲父鏈夎叮锛岀劧鍚庝篃鐪嬩簡涓€浜涜鏂囷紝浜嗚В涓€浜涚粏鑺傦紝浣嗘槸涓€鐩存病鏈変唬鐮佸疄鐜帮紝鎵€浠ヤ竴浜涙蹇佃繕鏄瘮杈冨惈绯娿€傛墍浠ヨ嚜宸卞疄鐜拌繃涓€閬嶄互鍚庯紝寰堝缁嗚妭鐨勪笢瑗挎墠浜嗚В浜嗐€傚彟澶栵紝seq2seq 纭疄寰堟湁瓒o紝浣嗘槸妯″瀷瀹炲湪鏄お澶э紝鐗瑰埆鏄綘鎯冲疄鐜颁竴涓彲鐢ㄧ殑缈昏瘧妯″瀷涔嬬被鐨勶紝鏄惧崱涓€瀹氳鍏呰冻銆傛墍浠ョ湡姝f悶杩欎釜鐨勶紝鎰熻閮芥槸鏈夐挶浜恒€傛垜鐨勮繖涓緥瀛愯繕鏈変簺鏁版嵁澶勭悊鐨勪唬鐮佹病鏈夋斁涓婂幓锛屾墍浠ヨ窇涓嶉€氾紝鎰熷叴瓒g殑鍙互鐪嬩笂闈㈣繛鎺ヤ腑缃戝弸鐨勪緥瀛愩€傜瓑鍚庢湡鎴戞暣涓」鐩畬鎴愪簡锛屽啀鎶婃暣涓唬鐮佸紑婧愩€?/p>

鍏朵粬璧勬簮

  • aymericdamien/TensorFlow-Examples 

  • https://github.com/aymericdamien/TensorFlow-Examples

  • 杩欎釜椤圭洰瀵逛簬 TensorFlow 鍏ラ棬鑰呮潵璇寸湡鏄潪甯搁潪甯稿ソ銆?/p>


  • models/tutorials/ 

  • https://github.com/tensorflow/models/tree/master/tutorials

  • 杩欐槸瀹樻柟鎻愪緵鐨勪緥瀛愶紝鍖呮嫭 mnist, cifar10, ptb(璁?LSTM), translate(璁?seq2seq) 绛夈€?/p>


  • models/research/slim/ 

  • https://github.com/tensorflow/models/tree/master/research/slim

  • 杩欐槸瀹樻柟slim 鐨勪緥瀛愶紝閲岃竟鎻愪緵浜?ImageNet 鐨勫悇涓粡鍏告ā鍨嬶紝鑰屼笖鎻愪緵璁粌濂界殑 ckpt 鏂囦欢锛屽鏋滈渶瑕?fine-tune 鐨勮瘽鍙互鐩存帴鐢ㄨ繖涓€?/p>


  • brightmart/text_classification 

  • https://github.com/brightmart/text_classification

  • 杩欓噷鎻愪緵浜嗗緢澶氭枃鏈垎绫荤殑妯″瀷銆?/p>


  • tensorflow/nmt 

  • https://github.com/tensorflow/nmt

  • 杩欓噷鎻愪緵浜嗘瘮杈冨叏鐨?鏈哄櫒缈昏瘧鐨勬ā鍨嬨€?/p>


浜哄伐鏅鸿兘澶ф暟鎹笌娣卞害瀛︿範



澶ф暟鎹寲鎺楧T鏁版嵁鍒嗘瀽


鏁欎綘鏈哄櫒瀛︿範锛屾暀浣犳暟鎹寲鎺?/strong>


以上是关于13涓猅ensorflow瀹炶返妗堜緥锛屾暀浣犲叆闂ㄥ埌杩涢樁的主要内容,如果未能解决你的问题,请参考以下文章

鏈€鎶€鏈?| API缃戝叧鏈嶅姟鐔旀柇闄嶇骇瀹炶返

Git 宸ヤ綔娴佺▼锛汫raphQL 浠庡叆闂ㄥ埌瀹炶返锛汚ngular 9.0 鍙戝竷锛両vy 姝e紡鎶佃揪

mysql鏁呴殰妗堜緥

鎵嬫妸鎵嬫暀浣犲湪Windows鐜涓嬪崌绾

python鐖创鍚ф暟鎹瓨mysql瀹屾暣浠g爜妗堜緥

杞欢宸ョ▼缁撹鎬荤粨